create_mofa_from_df: create a MOFA object from a data.frame object

Description Usage Arguments Value Examples

View source: R/create_mofa.R

Description

Method to create a MOFA object from a data.frame object

Usage

1

Arguments

df

data.frame object with at most 5 columns: sample, group, feature, view, value. The group column (optional) indicates the group of each sample when using the multi-group framework. The view column (optional) indicates the view of each feature when having multi-view data.

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_from_df(dt)

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