This 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)

Arguments

data

A Seurat object containing expression.

ncores

Number of cores for parallel computation.

Value

A Seurat object containing the pseudo-bulks for each cell type of each sample.