Distances.pre_embedding | R Documentation |
This function calculates the distances between cells in the pre-embedding space for the original and permuted data
Distances.pre_embedding(pbmc, pbmc_permuted, K, pre_embedding = 'pca')
pbmc |
The original Seurat object |
pbmc_permuted |
The permuted Seurat object, i.e. the output of |
K |
The number of PCs to use |
pre_embedding |
Which embedding set to use for distance calculation, default = 'pca'. If the user would like to use an alternate method, like ICA, they should perform that method for the original and permuted data, then specify the slot name here |
Returns a list with two distance matrices, (1) 'pre_embedding_distances': a matrix showing the distances between cells in the original pre-embedding space (2) 'pre_embedding_distances_permuted': a matrix showing the distances between cells in the permuted pre-embedding space
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.