Mercurial > repos > bimib > cobraxy
diff COBRAxy/marea.py @ 322:f62b8625f6f1 draft
Uploaded
author | francesco_lapi |
---|---|
date | Wed, 18 Jun 2025 13:42:05 +0000 |
parents | 4628889348bf |
children |
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