pub struct EnrichmentResult {
pub gene_sets: Vec<String>,
pub samples: Vec<String>,
pub scores: Vec<f64>,
}Expand description
Result of a gene-set enrichment run: a per-set score for each sample.
scores is stored row-major as gene_sets x samples, so the score for
gene set g in sample s lives at scores[g * samples.len() + s].
Fields§
§gene_sets: Vec<String>Gene-set names, in output order (rows of scores).
samples: Vec<String>Sample names (columns of scores); same order as the input matrix.
scores: Vec<f64>Enrichment scores, row-major: scores[set * samples.len() + sample].
Implementations§
Trait Implementations§
Source§impl Clone for EnrichmentResult
impl Clone for EnrichmentResult
Source§fn clone(&self) -> EnrichmentResult
fn clone(&self) -> EnrichmentResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for EnrichmentResult
impl RefUnwindSafe for EnrichmentResult
impl Send for EnrichmentResult
impl Sync for EnrichmentResult
impl Unpin for EnrichmentResult
impl UnsafeUnpin for EnrichmentResult
impl UnwindSafe for EnrichmentResult
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> 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