Learn R Programming

rphast (version 1.0)

enrichment.feat: Enrichment of features with respect to annotation types...

Description

Enrichment of features with respect to annotation types

Usage

enrichment.feat(x, annotations, region.bounds)

Arguments

x
An object of type feat
annotations
An object of type feat containing some annotations.
region.bounds
An object of type feat representing the boundary coordinates of the regions of interest (such as chromosome boundaries). All elements from the first two arguments should fall entirely within region.bounds.

Value

  • A data frame with two columns and a row for each type of element in the annotations. The second column gives the fold-enrichment of x across the corresponding annotation type, which is equal to the fraction of x which fall within the annotation type, divided by the fraction of the entire region covered by the annotation type.