comparison data_manager/resource_building.py @ 23:ebdd4961c6c2 draft

planemo upload commit 03015f58ac7e7ba3cc44ba0d8899eacfaaf5a134-dirty
author proteore
date Thu, 09 May 2019 05:28:22 -0400
parents 4296fb613d9d
children 6cbb76823b7b
comparison
equal deleted inserted replaced
22:4296fb613d9d 23:ebdd4961c6c2
242 w.writerows(tab) 242 w.writerows(tab)
243 243
244 name_dict={"Human" : "Homo sapiens", "Mouse" : "Mus musculus", "Rat" : "Rattus norvegicus"} 244 name_dict={"Human" : "Homo sapiens", "Mouse" : "Mus musculus", "Rat" : "Rattus norvegicus"}
245 name = species +" (" + name_dict[species]+" "+time.strftime("%d/%m/%Y")+")" 245 name = species +" (" + name_dict[species]+" "+time.strftime("%d/%m/%Y")+")"
246 release = species+"_id_mapping_"+ time.strftime("%d-%m-%Y") 246 release = species+"_id_mapping_"+ time.strftime("%d-%m-%Y")
247 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 247 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
248 248
249 data_table_entry = dict(id=id, release=release , name = name, species = species, value = path) 249 data_table_entry = dict(id=id, release=release , name = name, species = species, value = path)
250 _add_data_table_entry(data_manager_dict, data_table_entry, "proteore_id_mapping_"+species) 250 _add_data_table_entry(data_manager_dict, data_table_entry, "proteore_id_mapping_"+species)
251 251
252 def download_from_uniprot_ftp(file,target_directory) : 252 def download_from_uniprot_ftp(file,target_directory) :