R/import_bam.R
bb_count_bam.Rd
Returns the total number of reads in a BAM file using Rsamtools or system samtools.
bb_count_bam(path)
Character. Path to a BAM file.
An integer: total number of reads.
# \donttest{ # count <- bb_count_bam("aligned.bam") # }