getDimensions {MOFA}R Documentation

getDimensions

Description

Extract dimensionalities from the model.

Usage

getDimensions(object)

Arguments

object

a MOFAmodel object.

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.

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.

Examples

# load a trained MOFAmodel object
filepath <- system.file("extdata", "CLL_model.hdf5", package = "MOFAdata")
MOFAobject <- loadModel(filepath)
# get dimensions 
getDimensions(MOFAobject)

[Package MOFA version 1.2.0 Index]