pub fn from_file<P: AsRef<Path> + std::fmt::Debug>(path: P) -> anyhow::Result<Self> {
        fs::File::open(path.as_ref())
            .map_err(|e| Error::FileOpen {
                path: path.as_ref().to_owned(),
                source: e,
            })
            .map(Reader::new)
            .with_context(|| format!("Failed to read fastq from {:#?}", path))
    }
/// Read from a given file.
Read from a given file.
Read from a given file .
pub fn from_file<P: AsRef<Path> + std::fmt::Debug>(path: P) -> anyhow::Result<Self> {
        fs::File::open(path.as_ref())
            .map_err(|e| Error::FileOpen {
                path: path.as_ref().to_owned(),
                source: e,
            })
            .map(Reader::new)
            .with_context(|| format!("Failed to read fastq from {:#?}", path))
    }
pub fn from_file < P : AsRef < Path > + std :: fmt :: Debug > ( path : P ) -> anyhow :: Result < Self > { fs :: File :: open ( path . as_ref ( ) ) . map_err ( | e | Error :: FileOpen { path : path . as_ref ( ) . to_owned ( ) , source : e , } ) . map ( Reader :: new ) . with_context ( | | format ! ( " " path ) ) }
Read from a given file.
Read from a given file .
path
P
path
P