add_mofa_factors_to_seurat | R Documentation |
Function to add the MOFA latent representation to a Seurat object
add_mofa_factors_to_seurat(
mofa_object,
seurat_object,
views = "all",
factors = "all"
)
mofa_object |
a trained |
seurat_object |
a Seurat object |
views |
character vector with the view names, or numeric vector with view indexes. Default is 'all' |
factors |
character vector with the factor names, or numeric vector with the factor indexes. Default is 'all' |
This function calls the CreateDimReducObject
function from Seurat to store the MOFA factors.
Returns a Seurat object with the 'reductions' slot filled with the MOFA factors. Also adds, if calculated, the UMAP/TSNE obtained with the MOFA factors.
# Generate a simulated data set
MOFAexample <- make_example_data()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.