Mercurial > repos > dchristiany > data_manager_proteore
comparison data_manager/resource_building.py @ 23:b2584295ef44 draft
planemo upload commit e2e4ac8c2c4dc5675d4c415ff192a925ca5e6b98-dirty
author | dchristiany |
---|---|
date | Thu, 17 Jan 2019 09:27:29 -0500 |
parents | 778cc97cb115 |
children | 1b2a6f3de0fc |
comparison
equal
deleted
inserted
replaced
22:778cc97cb115 | 23:b2584295ef44 |
---|---|
374 | 374 |
375 #writing output | 375 #writing output |
376 output_file = species+'_'+interactome+'_dict_'+ time.strftime("%d-%m-%Y") + ".json" | 376 output_file = species+'_'+interactome+'_dict_'+ time.strftime("%d-%m-%Y") + ".json" |
377 path = os.path.join(target_directory,output_file) | 377 path = os.path.join(target_directory,output_file) |
378 name = species+" ("+species_dict[species]+") "+time.strftime("%d/%m/%Y") | 378 name = species+" ("+species_dict[species]+") "+time.strftime("%d/%m/%Y") |
379 id = interactome+"_"+species+ time.strftime("%d-%m-%Y") | 379 id = species+"_interactome_"+ time.strftime("%d-%m-%Y") |
380 | 380 |
381 with open(path, 'w') as handle: | 381 with open(path, 'w') as handle: |
382 json.dump(dico, handle, sort_keys=True) | 382 json.dump(dico, handle, sort_keys=True) |
383 | 383 |
384 data_table_entry = dict(id=id, name = name, value = species, path = path) | 384 data_table_entry = dict(id=id, name = name, value = species, path = path) |