create_mofa_from_df | R Documentation |
Method to create a MOFA
object from a data.frame object
create_mofa_from_df(df, extract_metadata = TRUE)
df |
|
extract_metadata |
logical indicating whether to incorporate the extra columns as sample metadata into the MOFA object |
Returns an untrained MOFA
object
# 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_from_df(dt)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.