comparison data_manager/resource_building.py @ 24:6cbb76823b7b draft

planemo upload commit 3e8aad84b7fe9218370364b1aef3ea5779475f9f-dirty
author proteore
date Fri, 10 May 2019 04:22:00 -0400
parents ebdd4961c6c2
children bf6940ff60a8
comparison
equal deleted inserted replaced
23:ebdd4961c6c2 24:6cbb76823b7b
570 tm_domains = data['entry']['annotationsByCategory']["transmembrane-region"] 570 tm_domains = data['entry']['annotationsByCategory']["transmembrane-region"]
571 all_tm_domains = set() 571 all_tm_domains = set()
572 for tm in tm_domains : 572 for tm in tm_domains :
573 all_tm_domains.add(tm['cvTermName']) 573 all_tm_domains.add(tm['cvTermName'])
574 nb_domains+=1 574 nb_domains+=1
575 # print "nb domains ++" 575 #print "nb domains ++"
576 # print (nb_domains) 576 #print (nb_domains)
577 nextprot_file[:] = [] 577 nextprot_file[:] = []
578 nextprot_file.append([id,mass_mol,str(seq_length),iso_elec_point,chr_loc,all_subcell_locs,all_diseases,str(nb_domains),protein_existence]) 578 nextprot_file.append([id,mass_mol,str(seq_length),iso_elec_point,chr_loc,all_subcell_locs,all_diseases,str(nb_domains),protein_existence])
579 writer.writerows(nextprot_file) 579 writer.writerows(nextprot_file)
580 580
581 data_table_entry = dict(id=release_id, name = name, value = path) 581 id = str(10000000000 - int(time.strftime("%Y%m%d")))
582
583 data_table_entry = dict(id=id, release=release_id, name = name, value = path)
582 _add_data_table_entry(data_manager_dict, data_table_entry, "proteore_nextprot_ref") 584 _add_data_table_entry(data_manager_dict, data_table_entry, "proteore_nextprot_ref")
583 585
584 ####################################################################################################### 586 #######################################################################################################
585 # Main function 587 # Main function
586 ####################################################################################################### 588 #######################################################################################################