create_mofa_from_SingleCellExperiment: create a MOFA object from a SingleCellExperiment object

View source: R/create_mofa.R

create_mofa_from_SingleCellExperimentR Documentation

create a MOFA object from a SingleCellExperiment object

Description

Method to create a MOFA object from a SingleCellExperiment object

Usage

create_mofa_from_SingleCellExperiment(
  sce,
  groups = NULL,
  assay = "logcounts",
  extract_metadata = FALSE
)

Arguments

sce

SingleCellExperiment 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).

assay

assay to use, default is logcounts.

extract_metadata

logical indicating whether to incorporate the metadata from the SingleCellExperiment object into the MOFA object

Value

Returns an untrained MOFA object


bioFAM/MOFA2 documentation built on June 12, 2024, 3:57 p.m.