a crate for parsing and querying Ensembl-GTF formatted files.
Parser achieves near wc -l
throughput.
This is meant to be used as an iterator and receives any item implementing BufRead
.
```rust use std::{fs::File, io::BufReader}; use gtftools::GtfReader;
let handle = File::open("data/example.gtf") .map(BufReader::new) .unwrap();
let numrecords = GtfReader::frombufread(handle) .filter_map(|x| x.ok()) .count();
asserteq!(numrecords, 10); ```
```rust use std::{fs::File, io::BufReader}; use flate2::read::MultiGzDecoder; use gtftools::GtfReader;
let handle = File::open("data/example.gtf.gz") .map(MultiGzDecoder::new) .map(BufReader::new) .unwrap();
let numrecords = GtfReader::frombufread(handle) .filter_map(|x| x.ok()) .count();
asserteq!(numrecords, 10); ```