changeset 7:a7add03a44fd draft

Uploaded v0.0.6, checks return code for error handling
author peterjc
date Wed, 17 Apr 2013 11:46:03 -0400
parents 8a0771c5e236
children a8ef75aab1f9
files tools/ncbi_blast_plus/blastxml_to_top_descr.txt tools/ncbi_blast_plus/blastxml_to_top_descr.xml
diffstat 2 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/tools/ncbi_blast_plus/blastxml_to_top_descr.txt	Wed Apr 17 10:53:58 2013 -0400
+++ b/tools/ncbi_blast_plus/blastxml_to_top_descr.txt	Wed Apr 17 11:46:03 2013 -0400
@@ -20,7 +20,6 @@
 'blast_datatypes' dependency.
 
 
-
 Manual Installation
 ===================
 
@@ -53,6 +52,7 @@
 v0.0.3 - Include the test files required to run the unit tests
 v0.0.4 - Quote filenames in case they contain spaces (internal change)
 v0.0.5 - Include number of queries with BLAST matches in stdout (peek text)
+v0.0.6 - Check for errors via the script's return code (internal change)
 
 
 Developers
--- a/tools/ncbi_blast_plus/blastxml_to_top_descr.xml	Wed Apr 17 10:53:58 2013 -0400
+++ b/tools/ncbi_blast_plus/blastxml_to_top_descr.xml	Wed Apr 17 11:46:03 2013 -0400
@@ -1,9 +1,14 @@
-<tool id="blastxml_to_top_descr" name="BLAST top hit descriptions" version="0.0.5">
+<tool id="blastxml_to_top_descr" name="BLAST top hit descriptions" version="0.0.6">
     <description>Make a table from BLAST XML</description>
     <version_command interpreter="python">blastxml_to_top_descr.py --version</version_command>
     <command interpreter="python">
       blastxml_to_top_descr.py "${blastxml_file}" "${tabular_file}" ${topN}
     </command>
+    <stdio>
+        <!-- Assume anything other than zero is an error -->
+        <exit_code range="1:" />
+        <exit_code range=":-1" />
+    </stdio>
     <inputs>
         <param name="blastxml_file" type="data" format="blastxml" label="BLAST results as XML"/> 
 	<param name="topN" type="integer" min="1" max="100" optional="false" label="Number of descriptions" value="3"/>