Skip to main content

open

Function open 

Source
pub fn open<P: AsRef<Path>>(path: P) -> Result<BoxedReader>
Expand description

Open a FASTA/FASTQ file, transparently handling gzip.

The format is taken from the extension when recognisable and otherwise from the first byte of the (decompressed) stream. gzip is detected from the file’s magic bytes, so a compressed file without a .gz suffix works as well.

Requires the gzip feature for compressed input.