pub struct PositionResult {Show 13 fields
pub position: u64,
pub low_support: Option<SupportLabel>,
pub support: u64,
pub distinct_variants_count: u64,
pub entropy: Option<f64>,
pub observed_entropy: Option<f64>,
pub entropy_method: EntropyMethod,
pub entropy_fallback: Option<EntropyFallback>,
pub distinct_variants_incidence: Option<f64>,
pub total_variants_incidence: Option<f64>,
pub sample_coverage: Option<f64>,
pub below_min_coverage: Option<bool>,
pub diversity_motifs: Vec<Variant>,
}Expand description
Results for one k-mer position.
Fields§
§position: u641-based alignment column of the k-mer’s first residue.
low_support: Option<SupportLabel>Low-support class; null for eligible positions (support > T).
support: u64Number of sequences with a valid k-mer here (N).
distinct_variants_count: u64Number of distinct non-Index variants (DiMA’s definition).
entropy: Option<f64>Entropy in bits from entropy_method; null without support.
observed_entropy: Option<f64>Observed (plug-in) entropy in bits; null without support.
entropy_method: EntropyMethodMethod that produced entropy.
entropy_fallback: Option<EntropyFallback>Why the requested estimator was not used, if it was not.
distinct_variants_incidence: Option<f64>Non-Index variant types per 100 non-Index sequences; null when there are none.
total_variants_incidence: Option<f64>Non-Index sequences per 100 supporting sequences; null without support.
sample_coverage: Option<f64>Estimated sample coverage (Chao & Jost 2012); null when support < 2.
below_min_coverage: Option<bool>Whether coverage is below --min-coverage; null when not requested or not estimable.
diversity_motifs: Vec<Variant>Variants ordered by count (descending), then sequence.
Trait Implementations§
Source§impl Clone for PositionResult
impl Clone for PositionResult
Source§fn clone(&self) -> PositionResult
fn clone(&self) -> PositionResult
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PositionResult
impl Debug for PositionResult
Source§impl<'de> Deserialize<'de> for PositionResult
impl<'de> Deserialize<'de> for PositionResult
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for PositionResult
impl PartialEq for PositionResult
Source§impl Serialize for PositionResult
impl Serialize for PositionResult
impl StructuralPartialEq for PositionResult
Auto Trait Implementations§
impl Freeze for PositionResult
impl RefUnwindSafe for PositionResult
impl Send for PositionResult
impl Sync for PositionResult
impl Unpin for PositionResult
impl UnsafeUnpin for PositionResult
impl UnwindSafe for PositionResult
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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> ⓘ
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> ⓘ
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 more