R/construct.R
bulk_construct.Rd
Artificial bulk tissue expression is generated by adding gene expressions of all cells from same subjects.
bulk_construct(sce, clusters, samples, select.ct = NULL)
SingleCellExperiment, single cell dataset
character, the colData used as clusters
character, the colData used as samples
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.
Matrix of expression of constructed bulk tissue, matrix of cell number in each cluster by sample