From 1f34f9bdf27dffb003f1f63da5c724c9474d049e Mon Sep 17 00:00:00 2001 From: Henry Webel Date: Mon, 20 Jul 2026 16:39:30 +0200 Subject: [PATCH] :art: rename enrichment group to upregulated in x --- src/acore/enrichment_analysis/__init__.py | 2 +- tests/enrichment_analysis/test_enrichment.py | 32 ++++++++++---------- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/src/acore/enrichment_analysis/__init__.py b/src/acore/enrichment_analysis/__init__.py index b3ae590c..1f14fac2 100644 --- a/src/acore/enrichment_analysis/__init__.py +++ b/src/acore/enrichment_analysis/__init__.py @@ -214,7 +214,7 @@ def run_up_down_regulation_enrichment( for rej_col, direction in zip( ("up_pairwise_regulation", "down_pairwise_regulation"), - ("upregulated", "downregulated"), + (f"upregulated in {g1}", f"upregulated in {g2}"), ): _enrichment = run_regulation_enrichment( df, diff --git a/tests/enrichment_analysis/test_enrichment.py b/tests/enrichment_analysis/test_enrichment.py index 90afd7c7..7cbefc98 100644 --- a/tests/enrichment_analysis/test_enrichment.py +++ b/tests/enrichment_analysis/test_enrichment.py @@ -497,22 +497,22 @@ def test_run_up_down_regulation_enrichment_large(): False, ], "direction": [ - "upregulated", - "upregulated", - "upregulated", - "upregulated", - "upregulated", - "upregulated", - "upregulated", - "upregulated", - "upregulated", - "upregulated", - "downregulated", - "downregulated", - "downregulated", - "downregulated", - "downregulated", - "downregulated", + "upregulated in timepoint1", + "upregulated in timepoint1", + "upregulated in timepoint1", + "upregulated in timepoint1", + "upregulated in timepoint1", + "upregulated in timepoint1", + "upregulated in timepoint1", + "upregulated in timepoint1", + "upregulated in timepoint1", + "upregulated in timepoint1", + "upregulated in timepoint2", + "upregulated in timepoint2", + "upregulated in timepoint2", + "upregulated in timepoint2", + "upregulated in timepoint2", + "upregulated in timepoint2", ], "comparison": [ "timepoint1~timepoint2",