comparison COBRAxy/marea.py @ 319:3730c835f475 draft

Uploaded
author francesco_lapi
date Mon, 09 Jun 2025 12:47:39 +0000
parents bfe98b0f04fc
children 4628889348bf
comparison
equal deleted inserted replaced
318:bfe98b0f04fc 319:3730c835f475
688 # this function compiles the things always in common between comparison modes after enrichment. 688 # this function compiles the things always in common between comparison modes after enrichment.
689 # TODO: organize, name better. 689 # TODO: organize, name better.
690 suffix = "RAS" if ras_enrichment else "RPS" 690 suffix = "RAS" if ras_enrichment else "RPS"
691 writeToCsv( 691 writeToCsv(
692 [ [reactId] + values for reactId, values in tmp.items() ], 692 [ [reactId] + values for reactId, values in tmp.items() ],
693 ["ids", "P_Value", "fold change", "average_1", "average_2"], 693 ["ids", "P_Value", "fold change", "z-score", "average_1", "average_2"],
694 buildOutputPath(dataset1Name, dataset2Name, details = f"Tabular Result ({suffix})", ext = utils.FileFormat.TSV)) 694 buildOutputPath(dataset1Name, dataset2Name, details = f"Tabular Result ({suffix})", ext = utils.FileFormat.TSV))
695 695
696 if ras_enrichment: 696 if ras_enrichment:
697 fix_map(tmp, core_map, ARGS.pValue, ARGS.fChange, max_z_score) 697 fix_map(tmp, core_map, ARGS.pValue, ARGS.fChange, max_z_score)
698 return 698 return