Enrichment of features with respect to annotation types
enrichment.feat(x, annotations, region.bounds)
An object of type feat
An object of type feat
containing
some annotations.
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.
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.