/// Read from a given file path. This assumes the index ref.fasta.fai to be
/// present for FASTA ref.fasta.
Read from a given file path. This assumes the index ref.fasta.fai to be
present for FASTA ref.fasta.
Read from a given file path . This assumes the index ref . fasta . fai to be present for FASTA ref . fasta .
pub fn from_file<P: AsRef<Path> + std::fmt::Debug>(path: &P) -> anyhow::Result<Self> {
        let index = Index::with_fasta_file(path)?;
        fs::File::open(&path)
            .map(|f| Self::with_index(f, index))
            .map_err(csv::Error::from)
            .with_context(|| format!("Failed to read fasta from {:#?}", path))
    }
pub fn from_file < P : AsRef < Path > + std :: fmt :: Debug > ( path : & P ) -> anyhow :: Result < Self > { let index = Index :: with_fasta_file ( path ) ? ; fs :: File :: open ( & path ) . map ( | f | Self :: with_index ( f , index ) ) . map_err ( csv :: Error :: from ) . with_context ( | | format ! ( " " path ) ) }
Read from a given file path.
Read from a given file path .
path
&P