pub struct BucketStatistics {
pub num_buckets: u64,
pub num_kmers: u64,
pub num_positions: u64,
pub num_singleton_buckets: u64,
pub num_light_buckets: u64,
pub num_heavy_buckets: u64,
pub max_bucket_size: usize,
pub num_positions_in_light: u64,
pub num_positions_in_heavy: u64,
pub num_super_kmers_in_non_singleton: u64,
}Expand description
Statistics about bucket sizes and distribution
Fields§
§num_buckets: u64Total number of buckets (unique minimizers)
num_kmers: u64Total number of k-mers
num_positions: u64Total number of minimizer positions
num_singleton_buckets: u64Number of singleton buckets (size == 1)
num_light_buckets: u64Number of light buckets (1 < size <= MIN_BUCKET_SIZE)
num_heavy_buckets: u64Number of heavy buckets (size > MIN_BUCKET_SIZE)
max_bucket_size: usizeMaximum observed bucket size
num_positions_in_light: u64Total positions in light buckets
num_positions_in_heavy: u64Total positions in heavy buckets
num_super_kmers_in_non_singleton: u64Total super-k-mers in buckets larger than 1
Implementations§
Source§impl BucketStatistics
impl BucketStatistics
Sourcepub fn add_bucket(&mut self, bucket: &[MinimizerTuple])
pub fn add_bucket(&mut self, bucket: &[MinimizerTuple])
Record statistics for a bucket
Sourcepub fn print_summary(&self)
pub fn print_summary(&self)
Log statistics summary via tracing
Trait Implementations§
Source§impl Clone for BucketStatistics
impl Clone for BucketStatistics
Source§fn clone(&self) -> BucketStatistics
fn clone(&self) -> BucketStatistics
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BucketStatistics
impl Debug for BucketStatistics
Auto Trait Implementations§
impl Freeze for BucketStatistics
impl RefUnwindSafe for BucketStatistics
impl Send for BucketStatistics
impl Sync for BucketStatistics
impl Unpin for BucketStatistics
impl UnsafeUnpin for BucketStatistics
impl UnwindSafe for BucketStatistics
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<T, U> CastableInto<U> for Twhere
U: CastableFrom<T>,
impl<T, U> CastableInto<U> for Twhere
U: CastableFrom<T>,
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DowncastableFrom<T> for T
impl<T> DowncastableFrom<T> for T
Source§fn downcast_from(value: T) -> T
fn downcast_from(value: T) -> T
Truncate the current UnsignedInt to a possibly smaller size
Source§impl<T, U> DowncastableInto<U> for Twhere
U: DowncastableFrom<T>,
impl<T, U> DowncastableInto<U> for Twhere
U: DowncastableFrom<T>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> UpcastableFrom<T> for T
impl<T> UpcastableFrom<T> for T
Source§fn upcast_from(value: T) -> T
fn upcast_from(value: T) -> T
Extend the current UnsignedInt to a possibly bigger size.