Mercurial > repos > dchristiany > data_manager_proteore
comparison data_manager/resource_building.py @ 27:592c59530c32 draft
planemo upload commit e694c4b0df30a4286ba09721696e8ec3af25fd97-dirty
author | dchristiany |
---|---|
date | Thu, 24 Jan 2019 12:06:21 -0500 |
parents | 1b2a6f3de0fc |
children | d235909789ca |
comparison
equal
deleted
inserted
replaced
26:1b2a6f3de0fc | 27:592c59530c32 |
---|---|
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) |