Struct noodles::csi::index::Builder[][src]

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

A coordinate-sorted index (CSI) builder.

Implementations

Sets a min shift.

Examples

use noodles_csi as csi;
let index = csi::Index::builder().set_min_shift(13).build();
assert_eq!(index.min_shift(), 13);

Sets a max depth.

Examples

use noodles_csi as csi;
let index = csi::Index::builder().set_depth(8).build();
assert_eq!(index.depth(), 8);

Set auxiliary data.

Examples

use noodles_csi as csi;
let index = csi::Index::builder().set_aux(b"ndls".to_vec()).build();
assert_eq!(index.aux(), b"ndls");

Sets reference sequences.

Examples

use noodles_csi::{self as csi, index::ReferenceSequence, BinningIndex};

let reference_sequences = vec![ReferenceSequence::new(Vec::new(), None)];
let index = csi::Index::builder()
    .set_reference_sequences(reference_sequences.clone())
    .build();

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

Use set_unplaced_unmapped_record_count instead.

Sets an unmapped read count.

Examples

use noodles_csi::{self as csi, BinningIndex};
let index = csi::Index::builder().set_n_no_coor(21).build();
assert_eq!(index.unplaced_unmapped_record_count(), Some(21));

Sets an unplaced, unmapped record count.

Examples

use noodles_csi::{self as csi, BinningIndex};
let index = csi::Index::builder().set_unplaced_unmapped_record_count(21).build();
assert_eq!(index.unplaced_unmapped_record_count(), Some(21));

Builds a coordinate-sorted index (CSI).

Examples

use noodles_csi as csi;
let index = csi::Index::builder().build();

Trait Implementations

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.

Should always be Self

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.