Count the number of reads in a given GRanges
numReadsInBed(regions, bams = NA, countall = FALSE)
regions | The GRanges object to count reads in. |
---|---|
bams | character. path to bam files from where the reads have to be counted |
countall | logical. whether to keep both reads of paired-end data |
Total counts within given ranges per BAM file.