Crates.io | fastx |
lib.rs | fastx |
version | 0.2.1 |
source | src |
created_at | 2021-06-30 11:50:31.313835 |
updated_at | 2024-01-21 01:34:13.963998 |
description | FastX reads Fasta and FastQ files with little overhead. |
homepage | |
repository | https://github.com/ahcm/fastx |
max_upload_size | |
id | 416798 |
size | 38,819 |
FastX implements low overhead readers for Fasta and FastQ.
let mut fastx_reader = FastX::reader_from_path(Path::new(&filename))?;
let mut fastx_record = FastX::from_reader(&mut fastx_reader)?;
while let Ok(_some @ 1..=usize::MAX) = fastx_record.read(&mut fastx_reader)
{
println!("{}\t{}", fastx_record.id(), fastx_record.seq_len())
}