diff metaphlan2.xml @ 2:5b7ee956d89b draft

"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/metaphlan2/ commit 40926b77d62858edbca5b04f73bb0f2aad4da31e"
author iuc
date Fri, 19 Mar 2021 09:36:09 +0000
parents f279fc0892fc
children f23f49426a3c
line wrap: on
line diff
--- a/metaphlan2.xml	Wed Jul 05 07:40:16 2017 -0400
+++ b/metaphlan2.xml	Fri Mar 19 09:36:09 2021 +0000
@@ -1,4 +1,4 @@
-<tool id="metaphlan2" name="MetaPhlAn2" version="@WRAPPER_VERSION@.0">
+<tool id="metaphlan2" name="MetaPhlAn2" version="@WRAPPER_VERSION@.1">
 
     <description>to profile the composition of microbial communities</description>
 
@@ -27,10 +27,16 @@
     &&
 #end if
 
+#if $input_file.datatype.file_ext.startswith("fastq")
+    #set ext='fastq'
+#else
+    #set ext=$input_file.datatype.file_ext
+#end if
+
 metaphlan2.py
     '$input_file'
     -o '$output_file'
-    --input_type '${input_file.datatype.file_ext}'
+    --input_type $ext
     --bowtie2_exe `which bowtie2`
 
     #if $db.db_selector == "cached"