# HG changeset patch # User francesco_lapi # Date 1747066238 0 # Node ID 7f37f9626071e0e80a6df4eb8ea9822068fe3cba # Parent 5e8f1ab4242fc8bfa8dd80ddc3bc875977687325 Uploaded diff -r 5e8f1ab4242f -r 7f37f9626071 COBRAxy/marea.py --- 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)