# HG changeset patch # User francesco_lapi # Date 1750254125 0 # Node ID f62b8625f6f18a69076247ce21e05dcd5fb6f544 # Parent a9d6e916ea6e4a477f7413872362cb276f05d22c Uploaded diff -r a9d6e916ea6e -r f62b8625f6f1 COBRAxy/marea.py --- 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