Description Usage Arguments Value Examples
Method to create a MOFA
object. Depending on the input data format, this method calls one of the following functions:
long data.frame: create_mofa_from_df
List of matrices: create_mofa_from_matrix
MultiAssayExperiment: create_mofa_from_MultiAssayExperiment
Seurat: create_mofa_from_Seurat
SingleCellExperiment: create_mofa_from_SingleCellExperiment
Please read the documentation of the corresponding function for more details on your specific data format.
1 | create_mofa(data, groups = NULL, ...)
|
data |
one of the formats above |
groups |
group information, only relevant when using the multi-group framework. |
... |
further arguments that can be passed to the function depending on the inout data format. See the dpcumentation of above functions for details. |
Returns an untrained MOFA
object
1 2 3 4 5 6 | # Using an existing simulated data with two groups and two views
file <- system.file("extdata", "test_data.RData", package = "MOFA2")
# Load data (in long data.frame format)
load(file)
MOFAmodel <- create_mofa(dt)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.