Learn R Programming

tileHMM (version 1.0-7)

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.

See Also

region.position

Examples

Run this code
## 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)

Run the code above in your browser using DataLab