Mercurial > repos > dchristiany > data_manager_proteore
comparison data_manager/resource_building.py @ 26:1b2a6f3de0fc draft
planemo upload commit e694c4b0df30a4286ba09721696e8ec3af25fd97-dirty
| author | dchristiany |
|---|---|
| date | Thu, 24 Jan 2019 11:37:18 -0500 |
| parents | b2584295ef44 |
| children | 592c59530c32 |
comparison
equal
deleted
inserted
replaced
| 25:0405d636d8e1 | 26:1b2a6f3de0fc |
|---|---|
| 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 = species+"_interactome_"+ time.strftime("%d-%m-%Y") | 379 id = interactome+"_"+species+ 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) |
