R/utils.R
bulk_sample_celltype.RdThis function takes a Seurat object as input and creates a pseudo-bulk for each cell type of each sample in the object. This is computed by taking the row means of the expression for each cell type of each sample If a cell type does not exist in a sample, the expression values for that cell type will be 0 for all genes.
bulk_sample_celltype(data, ncores = 1)A Seurat object containing expression.
Number of cores for parallel computation.
A Seurat object containing the pseudo-bulks for each cell type of each sample.