Creates reader associated with file or stream. (If stream constructor is used, no random access is possible.) Optionally, task pool can be specified. It will be used to unpack BGZF blocks in parallel.
import std.parallelism, bio.bam.reader; void main() { auto pool = new TaskPool(4); // use 4 threads scope (exit) pool.finish(); // don't forget! auto bam = new BamReader("file.bam", pool); ... }
See Implementation
Creates reader associated with file or stream. (If stream constructor is used, no random access is possible.)
Optionally, task pool can be specified. It will be used to unpack BGZF blocks in parallel.