sc_reconstruction.metrics.load_cytokine_dict_from_csv#
- sc_reconstruction.metrics.load_cytokine_dict_from_csv(path, *, celltype=None, fdr_threshold=0.05, min_genes=5)[source]#
Build a cytokine -> gene-list mapping from the Immune Dictionary CSV.
Cytokine signatures are taken from the Immune Dictionary of [Cui et al., 2024]. The CSV at
analysis/data/frozen/cytokine_act_merged.csvhas columnsCelltype_Str, Cytokine_Str, Gene, FDR, Avg_log2FC(plus a few others).- Parameters:
celltype (str | None) – If given, restrict to one cell-type (e.g.
"B_cell"). IfNone, cytokine signatures are pooled across all cell types.fdr_threshold (float | None) – Drop genes with
FDR > fdr_thresholdbefore grouping. Set toNoneto keep all genes.min_genes (int) – Drop cytokines with fewer than this many surviving genes.
- Return type: