Struct bam::index::Index[][src]

pub struct Index { /* fields omitted */ }
Expand description

BAI Index. Allows to get chunks in a bgzip file, that contain records from a specific genomic region.

Implementations

Loads index from stream.

Loads index from path.

Fetches chunks of the BAM file that contain all records for a given region.

Returns the offset to the start of the data, if the index is not empty.

Returns the offset of the end of all mapped records, if the index is not empty. Takes at most 37448 bins lookups.

Returns all references present in the BAI index.

Returns the number of unmapped records, if present in the index.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.