A fast parser for fastq.
This library can process fastq files at about the speed of the
coreutils wc -l
(about 2GB/s on my laptop). It also makes it
easy to distribute the processing of fastq records to many
cores.
See the documentation for details.
Examples
Count the number of fastq records that contain an N
use ;
let reader = stdin;
let mut parser = new;
let mut total: usize = 0;
parser.each.unwrap;
println!;
And an (unnecessarily) parallel version of this
const n_threads: usize = 2;
use ;
let reader = stdin;
let parser = new;
let results: = parser.parallel_each.expect;
let total: u64 = results.iter.sum;
println!;