pub fn with_fasta_file<P: AsRef<Path>>(fasta_path: &P) -> anyhow::Result<Self> {
        let mut fai_path = fasta_path.as_ref().as_os_str().to_owned();
        fai_path.push(".fai");

        Self::from_file(&fai_path)
    }
/// Open a FASTA index given the corresponding FASTA file path.
/// That is, for ref.fasta we expect ref.fasta.fai.
Open a FASTA index given the corresponding FASTA file path.
Open a FASTA index given the corresponding FASTA file path .
pub fn with_fasta_file<P: AsRef<Path>>(fasta_path: &P) -> anyhow::Result<Self> {
        let mut fai_path = fasta_path.as_ref().as_os_str().to_owned();
        fai_path.push(".fai");
        Self::from_file(&fai_path)
    }
pub fn with_fasta_file < P : AsRef < Path > > ( fasta_path : & P ) -> anyhow :: Result < Self > { let mut fai_path = fasta_path . as_ref ( ) . as_os_str ( ) . to_owned ( ) ; fai_path . push ( " " ) ; Self :: from_file ( & fai_path ) }
Open a FASTA index given the corresponding FASTA file path.
Open a FASTA index given the corresponding FASTA file path .
fasta_path
&P
fasta_path
&P