Mercurial > repos > bimib > cobraxy
comparison COBRAxy/marea.py @ 322:f62b8625f6f1 draft
Uploaded
| author | francesco_lapi |
|---|---|
| date | Wed, 18 Jun 2025 13:42:05 +0000 |
| parents | 4628889348bf |
| children | a6e45049c1b9 |
comparison
equal
deleted
inserted
replaced
| 321:a9d6e916ea6e | 322:f62b8625f6f1 |
|---|---|
| 919 controlItems = class_pat.get(ARGS.control) | 919 controlItems = class_pat.get(ARGS.control) |
| 920 for otherDataset in class_pat.keys(): | 920 for otherDataset in class_pat.keys(): |
| 921 if otherDataset == ARGS.control: | 921 if otherDataset == ARGS.control: |
| 922 continue | 922 continue |
| 923 | 923 |
| 924 comparisonDict, max_z_score, netRPS = compareDatasetPair(controlItems, class_pat.get(otherDataset), ids) | 924 #comparisonDict, max_z_score, netRPS = compareDatasetPair(controlItems, class_pat.get(otherDataset), ids) |
| 925 enrichment_results.append((ARGS.control, otherDataset, comparisonDict, max_z_score)) | 925 comparisonDict, max_z_score, netRPS = compareDatasetPair(class_pat.get(otherDataset),controlItems, ids) |
| 926 netRPSResults[ARGS.control] = { reactId : net[0] for reactId, net in netRPS.items() } | 926 #enrichment_results.append((ARGS.control, otherDataset, comparisonDict, max_z_score)) |
| 927 netRPSResults[otherDataset] = { reactId : net[1] for reactId, net in netRPS.items() } | 927 enrichment_results.append(( otherDataset,ARGS.control, comparisonDict, max_z_score)) |
| 928 netRPSResults[otherDataset] = { reactId : net[0] for reactId, net in netRPS.items() } | |
| 929 netRPSResults[ARGS.control] = { reactId : net[1] for reactId, net in netRPS.items() } | |
| 928 | 930 |
| 929 return enrichment_results, netRPSResults | 931 return enrichment_results, netRPSResults |
| 930 | 932 |
| 931 def createOutputMaps(dataset1Name: str, dataset2Name: str, core_map: ET.ElementTree) -> None: | 933 def createOutputMaps(dataset1Name: str, dataset2Name: str, core_map: ET.ElementTree) -> None: |
| 932 svgFilePath = buildOutputPath(dataset1Name, dataset2Name, details="SVG Map", ext=utils.FileFormat.SVG) | 934 svgFilePath = buildOutputPath(dataset1Name, dataset2Name, details="SVG Map", ext=utils.FileFormat.SVG) |
