bio.std.hts.bam.splitter

Undocumented in source.

Members

Functions

chunksConsumingLessThan
auto chunksConsumingLessThan(R reads, size_t size_in_bytes, bool split_by_ref)

Split range in chunks where total amount of memory consumed by all reads in the chunk is roughly chunk_size bytes.

chunksOfSize
auto chunksOfSize(R reads, size_t N, bool split_by_ref)

Split range in chunks each containing no more than N reads

Structs

ReadRangeSplitter
struct ReadRangeSplitter(R, alias fn)

Constructs range of chunks where sum { fn(read) | read in chunk } does not exceed given number.

Meta