diff data_manager/resource_building.py @ 21:026177e4ff4b draft

planemo upload commit e05ccbf13c33b97ab441e2f8bc4b5bc746a378df-dirty
author proteore
date Tue, 07 May 2019 10:17:48 -0400
parents 29cf75c83618
children 4296fb613d9d
line wrap: on
line diff
--- a/data_manager/resource_building.py	Tue May 07 08:37:17 2019 -0400
+++ b/data_manager/resource_building.py	Tue May 07 10:17:48 2019 -0400
@@ -242,9 +242,10 @@
 
     name_dict={"Human" : "Homo sapiens", "Mouse" : "Mus musculus", "Rat" : "Rattus norvegicus"}
     name = species +" (" + name_dict[species]+" "+time.strftime("%d/%m/%Y")+")"
-    id = str(10000000000 - int(time.strftime("%d%m%Y")))
+    release = species+"_id_mapping_"+ time.strftime("%d-%m-%Y")
+    id = str(10000000000 - int(time.strftime("%d%m%Y")))    #new ids must be inferior to previous id -> sort by <filter> in xml only in descending order
 
-    data_table_entry = dict(id=id, name = name, species = species, value = path)
+    data_table_entry = dict(id=id, release=release , name = name, species = species, value = path)
     _add_data_table_entry(data_manager_dict, data_table_entry, "proteore_id_mapping_"+species)
 
 def download_from_uniprot_ftp(file,target_directory) :