Learn R Programming

XYomics (version 0.1.2)

sex_interaction_analysis_sc: Perform Sex-Phenotype Interaction Analysis for Single-Cell Data

Description

Performs differential difference analysis for a given cell type to identify genes modulated by sex-phenotype interactions using limma.

Usage

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

Value

A list with complete DE results, significant results, and summary statistics.

Arguments

seurat_obj

A Seurat object.

target_cell_type

Character. Cell type to analyze.

sex_col

Character. Column name for sex (default "sex").

phenotype_col

Character. Column name for phenotype (default "status").

celltype_col

Character. Column name for cell type (default "cell_type").

min_logfc

Numeric. Minimum absolute log fold change (default 0.25).

fdr_threshold

Numeric. FDR threshold for significance (default 0.05).

sex_labels

Character vector of sex labels (default c("F","M")).

phenotype_labels

Character vector of phenotype groups (default c("WT","TG")).