Description Usage Arguments Value Examples
If a BAM filename is given, but no ScanBamParam, scanMT(bam) will be called. Human mitochondrial genomes (GRCh37+ and hg38+) are fully supported, mouse mitochondrial genomes (C57BL/6J aka NC_005089) are only somewhat supported.
1 2 3 4 5 6 7 8 9 |
bam |
BAM (must be indexed!) file name or object with @bam slot |
sbp |
optional ScanBamParam object (autogenerated if missing) |
pup |
optional PileupParam object (autogenerated if missing) |
callIndels |
call indels? (This can reduce compute and RAM if FALSE.) |
ref |
aligned reference mitogenome (default is rCRS/GRCh37+) |
... |
additional args to pass on to the pileup() function |
1 | an MVRanges object, constructed from pileup results
|
1 2 3 4 5 6 | library(MTseekerData)
BAMdir <- system.file("extdata", "BAMs", package="MTseekerData")
patientBAMs <- list.files(BAMdir, pattern="^pt.*.bam$")
(bam <- file.path(BAMdir, patientBAMs[1]))
(sbp <- scanMT(bam))
(mvr <- pileupMT(bam, sbp=sbp, callIndels=TRUE, ref="rCRS"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.