Evaluates the stability of a set of dimension reduction embeddings by performing pairwise Procrustes alignment and calculating Kendall's Tau correlation between each pair. This function quantifies the consistency of embeddings generated with the same algorithm but different random initializations.
compareEmb(emb_list, n_cores = 1, verbose = TRUE, print_plot = TRUE)
A list containing the following components:
Numeric value representing the overall mean correlation across all pairwise comparisons
Numeric vector of mean correlation values for each embedding
Numeric vector containing all pairwise correlation values
Numeric vector with minimum and maximum of mean correlation per embedding
Numeric vector containing the lower and upper bounds of the 95% confidence interval
A list of 2D embeddings (each typically containing coordinates for UMAP or t-SNE)
created by the createEmb
function
Integer specifying the number of CPU cores to use for parallelization (default: 1)
Whether the function should print summary statistics as it calculates them
Whether the final violin plot should be automatically printed