prepareMOFA: prepare a MOFAobject for training

Description Usage Arguments Value Examples

View source: R/prepareMOFA.R

Description

Function to prepare a MOFAmodel object for training. Here, data, input/output option are specified and data, model and training options can be set.

Usage

1
2

Arguments

object

an untrained MOFAmodel

DataOptions

list of DataOptions (see getDefaultDataOptions details). If NULL, default data options are used.

ModelOptions

list of ModelOptions (see getDefaultModelOptions for details). If NULL, default model options are used.

TrainOptions

list of TrainOptions (see getDefaultTrainOptions for details). If NULL, default training options are used.

Value

Returns an untrained MOFAmodel with specified data, model and training options. Next step is to train the model with runMOFA

Examples

 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

bioFAM/MOFA documentation built on Oct. 3, 2020, 12:53 a.m.