pub fn parse_fasta_file(path: &Path) -> Result<QueryHeader, ParseError>Expand description
Parse a FASTA file and extract contig names and lengths.
This reads through the entire FASTA file to determine sequence lengths. For large files, consider using an existing .fai index instead.
ยงErrors
Returns ParseError::Io if the file cannot be read, ParseError::Noodles if
parsing fails, ParseError::InvalidFormat if no contigs are found, or
ParseError::TooManyContigs if the limit is exceeded.