[−][src]Function needletail::formats::parse_sequence_reader
pub fn parse_sequence_reader<F, R, T>(
reader: R,
type_callback: T,
callback: F
) -> Result<(), ParseError> where
F: for<'a> FnMut(SequenceRecord<'a>),
R: Read,
T: FnMut(&'static str),
Opens a Read
stream and parses the FASTX records out. Also takes a "type_callback"
that gets called as soon as we determine if the records are FASTA or FASTQ.
If a file starts with a gzip or other header, transparently decompress it.