Single-cell SummarizedExperiment object
create_init_exp.Rd
Creates a SummarizedExperiment object necessary to build a multi-view representation.
Arguments
- counts
Named numeric matrix with features in rows and samples in columns.
- coldata
A data frame containing the annotations of the samples.
Details
This function is the first step for a multicellular factor analysis. It collects in a single object the pseudobulk counts of a single cell experiment and its annotations.
Examples
inputs_dir <- base::system.file("extdata", package = "MOFAcellulaR")
load(file.path(inputs_dir, "testpbcounts.rda"))
load(file.path(inputs_dir, "testcoldata.rda"))
pb_obj <- create_init_exp(counts = testpbcounts, coldata = testcoldata)