changeset 322:f62b8625f6f1 draft

Uploaded
author francesco_lapi
date Wed, 18 Jun 2025 13:42:05 +0000
parents a9d6e916ea6e
children 3f8336f8072d
files COBRAxy/marea.py
diffstat 1 files changed, 6 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/COBRAxy/marea.py	Fri Jun 13 15:08:52 2025 +0000
+++ b/COBRAxy/marea.py	Wed Jun 18 13:42:05 2025 +0000
@@ -921,10 +921,12 @@
             if otherDataset == ARGS.control:
                 continue
             
-            comparisonDict, max_z_score, netRPS = compareDatasetPair(controlItems, class_pat.get(otherDataset), ids)
-            enrichment_results.append((ARGS.control, otherDataset, comparisonDict, max_z_score))
-            netRPSResults[ARGS.control] = { reactId : net[0] for reactId, net in netRPS.items() }
-            netRPSResults[otherDataset] = { reactId : net[1] for reactId, net in netRPS.items() }
+            #comparisonDict, max_z_score, netRPS = compareDatasetPair(controlItems, class_pat.get(otherDataset), ids)
+            comparisonDict, max_z_score, netRPS = compareDatasetPair(class_pat.get(otherDataset),controlItems, ids)
+            #enrichment_results.append((ARGS.control, otherDataset, comparisonDict, max_z_score))
+            enrichment_results.append(( otherDataset,ARGS.control, comparisonDict, max_z_score))
+            netRPSResults[otherDataset] = { reactId : net[0] for reactId, net in netRPS.items() }
+            netRPSResults[ARGS.control] = { reactId : net[1] for reactId, net in netRPS.items() }
     
     return enrichment_results, netRPSResults