region.length {tileHMM} | R Documentation |
Given a logical vector indicating positive and negative probes this function returns a list with components 'positive' and 'negative' providing length information for positive and negative regions.
region.length(probes, min.len=1)
probes |
A logical vector indicating the position of enriched and non-enriched probes with
TRUE and FALSE respectively. |
min.len |
The minimal number of consecutive probes required to form a region. |
A list with components positive
and negative
, each containing a numeric vector
with the length of identified regions.
Peter Humburg
## create random probe calls probes <- sample(c(TRUE,FALSE), 200, replace=TRUE) ## find length of all regions that contain at least two probes reg.len <- region.length(probes, min.len=2)