pub fn parse_binary_file_from_path(
path: &Path,
format: FileFormat,
) -> Result<QueryHeader, ParseError>Expand description
Parse a binary file directly from a file path (for streamed uploads).
Unlike parse_binary_file, this function does not need to create a temporary file —
the caller already has one. The file may be truncated after the header; only the
header portion is needed for BAM/CRAM.
§Errors
Returns ParseError::ParseFailed if parsing fails, or if the format is not a
supported binary format.