pub enum TestMethod {
TTest(TTestType),
MannWhitney,
NegativeBinomial,
ZeroInflated,
}Expand description
Statistical test methods available for differential expression analysis.
This enum defines the different statistical tests that can be applied to single-cell data. Each method has specific assumptions and use cases.
Variants§
TTest(TTestType)
Student’s or Welch’s t-test for comparing means between two groups.
Use when: Data is approximately normal, comparing continuous expression values. Best for: Most differential expression analyses in single-cell data.
MannWhitney
Mann-Whitney U test (Wilcoxon rank-sum test) for non-parametric comparison.
Use when: Data is not normally distributed, or you want a robust rank-based test. Best for: Highly skewed expression data or small sample sizes.
NegativeBinomial
Negative binomial test for count data with overdispersion.
Use when: Working with raw UMI counts and modeling overdispersion. Best for: Count-based differential expression (like DESeq2/edgeR approach).
ZeroInflated
Zero-inflated models for data with excess zeros.
Use when: High proportion of zero values (dropout) needs explicit modeling. Best for: Single-cell data with significant technical dropout.
Trait Implementations§
Source§impl Clone for TestMethod
impl Clone for TestMethod
Source§fn clone(&self) -> TestMethod
fn clone(&self) -> TestMethod
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for TestMethod
impl Debug for TestMethod
impl Copy for TestMethod
Auto Trait Implementations§
impl Freeze for TestMethod
impl RefUnwindSafe for TestMethod
impl Send for TestMethod
impl Sync for TestMethod
impl Unpin for TestMethod
impl UnwindSafe for TestMethod
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,
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.