varcount | R Documentation |
Takes in vector of bam paths or GRanges corresponding to sites / territories to query, and outputs a list with fields:
$counts = 3D matrix of base counts (A, C, G, T, N) x sites x bams subject to mapq and baseq thresholds
varcount() relies upon varbase()
varcount( bams, gr, min.mapq = 0, min.baseq = 20, max.depth = 500, indel = FALSE, ... )
bams |
character vector of paths to bam files |
gr |
GRanges of (width=1) sites i.e. intervals at which to compute base coujnts |
min.mapq |
integer Minimal mapping quality at which to compute bases (default = 0) |
min.baseq |
integer Minimal base quality at which to compute bases (default = 20) |
max.depth |
integer Maximum read depth to consider (default = 500) |
indel |
boolean Flag whether to consider indels (default = FALSE) |
... |
other args be passed to read.bam(). Please see documentation for read.bam() |
GRanges annotated with fields $alt.count.t, $ref.count.t, $alt.count.n, $ref.count.n
Marcin Imielinski
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.