Calculate the total number of mapped reads
For a given BAM calculate the total number of mapped reads and for a BigWig file calculate the area under the curve (AUC), which is related to the number of mapped reads: the exact relationship depends on whether the aligner soft clips reads and/or if the length of the reads is the same. If you use the 'chrs' argument you can choose to only consider the information for your chromosomes of interest. For example, you can exclude the mitocondrial chromosome.
Either a BAM file or a BigWig file.
The total number of mapped reads for a BAM file or the AUC for a BigWig file in a single element vector.
1 2 3 4
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.