# HG changeset patch # User francesco_lapi # Date 1747065758 0 # Node ID 5e8f1ab4242fc8bfa8dd80ddc3bc875977687325 # Parent 1bf66a30ab239717b8700f51433db6ad1cf65143 Uploaded diff -r 1bf66a30ab23 -r 5e8f1ab4242f COBRAxy/marea.py --- a/COBRAxy/marea.py Mon May 12 15:36:25 2025 +0000 +++ b/COBRAxy/marea.py Mon May 12 16:02:38 2025 +0000 @@ -686,7 +686,10 @@ def temp_thingsInCommon(tmp :Dict[str, List[Union[float, FoldChange]]], core_map :ET.ElementTree, max_z_score :float, dataset1Name :str, dataset2Name = "rest", ras_enrichment = True) -> None: # this function compiles the things always in common between comparison modes after enrichment. # TODO: organize, name better. - writeTabularResult(tmp, ras_enrichment, buildOutputPath(dataset1Name, dataset2Name, details = "Tabular Result", ext = utils.FileFormat.TSV)) + suffix = "RAS" if ras_enrichment else "RPS" + details = f"Tabular Result ({suffix})" + + writeTabularResult(tmp, ras_enrichment, buildOutputPath(dataset1Name, dataset2Name, details = details, ext = utils.FileFormat.TSV)) if ras_enrichment: fix_map(tmp, core_map, ARGS.pValue, ARGS.fChange, max_z_score)