comparison COBRAxy/marea.py @ 144:a9a490ae198d draft

Uploaded
author luca_milaz
date Tue, 05 Nov 2024 21:45:24 +0000
parents 507efdc9d226
children 0f5564819296
comparison
equal deleted inserted replaced
143:507efdc9d226 144:a9a490ae198d
888 if ARGS.using_RAS: 888 if ARGS.using_RAS:
889 ids, class_pat = getClassesAndIdsFromDatasets(ARGS.input_datas, ARGS.input_data, ARGS.input_class, ARGS.names) 889 ids, class_pat = getClassesAndIdsFromDatasets(ARGS.input_datas, ARGS.input_data, ARGS.input_class, ARGS.names)
890 enrichment_results = computeEnrichment(core_map, class_pat, ids) 890 enrichment_results = computeEnrichment(core_map, class_pat, ids)
891 for i, j, comparisonDict, max_z_score in enrichment_results: 891 for i, j, comparisonDict, max_z_score in enrichment_results:
892 map_copy = copy.deepcopy(core_map) 892 map_copy = copy.deepcopy(core_map)
893 temp_thingsInCommon(comparisonDict, map_copy, max_z_score, i, j, fromRAS=True) 893 temp_thingsInCommon(comparisonDict, map_copy, max_z_score, i, j, ras_enrichment=True)
894 createOutputMaps(i, j, map_copy) 894 createOutputMaps(i, j, map_copy)
895 895
896 if ARGS.using_RPS: 896 if ARGS.using_RPS:
897 ids, class_pat = getClassesAndIdsFromDatasets(ARGS.input_datas_rps, ARGS.input_data_rps, ARGS.input_class_rps, ARGS.names_rps) 897 ids, class_pat = getClassesAndIdsFromDatasets(ARGS.input_datas_rps, ARGS.input_data_rps, ARGS.input_class_rps, ARGS.names_rps)
898 enrichment_results = computeEnrichment(core_map, class_pat, ids, fromRAS=False) 898 enrichment_results = computeEnrichment(core_map, class_pat, ids, fromRAS=False)
899 for i, j, comparisonDict, max_z_score in enrichment_results: 899 for i, j, comparisonDict, max_z_score in enrichment_results:
900 map_copy = copy.deepcopy(core_map) 900 map_copy = copy.deepcopy(core_map)
901 temp_thingsInCommon(comparisonDict, map_copy, max_z_score, i, j, fromRAS=False) 901 temp_thingsInCommon(comparisonDict, map_copy, max_z_score, i, j, ras_enrichment=False)
902 createOutputMaps(i, j, map_copy) 902 createOutputMaps(i, j, map_copy)
903 903
904 print('Execution succeeded') 904 print('Execution succeeded')
905 ############################################################################### 905 ###############################################################################
906 if __name__ == "__main__": 906 if __name__ == "__main__":