R/diffexp_models.R
perform_de.Rd
Perform Differential Gene Expression on a SingleCellExperiment
perform_de(
sce,
de_method = "MASTZLM",
mast_method = "glm",
min_counts = 1,
min_cells_pc = 0.1,
rescale_numerics = TRUE,
dependent_var = "group",
ref_class = "Control",
confounding_vars = c("individual", "cngeneson", "sex", "age", "PMI", "RIN", "seqdate",
"pc_mito"),
random_effects_var = NULL,
interaction_vars = NULL,
unique_id_var = "individual",
species = getOption("scflow_species", default = "human"),
parallel = TRUE,
...
)
a SingleCellExperiment object
The differential gene expression method.
If de_method
is "MASTZLM" then mast_method should be
provided. Possible values are "glm", "glmer", "bayesglm". Default is "glm".
For "glmer" and "random_effects_var" should be provided.
minimum number of counts
percentage of cells with min_counts for gene selection
rescaling numerics may improve model
the name of the colData variable for contrasts
the class of dependent_var used as reference
the independent variables of the model
variable(s) to model as random effects
two or more variables to model as interacting
the colData variable identifying unique samples
human or mouse
enable parallel processing
advanced options
results_l a list of DE table results
Other differential gene expression:
.filter_sce_genes_for_de()
,
.generate_model_from_vars()
,
.perform_de_with_mast()
,
.preprocess_sce_for_de()
,
pseudobulk_sce()
,
report_de()
,
volcano_plot()