[−][src]Function needletail::formats::parse_sequence_path
pub fn parse_sequence_path<F, P, T>(
path: P,
type_callback: T,
callback: F
) -> Result<(), ParseError> where
F: for<'a> FnMut(SequenceRecord<'a>),
P: AsRef<Path>,
T: FnMut(&'static str),
This is a convenience method for easy drop into CLI programs. It will
take a "path" which is either parsed as a filename or, if "-", as stdin.
It then opens this, does automatic decompression and then determines the
type of the file (which is calls type_callback
with) before parsing the
rest of the file into SequenceRecords that it calls callback
on.