R/pseudobulk_sce.R
pseudobulk_sce.Rd
Generate a pseudo-bulk of a SingleCellExperiment by summing counts of all
cells from the same sample_var
and celltype_var
. The SCE is then
re-annotated and library sizes calculated based on cell numbers.
pseudobulk_sce(
sce,
sample_var = "individual",
celltype_var = "cluster_celltype",
assay_name = "counts",
keep_vars = c("individual", "group", "sex", "age", "PMI", "RIN", "seqdate")
)
a SingleCellExperiment object
the variable name identifying unique samples
the variable name identifying cell types
the assay name for pseudobulking (e.g. "counts")
metadata variables to keep from the SingleCellExperiment
pb_sce a pseudobulk SingleCellExperiment object
Other differential gene expression:
.filter_sce_genes_for_de()
,
.generate_model_from_vars()
,
.perform_de_with_mast()
,
.preprocess_sce_for_de()
,
perform_de()
,
report_de()
,
volcano_plot()