Description Usage Arguments Details Value Examples
View source: R/dimensionality_reduction.R
Run t-SNE on the MOFA factors
1 |
object |
a trained |
factors |
character vector with the factor names, or numeric vector with the indices of the factors to use, or "all" to plot all factors. |
groups |
character vector with the groups names, or numeric vector with the indices of the groups of samples to use, or "all" to use samples from all groups. |
... |
arguments passed to |
use set.seed before the function call to get reproducible results.
Returns a MOFA
object with the dim_red slot filled with the t-SNE output
1 2 3 4 5 6 7 8 9 | # Using an existing trained model on simulated data
file <- system.file("extdata", "model.hdf5", package = "MOFA2")
model <- load_model(file)
# Run t-SNE
## Not run: model <- run_tsne(model)
# Change hyperparameters passed to Rtsne
## Not run: model <- run_tsne(model, perplexity = 15)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.