Description Usage Arguments Value Author(s) See Also Examples
View source: R/pileupVariants.R
This is an alternative to tallyVariants
for generating a
VRanges
from a set of alignments (BAM file) by counting the
nucleotides at each position. This function uses the samtools-based
applyPileups
function, instead of
bam_tally
. Fewer dependencies, with fewer
statistics (none beyond the fixed columns) available in the output.
1 2 | pileupVariants(bams, genome, param = ApplyPileupsParam(), minAltDepth = 1L,
baseOnly = TRUE, BPPARAM = defaultBPPARAM())
|
bams |
A vector/list of BAM files as interpreted
by |
genome |
An object that provides sequence information via
|
param |
A |
minAltDepth |
Minimal alt depth to be included in the output. The default avoids outputting results for positions/alleles that show no differences. |
baseOnly |
Whether to drop records with āNā in either the ref or alt. |
BPPARAM |
Not yet supported. |
A VRanges object with read depth information for each position, allele, and sample.
Michael Lawrence
tallyVariants
for more statistics.
1 2 3 4 5 | bams <- LungCancerLines::LungCancerBamFiles()
if (requireNamespace("gmapR")) {
param <- Rsamtools::ApplyPileupsParam(which=gmapR::TP53Which())
pileup <- pileupVariants(bams, gmapR::TP53Genome(), param)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.