Struct noodles_csi::binning_index::index::Index
source · pub struct Index<I> { /* private fields */ }
Expand description
A binning index.
Implementations§
source§impl<I> Index<I>where
I: Index,
impl<I> Index<I>where
I: Index,
sourcepub fn builder() -> Builder<I>
pub fn builder() -> Builder<I>
Returns a builder to create an index from each of its fields.
§Examples
use noodles_csi as csi;
let builder = csi::Index::builder();
sourcepub fn reference_sequences(&self) -> &[ReferenceSequence<I>]
pub fn reference_sequences(&self) -> &[ReferenceSequence<I>]
Returns a list of indexed reference sequences.
§Examples
use noodles_csi as csi;
let index = csi::Index::default();
assert!(index.reference_sequences().is_empty());
Trait Implementations§
source§impl<I> BinningIndex for Index<I>where
I: Index,
impl<I> BinningIndex for Index<I>where
I: Index,
source§fn 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.
source§fn 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.
source§fn 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.
source§fn last_first_record_start_position(&self) -> Option<VirtualPosition>
fn last_first_record_start_position(&self) -> Option<VirtualPosition>
Returns the last first record start position. Read more
source§impl<I: PartialEq> PartialEq for Index<I>
impl<I: PartialEq> PartialEq for Index<I>
impl<I: Eq> Eq for Index<I>
impl<I> StructuralPartialEq for Index<I>
Auto Trait Implementations§
impl<I> Freeze for Index<I>
impl<I> RefUnwindSafe for Index<I>where
I: RefUnwindSafe,
impl<I> Send for Index<I>where
I: Send,
impl<I> Sync for Index<I>where
I: Sync,
impl<I> Unpin for Index<I>where
I: Unpin,
impl<I> UnwindSafe for Index<I>where
I: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.