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

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