Trait noodles_csi::binning_index::BinningIndex
source · pub trait BinningIndex {
// Required methods
fn min_shift(&self) -> u8;
fn depth(&self) -> u8;
fn header(&self) -> Option<&Header>;
fn reference_sequences(
&self
) -> Box<dyn Iterator<Item = &dyn ReferenceSequence> + '_>;
fn unplaced_unmapped_record_count(&self) -> Option<u64>;
fn query(
&self,
reference_sequence_id: usize,
interval: Interval
) -> Result<Vec<Chunk>>;
fn last_first_record_start_position(&self) -> Option<VirtualPosition>;
}
Expand description
A binning index.
Required Methods§
sourcefn reference_sequences(
&self
) -> Box<dyn Iterator<Item = &dyn ReferenceSequence> + '_>
fn reference_sequences( &self ) -> Box<dyn Iterator<Item = &dyn ReferenceSequence> + '_>
Returns an iterator over reference sequences.
sourcefn unplaced_unmapped_record_count(&self) -> Option<u64>
fn unplaced_unmapped_record_count(&self) -> Option<u64>
Returns the number of unplaced, unmapped records in the associated file.
sourcefn query(
&self,
reference_sequence_id: usize,
interval: Interval
) -> Result<Vec<Chunk>>
fn query( &self, reference_sequence_id: usize, interval: Interval ) -> Result<Vec<Chunk>>
Returns the chunks that overlap with the given region.
sourcefn last_first_record_start_position(&self) -> Option<VirtualPosition>
fn last_first_record_start_position(&self) -> Option<VirtualPosition>
Returns the last first record start position.
This is the closest position to the unplaced, unmapped records, if any, that is available in an index.