create_mofa_from_MultiAssayExperiment {MOFA2} | R Documentation

## create a MOFA object from a MultiAssayExperiment object

### Description

Method to create a `MOFA` object from a MultiAssayExperiment object

### Usage

    create_mofa_from_MultiAssayExperiment(
      mae,
      groups = NULL,
      extract_metadata = FALSE
    )

### Arguments

`mae` | a MultiAssayExperiment object
`groups` | a string specifying column name of the colData to use it as a group variable. Alternatively, a character vector with group assignment for every sample. Default is `NULL` (no group structure).
`extract_metadata` | logical indicating whether to incorporate the metadata from the MultiAssayExperiment object into the MOFA object

### Value

Returns an untrained `MOFA` object

[Package MOFA2 version 1.4.0 Index]