changeset 24:6cbb76823b7b draft

planemo upload commit 3e8aad84b7fe9218370364b1aef3ea5779475f9f-dirty
author proteore
date Fri, 10 May 2019 04:22:00 -0400
parents ebdd4961c6c2
children 6e36dd9abcb5
files data_manager/resource_building.py data_manager/resource_building.xml data_manager_conf.xml tool-data/proteore_nextprot_ref.loc.sample tool_data_table_conf.xml.sample
diffstat 5 files changed, 10 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/data_manager/resource_building.py	Thu May 09 05:28:22 2019 -0400
+++ b/data_manager/resource_building.py	Fri May 10 04:22:00 2019 -0400
@@ -572,13 +572,15 @@
             for tm in tm_domains :
                 all_tm_domains.add(tm['cvTermName'])
                 nb_domains+=1
-             #   print "nb domains ++"
-              #  print (nb_domains)
+                #print "nb domains ++"
+                #print (nb_domains)
         nextprot_file[:] = [] 
         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)
 
-    data_table_entry = dict(id=release_id, name = name, value = path)
+        id = str(10000000000 - int(time.strftime("%Y%m%d")))
+
+    data_table_entry = dict(id=id, release=release_id, name = name, value = path)
     _add_data_table_entry(data_manager_dict, data_table_entry, "proteore_nextprot_ref")
 
 #######################################################################################################
--- a/data_manager/resource_building.xml	Thu May 09 05:28:22 2019 -0400
+++ b/data_manager/resource_building.xml	Fri May 10 04:22:00 2019 -0400
@@ -1,4 +1,4 @@
-<tool id="data_manager_proteore" name="Get source files for proteore tools" version="2019.05.09" tool_type="manage_data">
+<tool id="data_manager_proteore" name="Get source files for proteore tools" version="2019.05.10" tool_type="manage_data">
 <description>
 to create or update reference files for proteore tools
 </description>
--- a/data_manager_conf.xml	Thu May 09 05:28:22 2019 -0400
+++ b/data_manager_conf.xml	Fri May 10 04:22:00 2019 -0400
@@ -140,6 +140,7 @@
         <data_table name="proteore_nextprot_ref">
             <output>
                 <column name="id" />
+                <column name="release">
                 <column name="name" />
                 <column name="value" output_ref="output" >
                     <move type="file">
--- a/tool-data/proteore_nextprot_ref.loc.sample	Thu May 09 05:28:22 2019 -0400
+++ b/tool-data/proteore_nextprot_ref.loc.sample	Fri May 10 04:22:00 2019 -0400
@@ -1,2 +1,2 @@
-#<id>	<name>	<value>
-#nextprot_ref_09-03-2019	neXtProt release 09-03-2019	tool-data/nextprot_ref_09-03-2019.tsv
+#<id>	<release>	<name>	<value>
+#9979809691	nextprot_ref_09-03-2019	neXtProt release 09-03-2019	tool-data/nextprot_ref_09-03-2019.tsv
--- a/tool_data_table_conf.xml.sample	Thu May 09 05:28:22 2019 -0400
+++ b/tool_data_table_conf.xml.sample	Fri May 10 04:22:00 2019 -0400
@@ -37,7 +37,7 @@
     <file path="tool-data/proteore_humap_dictionaries.loc" />
   </table>
   <table name='proteore_nextprot_ref' comment_char="#">
-    <columns>id, name, value</columns>
+    <columns>id, release, name, value</columns>
     <file path="tool-data/proteore_nextprot_ref.loc"/>
   </table>
 </tables>