Computes Integrated Covariance Mahalanobis (ICM) distances for individuals, in PCA-reduced space, against either global or batch-wise references.
compute_individual(pc_data, ref = c("global", "batch"), batch_col)A data frame with Mahalanobis distances for each individual against the specified reference.
PCA-reduced data frame.
Reference type: "global" for global barycenter, "batch" for batch-wise barycenters.
Name of the column representing batch or group.