# HG changeset patch # User proteore # Date 1555415403 14400 # Node ID ac2cd728c40e71ff33f99c3a5067191453b3d37c # Parent e6b8f0e5fe1608d291ecda89ceb3ca049c56e351 planemo upload commit 39a9e2bf22b07beeca3fb77d86cda25820eb309c diff -r e6b8f0e5fe16 -r ac2cd728c40e data_manager/resource_building.py --- a/data_manager/resource_building.py Wed Mar 13 06:09:49 2019 -0400 +++ b/data_manager/resource_building.py Tue Apr 16 07:50:03 2019 -0400 @@ -539,19 +539,18 @@ else : all_diseases="NA" - #get all tm domain + #get all tm domain nb_domains = 0 - if "domain" in data['entry']['annotationsByCategory'].keys(): - tm_domains = data['entry']['annotationsByCategory']["domain"] - for tm_domain in tm_domains : - if "properties" in tm_domain.keys() and tm_domain['properties']!=[]: - domains = tm_domains["properties"] - for domain in domains : - if domain["name"]=="region structure" and domain["value"]=="Helical" : - nb_domains+=1 + if "transmembrane-region" in data['entry']['annotationsByCategory'].keys(): + tm_domains = data['entry']['annotationsByCategory']["transmembrane-region"] + all_tm_domains = set() + for tm in tm_domains : + all_tm_domains.add(tm['cvTermName']) + nb_domains+=1 + print "nb domains ++" + print (nb_domains) - - nextprot_file.append([id,mass_mol,str(seq_length),iso_elec_point,chr_loc,all_subcell_locs,all_diseases,str(nb_domains),protein_existence]) + nextprot_file.append([id,mass_mol,str(seq_length),iso_elec_point,chr_loc,all_subcell_locs,all_diseases,str(nb_domains),protein_existence]) output_file = 'nextprot_ref_'+ time.strftime("%d-%m-%Y") + ".tsv" path = os.path.join(target_directory,output_file) diff -r e6b8f0e5fe16 -r ac2cd728c40e data_manager/resource_building.xml --- a/data_manager/resource_building.xml Wed Mar 13 06:09:49 2019 -0400 +++ b/data_manager/resource_building.xml Tue Apr 16 07:50:03 2019 -0400 @@ -1,4 +1,4 @@ - + to create or update reference files for proteore tools