compareEmb | R Documentation |
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)
emb_list |
A list of 2D embeddings (each typically containing coordinates for UMAP or t-SNE)
created by the |
n_cores |
Integer specifying the number of CPU cores to use for parallelization (default: 1) |
verbose |
Whether the function should print summary statistics as it calculates them |
print_plot |
Whether the final violin plot should be automatically printed |
A list containing the following components:
mean |
Numeric value representing the overall mean correlation across all pairwise comparisons |
mean_per_embedding |
Numeric vector of mean correlation values for each embedding |
all_pairwise_correlations |
Numeric vector containing all pairwise correlation values |
range |
Numeric vector with minimum and maximum of mean correlation per embedding |
ci |
Numeric vector containing the lower and upper bounds of the 95% confidence interval |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.