Description Usage Arguments Value Examples
Function to prepare a MOFAmodel object for training.
Here, data, input/output option are specified and data, model and training options can be set.
1 2  | prepareMOFA(object, DataOptions = NULL, ModelOptions = NULL,
  TrainOptions = NULL)
 | 
object | 
 an untrained   | 
DataOptions | 
 list of DataOptions (see   | 
ModelOptions | 
 list of ModelOptions (see   | 
TrainOptions | 
 list of TrainOptions (see   | 
Returns an untrained MOFAmodel with specified data, model and training options.
Next step is to train the model with runMOFA
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15  | # load data
data("CLL_data", package = "MOFAdata")
#create a MOFAmodel object
MOFAobject <- createMOFAobject(CLL_data)
# set options
TrainOptions <- getDefaultTrainOptions()
ModelOptions <- getDefaultModelOptions(MOFAobject)
DataOptions <- getDefaultDataOptions()
# prepare MOFAmodel object for training
MOFAobject <- prepareMOFA(MOFAobject, 
DataOptions = DataOptions,
ModelOptions = ModelOptions,
TrainOptions = TrainOptions
)
MOFAobject
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.