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

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

A BAM index.

Implementations

Creates a BAM index builder.

Examples

use noodles_bam::bai;
let builder = bai::Index::builder();

Creates a BAM index.

Examples

use noodles_bam::bai;
let index = bai::Index::new(Vec::new(), None);
👎 Deprecated since 0.2.0:

Use unplaced_unmapped_record_count instead.

Returns the number of unplaced unmapped reads in the associated BAM file.

An unplaced unmapped read is a read that is has neither a reference sequence ID nor position set.

Examples

use noodles_bam::bai;

let index = bai::Index::default();
assert_eq!(index.unplaced_unmapped_read_count(), None);

let index = bai::Index::new(Vec::new(), Some(13));
assert_eq!(index.unplaced_unmapped_read_count(), Some(13));

Trait Implementations

Returns a list of indexed reference sequences.

This list is parallel to the reference sequences defined in the associated BAM file.

Examples

use noodles_bam::bai;
use noodles_csi::BinningIndex;
let index = bai::Index::default();
assert!(index.reference_sequences().is_empty());

Returns the number of unplaced, unmapped records in the associated file.

An unplaced, unmapped record is one that is has neither a reference sequence ID nor position set.

Examples

use noodles_bam::bai;
use noodles_csi::BinningIndex;
let index = bai::Index::default();
assert!(index.unplaced_unmapped_record_count().is_none());

Returns the chunks that overlap with the given region.

Returns the start position of the first record in the last linear bin. Read more

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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

Compare self to key and return true if they are equal.

Performs the conversion.

Performs the conversion.

Should always be Self

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)

recently added

Uses borrowed data to replace owned data, usually by cloning. 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.