Mercurial > repos > proteore > proteore_data_manager
comparison data_manager/resource_building.py @ 27:9a400ce8e4e6 draft
planemo upload commit bb113d19d3a756f70784e6a1433902888686ed96-dirty
| author | proteore |
|---|---|
| date | Fri, 17 May 2019 04:09:47 -0400 |
| parents | bf6940ff60a8 |
| children | 808c8493ed4f |
comparison
equal
deleted
inserted
replaced
| 26:bf6940ff60a8 | 27:9a400ce8e4e6 |
|---|---|
| 497 dico['nodes']=dico_nodes | 497 dico['nodes']=dico_nodes |
| 498 dico['gene_name']=dico_geneid_to_gene_name | 498 dico['gene_name']=dico_geneid_to_gene_name |
| 499 dico['protein_name']=dico_protein_name | 499 dico['protein_name']=dico_protein_name |
| 500 | 500 |
| 501 #writing output | 501 #writing output |
| 502 output_file = species+'_'+interactome+'_'+ time.strftime("%d-%m-%Y") + ".json" | 502 output_file = species+'_'+interactome+'_'+ time.strftime("%Y-%m-%d") + ".json" |
| 503 path = os.path.join(target_directory,output_file) | 503 path = os.path.join(target_directory,output_file) |
| 504 name = species+" ("+species_dict[species]+") "+time.strftime("%d/%m/%Y") | 504 name = species+" ("+species_dict[species]+") "+time.strftime("%d/%m/%Y") |
| 505 release = species+"_"+interactome+"_"+ time.strftime("%d-%m-%Y") | 505 release = species+"_"+interactome+"_"+ time.strftime("%Y-%m-%d") |
| 506 id = str(10000000000 - int(time.strftime("%Y%m%d"))) | 506 id = str(10000000000 - int(time.strftime("%Y%m%d"))) |
| 507 | 507 |
| 508 with open(path, 'w') as handle: | 508 with open(path, 'w') as handle: |
| 509 json.dump(dico, handle, sort_keys=True) | 509 json.dump(dico, handle, sort_keys=True) |
| 510 | 510 |
