# NOT RUN {
# load a trained MOFAmodel object
filepath <- system.file("extdata", "CLL_model.hdf5", package = "MOFAdata")
MOFAobject <- loadModel(filepath)
# get weights as a list of matrices
weightList <- getWeights(MOFAobject, view = "all", factors = 1:4)
# get weights as a data.frame
head(getWeights(MOFAobject, view = "Mutations", as.data.frame = TRUE))
# }
Run the code above in your browser using DataLab