Skip to main content

parse_file

Function parse_file 

Source
pub fn parse_file(path: &Path) -> Result<QueryHeader, ParseError>
Expand description

Parse a SAM/BAM/CRAM file and extract the header

ยงErrors

Returns ParseError::Io if the file cannot be read, ParseError::Noodles if parsing fails, ParseError::UnsupportedFormat for unknown extensions, ParseError::InvalidFormat if no contigs are found, or ParseError::TooManyContigs if the limit is exceeded.