pub fn transform_scores(
raw: &EnrichmentResult,
spill: &SpillModel,
scale: bool,
) -> EnrichmentResultExpand 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).