composition.feat: Composition of features with respect to annotations

Description Usage Arguments Value Note Author(s)

View source: R/feat.R

Description

Composition of features with respect to annotations

Usage

1
composition.feat(x, annotations)

Arguments

x

An object of type feat.

annotations

An object of type feat containing some annotations.

Value

A data frame with two columns and a row for each type of element in the annotations. The second column gives the fraction of x which fall in the corresponding annotation type. Given non-overlapping annotations which cover the entire range of interest, the second column should sum to 1 (otherwise not).

Note

If x or annotations are passed to this function as pointers to objects stored in C, they will be sorted after the function call.

Author(s)

Melissa J. Hubisz


rphast documentation built on May 1, 2019, 9:26 p.m.