add_embeddings2scelist | R Documentation |
Add embeddings to list of SCEs
add_embeddings2scelist(scelist, embeddings, slotname = "corralm")
scelist |
list of SingleCellExperiments; to which the corresponding embeddings should be added |
embeddings |
matrix; the embeddings outputted from a dimension reduction, e.g. |
slotname |
character; name of the slot for the reduced dim embedding; defaults to |
list of SingleCellExperiments with respective embeddings stored in them
library(DuoClustering2018) sce <- sce_full_Zhengmix4eq() scelist <- list(sce,sce) embeddings <- matrix(sample(seq(0,20,1),dim(sce)[2]*6,replace = TRUE),nrow = dim(sce)[2]*2) scelist <- add_embeddings2scelist(scelist, embeddings)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.