Mercurial > repos > proteore > proteore_data_manager
comparison data_manager/resource_building.py @ 44:7ebbf851598e draft
"planemo upload commit ba867b8fa3352695fbda1ae764407f363ee79a50-dirty"
| author | proteore |
|---|---|
| date | Wed, 08 Jan 2020 14:50:19 +0000 |
| parents | 414d7d1cfbfd |
| children | 488e015576bc |
comparison
equal
deleted
inserted
replaced
| 43:414d7d1cfbfd | 44:7ebbf851598e |
|---|---|
| 253 with open(path,"w") as out : | 253 with open(path,"w") as out : |
| 254 w = csv.writer(out,delimiter='\t') | 254 w = csv.writer(out,delimiter='\t') |
| 255 w.writerows(tab) | 255 w.writerows(tab) |
| 256 | 256 |
| 257 subprocess.call(['tar', '-czvf', archive+".tar.gz", archive]) | 257 subprocess.call(['tar', '-czvf', archive+".tar.gz", archive]) |
| 258 os.rmdir(archive) | 258 shutil.rmtree(archive, ignore_errors=True) |
| 259 | 259 |
| 260 name_dict={"Human" : "Homo sapiens", "Mouse" : "Mus musculus", "Rat" : "Rattus norvegicus"} | 260 name_dict={"Human" : "Homo sapiens", "Mouse" : "Mus musculus", "Rat" : "Rattus norvegicus"} |
| 261 name = species +" (" + name_dict[species]+" "+time.strftime("%d/%m/%Y")+")" | 261 name = species +" (" + name_dict[species]+" "+time.strftime("%d/%m/%Y")+")" |
| 262 release = species+"_id_mapping_"+ time.strftime("%d-%m-%Y") | 262 release = species+"_id_mapping_"+ time.strftime("%d-%m-%Y") |
| 263 id = str(10000000000 - int(time.strftime("%Y%m%d"))) #new ids must be inferior to previous id -> sort by <filter> in xml only in descending order | 263 id = str(10000000000 - int(time.strftime("%Y%m%d"))) #new ids must be inferior to previous id -> sort by <filter> in xml only in descending order |
