getDimensions: getDimensions

Description Usage Arguments Details Value Examples

View source: R/getMethods.R

Description

Extract dimensionalities from the model.

Usage

1
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

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

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