Learn R Programming

dispersionIndicators (version 0.1.5)

compute_individual: Computes Integrated Covariance Mahalanobis (ICM) distances for individuals, in PCA-reduced space, against either global or batch-wise references.

Description

Computes Integrated Covariance Mahalanobis (ICM) distances for individuals, in PCA-reduced space, against either global or batch-wise references.

Usage

compute_individual(pc_data, ref = c("global", "batch"), batch_col)

Value

A data frame with Mahalanobis distances for each individual against the specified reference.

Arguments

pc_data

PCA-reduced data frame.

ref

Reference type: "global" for global barycenter, "batch" for batch-wise barycenters.

batch_col

Name of the column representing batch or group.