annotationBlocksCounts | R Documentation |
Counts reads inside blocks.
## S4 method for signature 'ANY,data.frame'
annotationBlocksCounts(x, anno, ...)
## S4 method for signature 'character,GRanges'
annotationBlocksCounts(x, anno, ...)
## S4 method for signature 'GRanges,GRanges'
annotationBlocksCounts(x, anno, seq.len = NULL, verbose = TRUE)
## S4 method for signature 'GRangesList,GRanges'
annotationBlocksCounts(x, anno, ...)
x |
A character vector of BAM paths, a |
anno |
A set of genomic features to make windows around a reference point of
theirs. Either a |
seq.len |
If sequencing reads need to be extended, the fragment size to be used. Default: NULL (no extension). |
verbose |
Whether to print progress. Default: TRUE. |
... |
Parameters described above, that are not used in the top-level error-checking stage, but are passed further into a private function that uses them in its processing. |
A matrix
of counts is returned, one column per sample and one row
per row of genomic features supplied.
Aaron Statham
annotationCounts
, genomeBlocks
require(GenomicRanges)
reads <- GRanges(seqnames = rep("chr1", 5),
IRanges(c(3309, 4756, 4801, 4804, 5392), width = 36),
strand = c('+', '-', '-', '+', '+'))
genes <- GRanges("chr1", IRanges(5000, 7000), strand = '+')
annotationBlocksCounts(reads, genes, 300)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.