Skip to main content

parse_binary_file

Function parse_binary_file 

Source
pub fn parse_binary_file(
    file_content: &[u8],
    format: FileFormat,
) -> Result<QueryHeader, ParseError>
Expand description

Parse binary file content (for BAM/CRAM files)

Note: This creates a secure temporary file since the underlying parsers expect file paths

ยงErrors

Returns ParseError::Io if the temporary file cannot be created or written, or ParseError::ParseFailed if parsing fails.