Performs differential difference analysis for a given cell type to identify genes modulated by sex-phenotype interactions using limma.
sex_interaction_analysis_sc(
seurat_obj,
target_cell_type,
sex_col = "sex",
phenotype_col = "status",
celltype_col = "cell_type",
min_logfc = 0.25,
fdr_threshold = 0.05,
sex_labels = c("F", "M"),
phenotype_labels = c("WT", "TG")
)A list with complete DE results, significant results, and summary statistics.
A Seurat object.
Character. Cell type to analyze.
Character. Column name for sex (default "sex").
Character. Column name for phenotype (default "status").
Character. Column name for cell type (default "cell_type").
Numeric. Minimum absolute log fold change (default 0.25).
Numeric. FDR threshold for significance (default 0.05).
Character vector of sex labels (default c("F","M")).
Character vector of phenotype groups (default c("WT","TG")).