# HG changeset patch
# User iuc
# Date 1722237261 0
# Node ID b6897977d13e0e8f2401092d7d392c22f1bbea97
# Parent  289b3807e80c81b1f29c24720f895cc62b91358f
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/metaphlan/ commit 3c1a0c4a94f78437c6df74b5348826e33e734a05
diff -r 289b3807e80c -r b6897977d13e macros.xml
--- a/macros.xml	Tue Apr 30 09:09:32 2024 +0000
+++ b/macros.xml	Mon Jul 29 07:14:21 2024 +0000
@@ -1,7 +1,7 @@
 
 
-    4.0.6
-    3
+    4.1.1
+    0
     22.05
      
@@ -23,4 +23,9 @@
             10.7554/eLife.65088
         
     
+
+    
+        
+        
+    
 
diff -r 289b3807e80c -r b6897977d13e metaphlan.xml
--- a/metaphlan.xml	Tue Apr 30 09:09:32 2024 +0000
+++ b/metaphlan.xml	Mon Jul 29 07:14:21 2024 +0000
@@ -38,14 +38,12 @@
         #set full_ext=$inputs.in.raw_in.in.datatype.file_ext
         #if $full_ext.endswith("gz")
             #set $file_path="in"     
-zcat '$inputs.in.raw_in.in' > '$file_path'
-&&
+            zcat '$inputs.in.raw_in.in' > '$file_path' &&
         #else if $full_ext.endswith("bz2")
             #set $file_path="in"
-bzcat '$inputs.in.raw_in.in' > '$file_path'
-&&
+            bzcat '$inputs.in.raw_in.in' > '$file_path' &&
         #else
-            #set $file_path=$inputs.in.raw_in.in
+            #set $file_path="'%s'" % $inputs.in.raw_in.in
         #end if
     #else if $inputs.in.raw_in.selector == "multiple"
         #set full_ext=$inputs.in.raw_in.in[0].datatype.file_ext
@@ -53,45 +51,54 @@
         #set sep=""
         #for $i, $f in enumerate($inputs.in.raw_in.in)
             #if $f.datatype.file_ext != $full_ext
-echo "Different datatypes for input files"
-&&
-exit 1
+            echo "Different datatypes for input files" &&
+            exit 1
             #end if          
             #if $full_ext.endswith("gz")
                 #set fp="input_%s" % ($i)
-zcat '$f' > '$fp'
-&&
+                zcat '$f' > '$fp' &&
             #else if $full_ext.endswith("bz2")
                 #set fp="input_%s" % ($i)
-bzcat '$f' > '$fp'
-&&
+                bzcat '$f' > '$fp' &&
             #else
                 #set fp=$f
             #end if
-            #set $file_path+="%s%s" % ($sep, $fp)
+            #set $file_path+="'%s%s'" % ($sep, $fp)
             #set $sep=","
         #end for
     #else if $inputs.in.raw_in.selector == "paired"
         #set full_ext=$inputs.in.raw_in.in_f.datatype.file_ext
         #if $full_ext != $inputs.in.raw_in.in_r.datatype.file_ext
-echo "Different datatypes for input paired-end files"
-&&
-exit 1
+            echo "Different datatypes for input paired-end files" &&
+            exit 1
         #end if
         #if $full_ext.endswith("gz")
-zcat '$inputs.in.raw_in.in_f' > 'in_f'
-&&
-zcat '$inputs.in.raw_in.in_r' > 'in_r'
-&&
-            #set file_path="in_f,in_r"
+            zcat '$inputs.in.raw_in.in_f' > 'in_f' &&
+            zcat '$inputs.in.raw_in.in_r' > 'in_r' &&
+            #set file_path="-1 in_f -2 in_r"
         #else if $full_ext.endswith("bz2")
-bzcat '$inputs.in.raw_in.in_f' > 'in_f'
-&&
-bzcat '$inputs.in.raw_in.in_r' > 'in_r'
-&&
-            #set file_path="in_f,in_r"
+            bzcat '$inputs.in.raw_in.in_f' > 'in_f' && 
+            bzcat '$inputs.in.raw_in.in_r' > 'in_r' &&
+            #set file_path="-1 in_f -2 in_r"
         #else
-            #set file_path="%s,%s" % ($inputs.in.raw_in.in_f,$inputs.in.raw_in.in_r)
+            #set file_path="-1 '%s' -2 '%s'" % ($inputs.in.raw_in.in_f,$inputs.in.raw_in.in_r)
+        #end if
+    #else if $inputs.in.raw_in.selector == "paired_collection"
+        #set full_ext=$inputs.in.raw_in.in.forward.ext
+        #if $full_ext != $inputs.in.raw_in.in.reverse.ext
+            echo "Different datatypes for input paired-end files" &&
+            exit 1
+        #end if
+        #if $full_ext.endswith("gz")
+            zcat '$inputs.in.raw_in.in.forward' > 'in_f' &&
+            zcat '$inputs.in.raw_in.in.reverse' > 'in_r' &&
+            #set file_path="-1 in_f -2 in_r"
+        #else if $full_ext.endswith("bz2")
+            bzcat '$inputs.in.raw_in.in.forward' > 'in_f' && 
+            bzcat '$inputs.in.raw_in.in.reverse' > 'in_r' &&
+            #set file_path="-1 in_f -2 in_r"
+        #else
+            #set file_path="-1 '%s' -2 '%s'" % ($inputs.in.raw_in.in_f,$inputs.in.raw_in.in_r)
         #end if
     #end if
 
