comparison data_manager/resource_building.py @ 41:4062484f2cee draft

planemo upload commit 43e2a01d7519104c2c16510e4dbdc023e65c49c7-dirty
author dchristiany
date Tue, 29 Jan 2019 10:54:13 -0500
parents fddf4a3847f4
children 5a37a086c9a8
comparison
equal deleted inserted replaced
40:fddf4a3847f4 41:4062484f2cee
399 output_file = species+'_'+interactome+'_dict_'+ time.strftime("%d-%m-%Y") + ".json" 399 output_file = species+'_'+interactome+'_dict_'+ time.strftime("%d-%m-%Y") + ".json"
400 path = os.path.join(target_directory,output_file) 400 path = os.path.join(target_directory,output_file)
401 name = species+" ("+species_dict[species]+") "+time.strftime("%d/%m/%Y") 401 name = species+" ("+species_dict[species]+") "+time.strftime("%d/%m/%Y")
402 id = species+"_"+interactome+"_"+ time.strftime("%d-%m-%Y") 402 id = species+"_"+interactome+"_"+ time.strftime("%d-%m-%Y")
403 403
404 with open(path, 'w', encoding="utf-8") as handle: 404 with open(path, 'w') as handle:
405 json.dump(dico, handle, sort_keys=True) 405 json.dump(dico, handle, sort_keys=True)
406 406
407 data_table_entry = dict(id=id, name = name, value = species, path = path) 407 data_table_entry = dict(id=id, name = name, value = species, path = path)
408 _add_data_table_entry(data_manager_dict, data_table_entry, "proteore_"+interactome+"_dictionaries") 408 _add_data_table_entry(data_manager_dict, data_table_entry, "proteore_"+interactome+"_dictionaries")
409 409