Applies quantile normalization or z-score normalization to expression matrices. Designed for gene expression data (rows = samples, columns = genes).
Usage
normalize_data(data, method = c("zscore", "rank", "minmax", "quantile"), ...)Arguments
- data
Numeric matrix or data.frame (samples x variables).
- method
Normalization method:
"zscore"(default): Center and scale each column to mean 0, sd 1."rank": Transform to normal scores via rank-based inverse normal."minmax": Scale each column to [0, 1]."quantile": Quantile normalize across columns (samples must be aligned; i.e., rows are matched observations).
- ...
Additional arguments (currently unused).
