idxstats
fileR/process_reads.R
get_total_reads.Rd
Loads the idxstats
file, and counts
the total number of mapped reads generated by bam_sort_index_stats
.
idxstats
file.
Logical. If TRUE, counts reads in
chromosomes specified in ‘chrs’.
Otherwise, uses all chromosomes in idxstats_file
.
Chromosomes to be included (default: chr1, ..., chr22).
The total number of mapped reads.
if (FALSE) {
total_mapped_reads <- get_total_reads('sample.bam.idxstats.txt')
}