Returns per-base pileup statistics, or a moving average. TODO: Non-overlapping mean is probably the better idea, here, as only one value per bin is reported
get_pileup(bam_file, min_mapq = 0, top_n = NULL, ...)
character(1) or BamFile; BAM file path.
Minimum mapping quality.
If not NULL, return at most the pileups of that many sequences. integer(1).
Additional arguments for Rsamtools::pileup
data.frame
with sequence names, positions, strand and count information