lucem_hist::multiplex
Multiplexed analysis: one classifier per marker (a measurement of its channel above a
threshold makes the cell positive for it), combined into a composite so a cell’s class lists
its markers (CD3: CD8); phenotypes are named marker combinations counted over a region.
MarkerRule
Section titled “MarkerRule”pub struct MarkerRuleFields
marker: String: The marker (CD8): the class part a positive cell gets.measurement: String: What decides it (Cell: CD8 mean).threshold: f64
Implements Clone, Debug, Deserialize, PartialEq, Serialize.
Phenotype
Section titled “Phenotype”pub struct PhenotypeA named combination: the markers a cell must have and the ones it must not.
Fields
name: Stringpositive: Vec<String>negative: Vec<String>
Methods
pub fn matches(&self, o: &HistObject) -> boolImplements Clone, Debug, Deserialize, PartialEq, Serialize.
Functions
Section titled “Functions”marker_classifier
Section titled “marker_classifier”pub fn marker_classifier(name: &str, rules: &[MarkerRule]) -> ObjectClassifierThe composite classifier of the markers, in their order.
phenotype_counts
Section titled “phenotype_counts”pub fn phenotype_counts<'a>( objects: impl IntoIterator<Item = &'a HistObject> + Clone, phenotypes: &[Phenotype],) -> Vec<(String, usize)>How many objects each phenotype has (an object may count in several).