Description Usage Arguments Details Value Author(s) Examples
Calculates some basic alignment statistics for given bam files.
1 | getAlignmentQuality(bamFile, verbose = FALSE, mc.cores = 1)
|
bamFile |
A |
verbose |
If set to |
mc.cores |
Number of cores to be used. |
The given bam files should have marked duplicates and not uniquely mapped reads should have a quality value of 0. In detail, this function returns a data frame with the following columns:
File name without path and suffix
ID field from bam header, if available
SM field from bam header, if available
LB field from bam header, if available
Total number of reads in bam file
Number of mapped Reads
MappedReads/TotalReads
Number of mapped reads with mapping quality larger 0
UniquelyMappedReads/MappedReads
Number of non duplicated mapped reads with mapping quality larger 0
UniquelyMappedUniqueReads/MappedReads
UniquelyMappedUniqueReads/UniquelyMappedReads
Mean mapping quality of all uniquely mapped unique reads
Standard deviation of the mapping quality of all uniquely mapped unique reads
0% quantileof the mapping quality of all uniquely mapped unique reads
25% quantile of the mapping quality of all uniquely mapped unique reads
50% quantile of the mapping quality of all uniquely mapped unique reads
75% quantile of the mapping quality of all uniquely mapped unique reads
100% quantile of the mapping quality of all uniquely mapped unique reads
Full path and file name as given in argument bamFile
Returns a data frame with one row for each given bam file and the columns as listed in the details section.
Hans-Ulrich Klein (hklein@broadinstitute.org)
1 | ## Not run: getAlignmentQuality("myFile.bam")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.