Skip to contents

Creates a SummarizedExperiment object necessary to build a multi-view representation.

Usage

create_init_exp(counts, coldata)

Arguments

counts

Named numeric matrix with features in rows and samples in columns.

coldata

A data frame containing the annotations of the samples.

Value

SummarizedExperiment with provided data

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)