Median-centred log-ratio with optional MAD scaling
Source:R/singlesample-within-sample.R
ws_mad_logratio.RdRobust descriptive transform on log-abundances: subtracts the per-sample median log-abundance (more robust to outlier features than mean-centering as in CLR/rCLR) and optionally divides by the per-sample median absolute deviation (MAD; limits leverage from individual high-magnitude features).
This is NOT an Aitchison-valid simplex projection. It is a robust descriptive transform on log-abundances, suitable as input to learners that do not require the zero-sum compositional coordinate constraint.