region.length: Determine Length of Positive and Negative Regions
Description
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.
Usage
region.length(probes, min.len=1)
Arguments
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.
Value
A list with components positive and negative, each containing a numeric vector
with the length of identified regions.
## create random probe callsprobes <- sample(c(TRUE,FALSE), 200, replace=TRUE)
## find length of all regions that contain at least two probesreg.len <- region.length(probes, min.len=2)