create_mofa: create a MOFA object

Description Usage Arguments Value Examples

View source: R/create_mofa.R

Description

Method to create a MOFA object. Depending on the input data format, this method calls one of the following functions:

Please read the documentation of the corresponding function for more details on your specific data format.

Usage

1
create_mofa(data, groups = NULL, ...)

Arguments

data

one of the formats above

groups

group information, only relevant when using the multi-group framework.

...

further arguments that can be passed to the function depending on the inout data format. See the dpcumentation of above functions for details.

Value

Returns an untrained MOFA object

Examples

1
2
3
4
5
6
# Using an existing simulated data with two groups and two views
file <- system.file("extdata", "test_data.RData", package = "MOFA2")

# Load data (in long data.frame format)
load(file) 
MOFAmodel <- create_mofa(dt)

MOFA2 documentation built on Nov. 8, 2020, 7:28 p.m.