region.length {tileHMM}R Documentation

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.

Author(s)

Peter Humburg

See Also

region.position

Examples

## 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)

[Package tileHMM version 1.0-2 Index]