Heuristic to get the median read length from a BAM file.access

read_length(bam_file, n = 100)

Arguments

bam_file

Path to a bam file.

n

How many alignments to use.

Value

The median read length in the file.