readGenomeDist | R Documentation |
Genomic feature distribution of aligned reads. Reads are assigned to a feature based on the following priority: CDS, UTR, Intron, and Intergenic.
readGenomeDist( bam, txdb, category = c("CDS", "UTR", "Intron", "Intergenic"), fiveEndOnly = TRUE, ignoreStrand = TRUE )
bam |
A |
txdb |
A |
category |
A vector of characters. By default, distribution of reads on CDS, UTR,
intron, and intergenic regions is calculated. Must be selected from
|
fiveEndOnly |
A logical variable indicating if only keeping the 5'-ends of reads. This option can be used to decrease the ambiguity for reads spanning multiple features. (Default: TRUE). |
ignoreStrand |
A logical variable indicating if ignoring that reads and features must be on the same strand (Default: TRUE). |
A list of two elements. The first is a character vector indicating the genomic
feature assigned for each read. The order is the same as the input bam. The second element
is a data.frame
with 3 columns (feature
, count
, and pct
) of
genomic feature, number of reads falling into this feature, and percentage of reads falling
into this feature.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.