region.length: Determine Length of Positive and Negative Regions

Description Usage Arguments Value Author(s) See Also Examples

View source: R/utils.R

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

1
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

1
2
3
4
5
## 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)

tileHMM documentation built on May 30, 2017, 3:41 a.m.