diff gene_family_integrator.xml @ 3:276f0f31ddb0 draft

Uploaded
author greg
date Mon, 30 Oct 2017 09:53:09 -0400
parents a322e5e668a3
children 8ef8997aaa0c
line wrap: on
line diff
--- a/gene_family_integrator.xml	Thu Aug 24 13:32:01 2017 -0400
+++ b/gene_family_integrator.xml	Mon Oct 30 09:53:09 2017 -0400
@@ -1,70 +1,58 @@
-<tool id="plant_tribes_gene_family_integrator" name="GeneFamilyIntegrator" version="@WRAPPER_VERSION@.2">
+<tool id="plant_tribes_gene_family_integrator" name="GeneFamilyIntegrator" version="@WRAPPER_VERSION@.3.0">
     <description>integrates gene models in pre-computed orthologous gene family clusters with classified gene coding sequences</description>
     <macros>
         <import>macros.xml</import>
     </macros>
-    <expand macro="requirements_gene_family_integrator" />
+    <requirements>
+        <requirement type="package" version="1.0.3">plant_tribes_gene_family_integrator</requirement>
+    </requirements>
     <command detect_errors="exit_code"><![CDATA[
-#set input_format = $input_format_cond.input_format
-#set scaffold = $input_format_cond.scaffold
-#set method = $input_format_cond.method
-
-python '$__tool_directory__/gene_family_integrator.py'
+#set input_dir = 'input_dir'
+mkdir $input_dir &&
+#for $i in $input:
+    #set filename = $i.file_name
+    #set name = $i.name
+    ln -s $filename $input_dir/$name &&
+#end for
+GeneFamilyIntegrator
+--orthogroup_fasta '$input_dir'
 --scaffold '$scaffold.fields.path'
 --method $method
-#if str($input_format) == 'ptortho':
-    --orthogroup_faa '$input_format_cond.input_ptortho.extra_files_path'
-    --output '$output_ptortho'
-    --output_dir '$output_ptortho.files_path'
-#else:
-    ## str($input_format) == 'ptorthocs'
-    --orthogroup_faa '$input_format_cond.input_ptorthocs.extra_files_path'
-    #if str($input_format_cond.orthogroup_fna) == 'yes':
-        --orthogroup_fna true
-        --output '$output_ptorthocs'
-        --output_dir '$output_ptorthocs.files_path'
-    #else:
-        --output '$output_ptortho'
-        --output_dir '$output_ptortho.files_path'
-    #end if
-#end if
+&>proc.log
     ]]></command>
     <inputs>
-        <conditional name="input_format_cond">
-            <param name="input_format" type="select" label="Classified orthogroup fasta files">
-                <option value="ptortho">Proteins orthogroup fasta files</option>
-                <option value="ptorthocs">Protein and coding sequences orthogroup fasta files</option>
-            </param>
-            <when value="ptortho">
-                <param name="input_ptortho" format="ptortho" type="data" label="Proteins orthogroup fasta files">
-                    <validator type="empty_extra_files_path" />
-                </param>
-                <expand macro="param_scaffold" />
-                <expand macro="param_method" />
-            </when>
-            <when value="ptorthocs">
-                <param name="input_ptorthocs" format="ptorthocs" type="data" label="Protein and coding sequences orthogroup fasta files">
-                    <validator type="empty_extra_files_path" />
-                </param>
-                <expand macro="param_scaffold" />
-                <expand macro="param_method" />
-                <expand macro="param_orthogroup_fna" />
-            </when>
-        </conditional>
+        <param name="input" format="fasta" type="data_collection" collection_type="list" label="Classified orthogroup fasta files" />
+        <expand macro="param_scaffold" />
+        <expand macro="param_method" />
     </inputs>
     <outputs>
-        <data name="output_ptortho" format="ptortho" label="${tool.name} (integrated gene family clusters) on ${on_string}">
-            <filter>input_format_cond['input_format'] == 'ptortho' or (input_format_cond['input_format'] == 'ptorthocs' and input_format_cond['orthogroup_fna'] == 'no')</filter>
-        </data>
-        <data name="output_ptorthocs" format="ptorthocs" label="${tool.name} (integrated gene family clusters) on ${on_string}">
-            <filter>input_format_cond['input_format'] == 'ptorthocs' and input_format_cond['orthogroup_fna'] == 'yes'</filter>
-        </data>
+        <collection name="output" type="list" label="${tool.name} (integrated gene family clusters) on ${on_string}">
+            <discover_datasets pattern="__name__" directory="integratedGeneFamilies_dir" format="fasta" />
+        </collection>
     </outputs>
     <tests>
-        <!-- Test framework does not currently support inputs whose associated extra_files_path contains files to be analyzed.
         <test>
+            <param name="input">
+                <collection type="list">
+                    <element name="3722.faa" value="3722.faa"/>
+                    <element name="3722.fna" value="3722.fna"/>
+                    <element name="38889.faa" value="38889.faa"/>
+                    <element name="38889.fna" value="38889.fna"/>
+                    <element name="39614.faa" value="39614.faa"/>
+                    <element name="39614.fna" value="39614.fna"/>
+                </collection>
+            </param>
+            <param name="scaffold" value="22Gv1.1"/>
+            <param name="method" value="orthomcl"/>
+            <output_collection name="output" type="list">
+                <element name="3722.faa" file="3722_integrated.faa" ftype="fasta"/>
+                <element name="3722.fna" file="3722_integrated.fna" ftype="fasta"/>
+                <element name="38889.faa" file="38889_integrated.faa" ftype="fasta"/>
+                <element name="38889.fna" file="38889_integrated.fna" ftype="fasta"/>
+                <element name="39614.faa" file="39614_integrated.faa" ftype="fasta"/>
+                <element name="39614.fna" file="39614_integrated.fna" ftype="fasta"/>
+            </output_collection>
         </test>
-        -->
     </tests>
     <help>
 This tool is one of the PlantTribes collection of automated modular analysis pipelines for comparative and evolutionary
@@ -79,11 +67,6 @@
 
  * **Gene family scaffold** - one of the PlantTribes gene family scaffolds installed into Galaxy by the PlantTribes Scaffold Data Manager tool.
  * **Protein clustering method** - gene family scaffold protein clustering method as described in the AssemblyPostProcessor tool.
-
-**Other options**
-
- * **Orthogroups coding sequences** - Select 'Yes' to create corresponding coding sequences orthogroup fasta files for the classified protein sequences.
-
     </help>
     <citations>
         <expand macro="citation1" />