Skip to main content

Module transform

Module transform 

Source
Expand description

Stage 2 of xCell: transformScores.

Calibrates each cell type’s raw enrichment with a per-cell-type power curve.

Functions§

transform_scores
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).