Struct noodles_tabix::index::Index[][src]

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

A tabix index.

Implementations

Returns a builder to create an index from each of its fields.

Examples

use noodles_tabix as tabix;
let builder = tabix::Index::builder();

Returns an indexer to create an index from records.

Returns the header.

Examples

use noodles_tabix as tabix;
let header = tabix::index::Header::default();
let index = tabix::Index::builder().set_header(header.clone()).build();
assert_eq!(index.header(), &header);

Returns the reference sequence names.

Examples

use noodles_tabix::{self as tabix, index::ReferenceSequenceNames};

let reference_sequence_names: ReferenceSequenceNames = vec![String::from("sq0")]
    .into_iter()
    .collect();

let index = tabix::Index::builder()
    .set_reference_sequence_names(reference_sequence_names.clone())
    .build();

assert_eq!(index.reference_sequence_names(), &reference_sequence_names);
👎 Deprecated since 0.2.0:

Use unplaced_unmapped_record_count instead.

Returns the number of unmapped records in the associated file.

Examples

use noodles_tabix as tabix;

let index = tabix::Index::builder()
    .set_unmapped_read_count(21)
    .build();

assert_eq!(index.unmapped_read_count(), Some(21));

Trait Implementations

Returns a list of indexed reference sequences.

Examples

use noodles_csi::BinningIndex;
use noodles_tabix as tabix;
let index = tabix::Index::default();
assert!(index.reference_sequences().is_empty());

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

Examples

use noodles_csi::BinningIndex;
use noodles_tabix as tabix;
let index = tabix::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

Formats the value using the given formatter. Read more

Returns the “default value” for a type. 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 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.