diff biobox_add_taxid.xml @ 2:450a61fc097f draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/amber/ commit 956c476d4eeed0334582438d715da88e170212c6
author iuc
date Sun, 08 Sep 2024 14:08:45 +0000
parents 1e10251b9615
children
line wrap: on
line diff
--- a/biobox_add_taxid.xml	Fri Aug 30 14:39:04 2024 +0000
+++ b/biobox_add_taxid.xml	Sun Sep 08 14:08:45 2024 +0000
@@ -2,7 +2,7 @@
     <description>Add taxid output from BAT or GTDB to biobox binning data</description>
     <macros>
         <import>macros.xml</import>
-        <token name="@SCRIPT_VERSION@">0.4</token>
+        <token name="@SCRIPT_VERSION@">0.6</token>
     </macros>
     <requirements>
         <requirement type="package" version="@SCRIPT_VERSION@">biobox_add_taxid</requirement>
@@ -10,7 +10,7 @@
     <command detect_errors="exit_code">
     <![CDATA[
 
-        mkdir -p input &&
+        mkdir -p input taxonkit gtdb_to_taxdump &&
 
         ln -s '${biobox_file}' '$biobox_file.element_identifier' &&
 
@@ -18,13 +18,22 @@
             ln -s '$f' 'input/${i}.tsv' &&
         #end for
 
+        #if $tool_type.is_select == 'GTDB':
+            #for $i, $f in enumerate($gtdb_to_taxdump):
+                ln -s '$f' 'gtdb_to_taxdump/gtdb_to_taxdump_${i}.tsv' &&
+            #end for
+            #for $i, $f in enumerate($taxonkit):
+                ln -s '$f' 'taxonkit/taxonkit_${i}.tsv' &&
+            #end for
+        #end if
+
         biobox_add_taxid.py
         '$biobox_file.element_identifier'
         '$tool_type.is_select'
         'input'
         #if $tool_type.is_select == 'GTDB':
-            -g '$gtdb_to_taxdump'
-            -t '$taxonkit'
+            -g 'gtdb_to_taxdump'
+            -t 'taxonkit'
             -c $column
         #end if
         &&
@@ -45,8 +54,8 @@
                 <option value="GTDB">GTDB</option>
             </param>
             <when value="GTDB">
-                <param argument="--gtdb_to_taxdump" type="data" format="tabular" label="Input the output from gtdb_to_taxdump here" help="Use the output from gtdb_to_taxdump here since we need the mapped names from GTDB to NCBI to get the arcoding taxids from NCBI"/>
-                <param argument="--taxonkit" type="data" format="tabular" label="Input the output from Taxonkit here" help="Use the output from Taxonkit here since the need the mapped NCBI names to the arcording taxids"/>
+                <param argument="--gtdb_to_taxdump" type="data" multiple="true" format="tabular" label="Input the output from gtdb_to_taxdump here" help="Use the output from gtdb_to_taxdump here since we need the mapped names from GTDB to NCBI to get the arcoding taxids from NCBI"/>
+                <param argument="--taxonkit" type="data" format="tabular" multiple="true" label="Input the output from Taxonkit here" help="Use the output from Taxonkit here since the need the mapped NCBI names to the arcording taxids"/>
                 <param argument="--column" type="data_column" data_ref="taxonkit" label="Input the colum with the NCBI names"/>
                 <param name="input" type="data" multiple="true" format="tabular" label="Input the GTDB-Tk summary file(s) here"
                     help="Use the GTDB-Tk file(s) which are coresponding with the binning file!"/>
@@ -74,7 +83,7 @@
             <conditional name="tool_type">
                 <param name="is_select" value="GTDB"/>
                 <param name="gtdb_to_taxdump" ftype="tabular" value="test_gtdb_to_taxdump_file.tsv"/>
-                <param name="taxonkit" ftype="tabular" value="test_taxonkit_file.tsv"/>
+                <param name="taxonkit" ftype="tabular" value="test_taxonkit_file_1.tsv,test_taxonkit_file_2.tsv"/>
                 <param name="column" value="1"/>
                 <param name="input" ftype="tabular" value="test_gtdb_file.tsv"/>
             </conditional>