changeset 279:7f37f9626071 draft default tip

Uploaded
author francesco_lapi
date Mon, 12 May 2025 16:10:38 +0000
parents 5e8f1ab4242f
children
files COBRAxy/marea.py
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/COBRAxy/marea.py	Mon May 12 16:02:38 2025 +0000
+++ b/COBRAxy/marea.py	Mon May 12 16:10:38 2025 +0000
@@ -678,8 +678,7 @@
 
 OldEnrichedScores = Dict[str, List[Union[float, FoldChange]]] #TODO: try to use Tuple whenever possible
 def writeTabularResult(enrichedScores : OldEnrichedScores, ras_enrichment: bool, outPath :utils.FilePath) -> None:
-    fieldNames = ["ids", "P_Value", "fold change"]
-    if not ras_enrichment: fieldNames.extend(["average_1", "average_2"])
+    fieldNames = ["ids", "P_Value", "fold change", "average_1", "average_2"]
 
     writeToCsv([ [reactId] + values for reactId, values in enrichedScores.items() ], fieldNames, outPath)