Learn R Programming

MOFA (version 1.3.1)

getDimensions: getDimensions

Description

Extract dimensionalities from the model.

Usage

getDimensions(object)

Arguments

object

a MOFAmodel object.

Value

list with the relevant dimensionalities of the model. N for the number of samples, M for the number of views, D for the number of features of each view and K for the number of infered latent factors.

Details

K indicates the number of factors, D indicates the number of features, N indicates the (total) number of samples and M indicates the number of views.

Examples

Run this code
# NOT RUN {
# load a trained MOFAmodel object
filepath <- system.file("extdata", "CLL_model.hdf5", package = "MOFAdata")
MOFAobject <- loadModel(filepath)
# get dimensions 
getDimensions(MOFAobject)
# }

Run the code above in your browser using DataLab