Description Usage Arguments Value Examples
This purely a convenience function, and an incredibly convenient one at that.
1 |
bam |
a BAM filename, or DataFrame/SummarizedExperiment with $BAM |
filter |
filter on bam$mtCovg? (default is FALSE, don't filter) |
parallel |
load multiple BAMs in parallel, if possible? (FALSE) |
plotMAPQ |
plot distribution of mitochondrial mapping quality? (FALSE) |
... |
additional args to pass scanBamParam(), such as mapqFilter |
an MAlignments or MAlignmentsList object
1 2 3 4 5 6 7 8 9 10 | library(MTseekerData)
BAMdir <- system.file("extdata", "BAMs", package="MTseekerData")
BAMs <- paste0(BAMdir, "/", list.files(BAMdir, pattern=".bam$"))
(mal <- getMT(BAMs[1]))
class(mal)
targets <- data.frame(BAM=BAMs, stringsAsFactors=FALSE)
rownames(targets) <- sapply(strsplit(basename(BAMs), "\\."), `[`, 1)
(mall <- getMT(targets))
class(mall)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.