@@ -105,20 +112,18 @@
 #end if
 
 #if $inputs.db.db_selector == "history"
-mkdir 'ref_db'
-&&
-bowtie2-build --large-index '$inputs.db.bowtie2db' 'ref_db/custom_db'
-&&
-python '$__tool_directory__/customizemetadata.py'
+mkdir 'ref_db' &&
+bowtie2-build --large-index '$inputs.db.bowtie2db' 'ref_db/custom_db' &&
+python
+    '$__tool_directory__/customizemetadata.py'
     transform_json_to_pkl
     --json '$inputs.db.mpa_pkl'
-    --pkl 'ref_db/custom_db.pkl'
-&&
+    --pkl 'ref_db/custom_db.pkl' &&
 #end if
 
 metaphlan
 #if $inputs.in.selector == "raw"
-    '$file_path'
+    $file_path
     --input_type '$ext'
     --read_min_len $inputs.in.read_min_len
     --bt2_ps '$inputs.in.mapping.bt2_ps'
@@ -186,6 +191,28 @@
     -s '$sam_output_file'
     --biom '$biom_output_file'
     --nproc \${GALAXY_SLOTS:-4}
+#if $viral_analysis.profile_vsc
+    $viral_analysis.profile_vsc
+    --vsc_out '$vcs_breath_coverage'
+    --vsc_breadth $viral_analysis.vsc_breadth
+#end if
+
+#if $subsample.selector != "no"
+    #if $subsample.selector == "single"
+        --subsampling $subsample.subsampling
+    #else
+        --subsampling_paired $subsample.subsampling_paired
+    #end if
+    $subsample.mapping_subsampling
+    #if $subsample.subsampling_seed
+        --subsampling_seed $subsample.subsampling_seed
+    #end if
+    --subsampling_output subsampled.out
+#end if
+
+#if $test == "false"
+    --offline
+#end if
 
 #if $inputs.in.selector == "raw"
 &&
@@ -227,6 +254,7 @@
                         
                             
                             
+                            
                             
                         
                         
@@ -235,6 +263,9 @@
                         
                             
                         
+                        
+                            
+                        
                         
                             
                             
@@ -338,6 +369,32 @@
                 label="Deactivate the procedure of disambiguating the quasi-markers based on the marker abundance pattern found in the sample?"
                 help="It is generally recommended to keep the disambiguation procedure in order to minimize false positives"/>
         
+        
+            
+                
+                
+                
+            
+            
+            
+                
+                
+            
+            
+                
+                
+            
+        
+        
+            
+                
+                
+            
+            
+                
+            
+            
+        
         
             
             
@@ -351,6 +408,8 @@
                 label="Scale relative abundances to the number of reads mapping to known clades in order to estimate unknowness?"/>
             
         
+        
+        
     
     
         
@@ -368,14 +427,25 @@
         
             out['krona_output']
         
+        
+            viral_analysis['profile_vsc']
+        
+        
+            subsample['selector'] == 'single'
+        
+        
+            
+            
+            subsample['selector'] == 'paired'
+        
     
     
+        
         
             
                 
                 
-                    
                     
                     
                 
@@ -516,13 +585,16 @@
                     
                 
             
+            
+                
+            
         
+        
         
             
                 
                 
-                    
                     
                     
                 
@@ -661,13 +732,16 @@
                     
                 
             
+            
+                
+            
         
+        
         
             
                 
                 
-                    
                     
                     
                     
@@ -732,16 +805,19 @@
                     
                 
             
+            
+                
+            
         
-        
+        
+        
             
                 
                     
                     
-                        
                         
-                        
-                        
+                        
+                        
                     
                     
                     
                 
                 
-                    
                     
                     
                 
@@ -770,6 +845,11 @@
                 
                 
             
+            
+                
+                
+                
+            
             
                 
                 
@@ -789,30 +869,142 @@
             
             
-            
+        
+        
+            
+                
+                    
+                    
+                        
+                        
+                            
+                                
+                                
+                            
+                        
+                    
+                    
+                    
+                
+                
+                    
+                    
+                
+            
+            
+                
+                    
+                    
+                        
+                        
+                    
+                
+                
+                
+                
+                
+                
+                
+            
+            
+                
+                
+                
+            
+            
+            
+                
+                    
+                    
+                    
+                    
+                
+            
+            
+                
+                    
+                    
+                
+            
+            
+                
+                    
+                    
+                
+            
+            
+                
+                    
+                
+            
+            
+                
+                    
+                        
+                    
+                
+                
+                    
+                        
+                    
+                
+            
+
+            
+                
+            
+        
+        
         
             
                 
-                    
                     
                     
                 
                 
-                    
                     
                     
                 
@@ -854,16 +1046,18 @@
                     
                 
             
+            
+                
+            
         
+        
         
             
                 
-                    
                     
                     
                 
                 
-                    
                     
                     
                 
@@ -913,13 +1107,16 @@
                     
                 
             
+            
+                
+            
         
+        
         
             
                 
                 
-                    
                     
                     
                 
@@ -1054,20 +1250,24 @@
                     
                 
             
+            
+                
+            
         
-        
-        
+        
+        
             
             
+            
+                
+                
+            
+            
+                
+                
+                
+            
+            
             
                 
-                    
+                    
                     
                     
                 
             
+            
+                
+                    
+                
+            
+            
+            
+                
+                    
+                
+            
+            
+                
+                
+                
+            
+            
+                 
+                
+            
         
     
     
     
         value, name, dbkey, path, db_version
-        
+