Load data

##    Min. 1st Qu.  Median    Mean 3rd Qu.    Max. 
##    5.00   10.00   16.50   18.28   20.75   61.00

TopDom df

Window size = 3L

##    Min. 1st Qu.  Median    Mean 3rd Qu.    Max.    NA's 
##    0.00   11.31   14.78   13.96   16.67   28.67       1

Update algorithm

preciseTAD - findTAD update

heatmap function

Test updated Algorithm

H = 300, e = 0.13, t = 4

w = 100

## [1]  0  5 10 15 20 25

## Number of boundaries found: 43
## Proportion of truth boundaries found: 0.9444444
## True Positive Rate (TP): 0.7906977
## False Positive Rate (FP): 0.2093023

w = 80

## [1]  0  5 10 15 20 25

## Number of boundaries found: 40
## Proportion of truth boundaries found: 0.9166667
## True Positive Rate (TP): 0.825
## False Positive Rate (FP): 0.175

w = 60

## [1]  0  5 10 15 20 25

## Number of boundaries found: 37
## Proportion of truth boundaries found: 0.8333333
## True Positive Rate (TP): 0.8108108
## False Positive Rate (FP): 0.1891892
## [1] 37

w = 50

## [1]  0  5 10 15 20 25

## Number of boundaries found: 32
## Proportion of truth boundaries found: 0.8055556
## True Positive Rate (TP): 0.90625
## False Positive Rate (FP): 0.09375
## [1] 32