
Function to train an untrained MOFAmodel
object.
runMOFA(object, outfile = NULL)
an untrained MOFAmodel
object
output .hdf5 file
a trained MOFAmodel
object
In this step the R package is calling the mofapy
Python package,
where the the training is performed.
The interface with Python is done with the reticulate
package.
If you have several versions of Python installed and Rstudio is not detecting
the correct one, you can change it using reticulate::use_python
.
# NOT RUN {
data <- makeExampleData()
# create and prepare the MOFAmodel
MOFAobject <- createMOFAobject(data)
MOFAobject <- prepareMOFA(MOFAobject)
# fit the model (takes some time)
# }
# NOT RUN {
# MOFAobject <- runMOFA(MOFAobject)
# MOFAobject
# }
Run the code above in your browser using DataLab