diff interproscan5/ips5.xml @ 3:74cf3f49f10c draft

Better HTML index.
author mkh
date Tue, 02 Feb 2016 12:27:19 -0500
parents d1d34608dba0
children 6574eb46426d
line wrap: on
line diff
--- a/interproscan5/ips5.xml	Fri Jan 29 18:41:29 2016 -0500
+++ b/interproscan5/ips5.xml	Tue Feb 02 12:27:19 2016 -0500
@@ -1,4 +1,4 @@
-<tool id="ips5" name="Interproscan functional predictions of ORFs" version="5.0.0mkh">
+<tool id="ips5" name="Interproscan functional predictions of ORFs" version="5.0.1mkh">
     <description>Interproscan functional predictions of ORFs.</description>
     <requirements>
         <!--
@@ -27,9 +27,7 @@
             --output-file-base __base__
             2>&#38;1;
 
-        #if 'tsv' in str($output_types):
-            mv __base__.tsv $tsv_file;
-        #end if
+        mv __base__.tsv $tsv_file;
 
         #if 'gff3' in str($output_types):
             mv __base__.gff3 $gff3_file;
@@ -43,7 +41,11 @@
             mkdir -p $html_file.files_path;
             #set temp_archive_file = '__base__.html.tar.gz'
             tar -C $html_file.files_path -xvmzf $temp_archive_file;
-            python \$INTERPROSCAN_SCRIPT_PATH/interproscan5/create_index.py $html_file $html_file.files_path;
+            #if str($seqtype) == 'p' and not str($getorfed):
+                python \$INTERPROSCAN_SCRIPT_PATH/interproscan5/create_html_index.py 0 $tsv_file $html_file $html_file.files_path;
+            #else
+                python \$INTERPROSCAN_SCRIPT_PATH/interproscan5/create_html_index.py 1 $tsv_file $html_file $html_file.files_path;
+            #end if
             rm $temp_archive_file;
         #end if
 
@@ -51,7 +53,11 @@
             mkdir -p $svg_file.files_path;
             #set temp_archive_file = '__base__.svg.tar.gz'
             tar -C $svg_file.files_path -xvmzf $temp_archive_file;
-            python \$INTERPROSCAN_SCRIPT_PATH/interproscan5/create_index.py $svg_file $svg_file.files_path;
+            #if str($seqtype) == 'p' and not str($getorfed):
+                python \$INTERPROSCAN_SCRIPT_PATH/interproscan5/create_html_index.py 0 $tsv_file $svg_file $svg_file.files_path;
+            #else
+                python \$INTERPROSCAN_SCRIPT_PATH/interproscan5/create_html_index.py 1 $tsv_file $svg_file $svg_file.files_path;
+            #end if
             rm $temp_archive_file;
         #end if
 
@@ -66,6 +72,10 @@
             <option value="n">DNA / RNA</option>
         </param>
 
+        <param name="getorfed" type="boolean" label="DNA/RNA was externally processed by getorf?" help="Ignored for DNA inputs."
+               truevalue="getorfed"
+               falsevalue=""/>
+
         <param name="mode" type="boolean" label="Run on cluster?" help="Check to submit job to cluster."
                truevalue="--mode=cluster --clusterrunid=gtdi-ips-analysis"
                falsevalue=""/>
@@ -108,9 +118,8 @@
                label="Provide additional mappings"
                help="Provide mappings from matched member database signatures to the InterPro entries that they are integrated into (--iprlookup)"/>
 
-        <param name="output_types" type="select" display="checkboxes" multiple="true" label="Output formats"
+        <param name="output_types" type="select" display="checkboxes" multiple="true" label="Output formats (in addition to TSV)"
                help="Select the output formats to generate (at least one)">
-            <option value="tsv" selected="true">Raw (TSV)</option>
             <option value="html" selected="true">HTML (Graphical)</option>
             <option value="svg" selected="false">SVG (Scalable Vector Graphics)</option>
             <option value="gff3" selected="true">GFF3</option>
@@ -119,9 +128,7 @@
     </inputs>
 
     <outputs>
-        <data format="tabular" name="tsv_file" label="Interproscan TSV on ${on_string}">
-            <filter>'tsv' in output_types</filter>
-        </data>
+        <data format="tabular" name="tsv_file" label="Interproscan TSV on ${on_string}"/>
         <data format="html" name="html_file" label="Interproscan HTML on ${on_string}">
             <filter>'html' in output_types</filter>
         </data>