bulk_construct: Construct artificial bulk tissue expression from single cell...

View source: R/construct.R

bulk_constructR Documentation

Construct artificial bulk tissue expression from single cell data

Description

Artificial bulk tissue expression is generated by adding gene expressions of all cells from same subjects.

Usage

bulk_construct(sce, clusters, samples, select.ct = NULL)

Arguments

sce

SingleCellExperiment, single cell dataset

clusters

character, the colData used as clusters

samples

character, the colData used as samples

select.ct

vector of cell types included, default as NULL. If NULL, include all cell types in x. Otherwise, only cells of selected cell types will be used for construction.

Value

Matrix of expression of constructed bulk tissue, matrix of cell number in each cluster by sample


xuranw/MuSiC documentation built on March 7, 2024, 11:45 a.m.