Function open_bam

Source
pub fn open_bam(seqs_url: &Url) -> Result<IndexedReader>
Expand description

Function to open a BAM/CRAM file from a URL and cache its contents locally.

§Arguments

  • seqs_url - A reference to a URL object representing the sequence file URL.

§Returns

An IndexedReader object representing the opened BAM/CRAM file.

§Errors

This function returns an error if the BAM/CRAM file cannot be opened.

§Panics

This function panics if the URL scheme is not recognized.