pub struct Reconciled {
pub term_rows: FxHashMap<Box<str>, Vec<usize>>,
pub names: FxHashMap<Box<str>, Box<str>>,
pub universe: Vec<usize>,
pub n_genes_total: usize,
pub n_genes_matched: usize,
pub n_terms_kept: usize,
pub n_terms_total: usize,
}Expand description
Gene-sets reconciled against an expression dictionary: term → matched row indices, plus coverage statistics. This is the sparse membership the enrichment scorer consumes (term → its rows in the gene profile).
Fields§
§term_rows: FxHashMap<Box<str>, Vec<usize>>term id → matched dictionary row indices (deduped, ascending); only terms retaining ≥ the requested minimum members are kept.
names: FxHashMap<Box<str>, Box<str>>term id → display name (carried through from the source).
universe: Vec<usize>All matched dictionary rows that carry ≥1 annotation (the enrichment
background “universe”), ascending. Drawn from every source term — NOT
only the size-windowed term_rows — so the hypergeometric background is
the full annotated set.
n_genes_total: usizedistinct gene keys in the source.
n_genes_matched: usizegene keys that matched at least one dictionary row.
n_terms_kept: usizeterms retained (≥ min members after reconciliation).
n_terms_total: usizeterms in the source before the min-member filter.
Implementations§
Source§impl Reconciled
impl Reconciled
Sourcepub fn match_frac(&self) -> f32
pub fn match_frac(&self) -> f32
Fraction of source genes matched to the dictionary.
Sourcepub fn n_memberships(&self) -> usize
pub fn n_memberships(&self) -> usize
Total membership entries across retained terms.
Sourcepub fn log_coverage(&self)
pub fn log_coverage(&self)
Log a one-line coverage summary — info, or warn when overlap is thin
(a near-empty map silently yields no enrichment).
Auto Trait Implementations§
impl Freeze for Reconciled
impl RefUnwindSafe for Reconciled
impl Send for Reconciled
impl Sync for Reconciled
impl Unpin for Reconciled
impl UnsafeUnpin for Reconciled
impl UnwindSafe for Reconciled
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> ErasedDestructor for Twhere
T: 'static,
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> ⓘ
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
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
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.