Description Usage Arguments Value DETAILS Author(s) See Also Examples
View source: R/annotationCoverageAroundFeatures.R
Extract stranded annotation profiles at and around a set of features/intervals.
| 1 2 3 4 5 6 7 8 | annotationCoverageAroundFeatures(
  annot,
  features = NULL,
  sidedist = 2000L,
  usePercent = FALSE,
  BinFeatures = TRUE,
  ...
)
 | 
| annot | A  | 
| features | An optional  | 
| sidedist | Integer. Distance on each side of features at which to extract the profiles | 
| usePercent | Logical. Should annotation coverage be expressed as presence/absence (0/1)? (instead of counting the number of features aligning at each position) | 
| BinFeatures | Logical. Should  | 
| ... | additional arguments passed to  | 
A list with the following elements:
Feature_Sense: Coverage of annot (possibly binned) at features, on the sense strand (i.e. the strand of the feature)
Feature_Antisense: Coverage of annot (possibly binned) at features, on the antisense strand (i.e. the opposite strand of features)
UpstreamBorder_Sense: Coverage of annot around (+/- sidedist) the upstream border of features (Typically the TSS), on the sense strand
UpstreamBorder_Antisense: Coverage of annot around (+/- sidedist) the upstream border of features, on the antisense strand
DownstreamBorder_Sense: Coverage of annot around (+/- sidedist) the downstream border of features (Typically the TES), on the sense strand
DownstreamBorder_Antisense: Coverage of annot around (+/- sidedist) the downstream border of features, on the antisense strand
The usePercent option is intended to give a percentage of bases covered by annotations when performing average profiles from several features. 
When calculating a coverage with usePercent=TRUE any value > 1 is replaced by 1. 
This is equivalent to calculating coverage(reduce(annot)) instead of coverage(annot).
Pascal GP Martin
| 1 2 | ## Extract the profiles around (+/-50bp) all genes. We bin the genes in 3 bins only.
AllProf <- annotationCoverageAroundFeatures(Genegr, sidedist = 50, usePercent = TRUE, nbins=3)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.