Skip to main content

compute_coverage

Function compute_coverage 

Source
pub fn compute_coverage(
    input: &Path,
    bin_size: u32,
    filter: BinFilter,
    workers: NonZero<usize>,
) -> Result<BinnedCoverage>
Expand description

Scan input, tiling each reference at bin_size and counting reads per bin.

bin_size is in bases (deeptools default 50). workers controls BGZF inflate parallelism (see rsomics_bamio::open_with_workers); it never changes the result, only the read throughput.