create_mofa_from_matrix: create a MOFA object from a a list of matrices

View source: R/create_mofa.R

create_mofa_from_matrixR Documentation

create a MOFA object from a a list of matrices

Description

Method to create a MOFA object from a list of matrices

Usage

create_mofa_from_matrix(data, groups = NULL)

Arguments

data

A list of matrices, where each entry corresponds to one view. Samples are stored in columns and features in rows. Missing values must be filled in prior to creating the MOFA object (see for example the CLL tutorial)

groups

A character vector with group assignment for every sample. Default is NULL, no group structure.

Value

Returns an untrained MOFA object

Examples

m <- make_example_data()
create_mofa_from_matrix(m$data)

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