changeset 14:3f9ba522bfe8 draft

planemo upload commit 272d182247f4fa55a928ec8cdcb83eab50c7f6ef
author proteore
date Wed, 17 Apr 2019 10:23:25 -0400
parents 098693479a9d
children 5f39d3ef5fe3
files data_manager/resource_building.py
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)