
Rank markers by how differently they are distributed in targets and the rest
Source:R/convex-gates.R
rank_gate_markers.RdWHY THE (median, p1, p99) TRIPLE AND NOT A MEAN DIFFERENCE: a marker can separate a population by having a different SPREAD rather than a different centre – a subset that is uniformly dim on a marker everything else is bimodal on, for instance – and a difference of means scores that at zero. Comparing three order statistics catches shifts in location and in both tails, and costs one pass over the column.