pub struct Stats {
pub identical: usize,
pub mass_similar: usize,
pub similar: usize,
pub gaps: usize,
pub length: usize,
}Expand description
Statistics for an alignment with some helper functions to easily retrieve the number of interest.
Fields§
§identical: usizeThe total number of identical positions
mass_similar: usizeThe total number of mass similar positions, so including isobaric and rotations
similar: usizeThe total number of similar positions, where the scoring matrix scores above 0, and not isobaric
gaps: usizeThe total number of gap positions
length: usizeThe length of the alignment, the sum of the max of the step for A and B for each position.
Implementations§
Source§impl Stats
impl Stats
Sourcepub fn mass_similarity(self) -> f64
pub fn mass_similarity(self) -> f64
Get the mass similarity as fraction.
Sourcepub fn similarity(self) -> f64
pub fn similarity(self) -> f64
Get the similarity as fraction.
Sourcepub fn gaps_fraction(self) -> f64
pub fn gaps_fraction(self) -> f64
Get the gaps as fraction.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Stats
impl<'de> Deserialize<'de> for Stats
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>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for Stats
impl Eq for Stats
impl StructuralPartialEq for Stats
Auto Trait Implementations§
impl Freeze for Stats
impl RefUnwindSafe for Stats
impl Send for Stats
impl Sync for Stats
impl Unpin for Stats
impl UnwindSafe for Stats
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> HighestOf<T> for T
impl<T> HighestOf<T> for T
Source§type HighestLevel = T
type HighestLevel = T
This is the highest complexity level out of Self and the type parameter
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 more