Description Usage Arguments Details Value Author(s) Examples
Extract profiles from a genome-wide coverage on a set of windows of interest. Reverses the profiles for windows that are on the '-' (minus) strand.
1 |
covr |
RleList. A genome-wide coverage (typically obtained with
the |
woi |
A |
Note that names of covr and seqnames of gr must match
An RleList with stranded profiles at woi
Pascal GP Martin
1 2 3 4 5 6 7 8 9 10 11 12 | ## Obtain coverage for all genes:
covr <- GenomicRanges::coverage(Genegr)
## Select a (random) set of (100) genes
set.seed(123)
randGenes <- sample(names(Genegr), 100)
## Windows of interests cover the gene bodies + 50bp on each side
woi <- Genegr[randGenes] + 50
## Remove windows that go beyond chromosome borders
woi <- woi[GenomicRanges::width(GenomicRanges::trim(woi)) -
GenomicRanges::width(woi) == 0]
## Coverage on these windows of interest:
profcomp(covr, woi)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.