Skip to main content

transform_scores

Function transform_scores 

Source
pub fn transform_scores(
    raw: &EnrichmentResult,
    spill: &SpillModel,
    scale: bool,
) -> EnrichmentResult
Expand description

Mirrors xCell 1.1.0 transformScores. For each cell type present in fv: t = max(0, (raw - rowMin) / 5000), then t^V2 / (V3 * 2). With scale = false, V3 is forced to 1 (so the divisor is exactly 2).