[][src]Function needletail::parser::parse_fastx_reader

pub fn parse_fastx_reader<'a, R: 'a + Read + Send>(
    reader: R
) -> Result<Box<dyn FastxReader + 'a>, ParseError>

The main entry point of needletail if you're reading from something that impls std::io::Read This automatically detects whether the file is:

  1. compressed: gzip, bz and xz are supported and will use the appropriate decoder
  2. FASTA or FASTQ: the right parser will be automatically instantiated 1 is only available if the compression feature is enabled.