Take random single cells from the input expression set, given the cell_fractions vector and combine them by taking the mean.
make_random_bulk(eset, cell_fractions, n_cells = 500, combine = mean)
Biobase::ExpressionSet
with a cell_type
column in pData
.
Each sample is the gene expression of a single cell. The cell
type of each cell needs to be denoted in the pData table in the
cell_type
column.
named list indicating the fraction of each cell type
which will be in the sample. The names of the list need to correspond
to the cell_type
column in the ExpressionSet.
number of single cells to integrate into a sample
callback function used to aggregate the counts.