Computes Integrated Covariance Mahalanobis (ICM) distances between batches barycenters in PCA-reduced space, using a reference bacth and either mean or median for center references.
compute_inter(
pc_data,
batch_col,
ref_batch,
center_method = c("mean", "median")
)A data frame with Mahalanobis distances for each batch against the reference.
PCA-reduced data frame.
Name of the column representing batch or group.
Name of the reference batch for distance computation.
Method for centering: "mean" or "median".