# HG changeset patch # User proteore # Date 1555511005 14400 # Node ID 3f9ba522bfe82e2ee4d4905043fcc1a41e5797ef # Parent 098693479a9daaf1d4018fbbc920b1b0f7b1a3ce planemo upload commit 272d182247f4fa55a928ec8cdcb83eab50c7f6ef diff -r 098693479a9d -r 3f9ba522bfe8 data_manager/resource_building.py --- a/data_manager/resource_building.py Wed Apr 17 10:01:29 2019 -0400 +++ b/data_manager/resource_building.py Wed Apr 17 10:23:25 2019 -0400 @@ -514,6 +514,8 @@ nextprot_file=[["NextprotID","MW","SeqLength","IsoPoint","Chr","SubcellLocations","Diseases","TMDomains","ProteinExistence"]] + writer.writerows(nextprot_file) + for id in ids : #print (id) query="https://api.nextprot.org/entry/"+id+".json" @@ -560,7 +562,7 @@ nb_domains+=1 # print "nb domains ++" # print (nb_domains) - + nextprot_file.clear() nextprot_file.append([id,mass_mol,str(seq_length),iso_elec_point,chr_loc,all_subcell_locs,all_diseases,str(nb_domains),protein_existence]) writer.writerows(nextprot_file)