comparison data_manager/resource_building.py @ 43:414d7d1cfbfd draft

"planemo upload commit ba867b8fa3352695fbda1ae764407f363ee79a50-dirty"
author proteore
date Wed, 08 Jan 2020 14:30:58 +0000
parents f6a6a70712c4
children 7ebbf851598e
comparison
equal deleted inserted replaced
42:f6a6a70712c4 43:414d7d1cfbfd
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.remove(archive) 258 os.rmdir(archive)
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