R/make_pseudobulk.R
make_pseudobulk.Rd
Calculate the summed pseudobulk values for an SCE object based on one single cell type only. Ensure to filter SCE to pass one cell type's data.
make_pseudobulk(
data,
pseudobulk_ID,
pb_columns = NULL,
region = "single_region",
rmv_zero_count_genes = TRUE
)
SingleCellExperiment object, a specialised S4 class for storing data from single-cell experiments.
Column name in the SCE object to perform pseudobulk on, usually the patient identifier. This column is used for grouping in the pseudobulk approach
Vector, list of annotation column names in the SCE object to be returned in annot_pb rolled up to pseudobulk level. Default is NULL which won't return any information in annot_pb.
Column name in the SCE object for the study region. If there are multiple regions in the study (for example two brain regions). Pseudobulk values can be derived separately. Default is "single_region" which will not split by region.
Whether genes with no count values in any cell should be removed. Default is TRUE
a list containing: sumDat: matrix of the summed pseudobulk count values annot_pb: dataframe of the annotation data from the SCE rolled up based on the pseudobulk aggregation.