create_mofa_from_Seurat {MOFA2} | R Documentation

## create a MOFA object from a Seurat object

### Description

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

### Usage

    create_mofa_from_Seurat(
      seurat,
      groups = NULL,
      assays = NULL,
      slot = "data",
      features = NULL,
      save_metadata = FALSE
    )

### Arguments

`seurat` | Seurat object
`groups` | a string specifying column name of the samples metadata to use it as a group variable. Alternatively, a character vector with group assignment for every sample. Default is `NULL` (no group structure).
`assays` | assays to use, default is `NULL`, it fetched all assays available
`slot` | assay slot to be used such as scale.data or data (default).
`features` | a list with vectors, which are used to subset features, with names corresponding to assays; a vector can be provided when only one assay is used
`save_metadata` | logical indicating whether to incorporate the metadata from the Seurat object into the MOFA object

### Value

Returns an untrained `MOFA` object

[Package MOFA2 version 1.0.1 Index]