get_dimensions: Get dimensions

View source: R/get_methods.R

get_dimensionsR Documentation

Get dimensions

Description

Extract dimensionalities from the model.

Usage

get_dimensions(object)

Arguments

object

a MOFA object.

Details

K indicates the number of factors, M indicates the number of views, D indicates the number of features (per view), N indicates the number of samples (per group) and C indicates the number of covariates.

Value

list containing the dimensionalities of the model

Examples

# Using an existing trained model
file <- system.file("extdata", "model.hdf5", package = "MOFA2")
model <- load_model(file)
dims <- get_dimensions(model)

bioFAM/MOFA2 documentation built on Feb. 1, 2024, 6:41 a.m.