# NOT RUN {
# Option 1: Create a MOFAobject from a list of matrices, features in rows and samples in columns.
data("CLL_data", package = "MOFAdata")
MOFAobject <- createMOFAobject(CLL_data)
# Option 2: Create a MOFAobject from a MultiAssayExperiment
library(MultiAssayExperiment)
data("CLL_data", package = "MOFAdata")
data("CLL_covariates", package = "MOFAdata")
mae_CLL <- MultiAssayExperiment(experiments = CLL_data, colData = CLL_covariates)
MOFAobject <- createMOFAobject(mae_CLL)
# next, this object can be passed to prepareMOFA and runMOFA
# (training in runMOFA can take some time):
# }
# NOT RUN {
# MOFAobject <- prepareMOFA(MOFAobject)
# MOFAobject <- runMOFA(MOFAobject)
# }
Run the code above in your browser using DataLab