# HG changeset patch
# User iuc
# Date 1761639657 0
# Node ID 3215ab8a94de7a4e612ef526d09d8f597a364cd4
# Parent  14046254799ce22a229aac4b688eb8903ef6eb64
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/semibin commit 2c08a2e49a2844efe92340c5a9e9c8323e4a33d6
diff -r 14046254799c -r 3215ab8a94de macros.xml
--- a/macros.xml	Sun Aug 10 11:40:20 2025 +0000
+++ b/macros.xml	Tue Oct 28 08:20:57 2025 +0000
@@ -1,7 +1,7 @@
 
 
     2.1.0
-    0
+    1
     21.01
     
         
@@ -79,7 +79,7 @@
         
     
     
-        
+        
     
     
         
@@ -88,11 +88,11 @@
                 
             
             
-                
+                
                 
             
             
-                
+                
                 
             
         
@@ -101,39 +101,27 @@
         
     
      'contigs.fasta' &&
-#else
-ln -s '$input_fasta' 'contigs.fasta' &&
-#end if
+ln -s '$input_fasta' 'contigs.$input_fasta.ext' &&
     ]]>
      'contigs.fasta' &&
-    #else
-ln -s '$mode.input_fasta' 'contigs.fasta' &&
-    #end if
+ln -s '$input_fasta' 'contigs.$input_fasta.ext' &&
 #else
     #if $mode.multi_fasta.select == 'concatenated'
-        #if $mode.multi_fasta.input_fasta.ext.endswith(".gz")
-gunzip -c '$mode.multi_fasta.input_fasta' > 'contigs.fasta' &&
-        #else
-ln -s '$mode.multi_fasta.input_fasta' 'contigs.fasta' &&
-        #end if
+ln -s '$input_fasta' 'contigs.$input_fasta.ext' &&
 #set $separator = $mode.multi_fasta.separator
     #else
         #for $e in $mode.multi_fasta.input_fasta
-            #set $identifier = re.sub('[^\s\w\-\\.]', '_', str($e.element_identifier))
-            #if $e.ext.endswith(".gz")
-gunzip -c '$e' > '${identifier}.fasta' &&
-            #else
-ln -s '$e' '${identifier}.fasta' &&
-            #end if
+            #set $identifier = re.sub('[^\s\w\-]', '_', str($e.element_identifier))
+ln -s '$e' '${identifier}.$e.ext' &&
         #end for
 #set $separator = ':'
 SemiBin2 concatenate_fasta
-    --input-fasta *.fasta
+    --input-fasta
+    #for $e in $mode.multi_fasta.input_fasta
+        #set $identifier = re.sub('[^\s\w\-]', '_', str($e.element_identifier))
+        '${identifier}.$e.ext'
+    #end for
     --output 'output'
     --separator '$separator'
     --compression none
@@ -158,18 +146,18 @@
     
     
     
@@ -513,4 +501,4 @@
             10.1038/s41467-022-29843-y
         
     
-
+
\ No newline at end of file
diff -r 14046254799c -r 3215ab8a94de test-data/input_multi_sorted10_naming.bam
Binary file test-data/input_multi_sorted10_naming.bam has changed
diff -r 14046254799c -r 3215ab8a94de test-data/input_multi_sorted1_naming.bam
Binary file test-data/input_multi_sorted1_naming.bam has changed
diff -r 14046254799c -r 3215ab8a94de test-data/input_multi_sorted2_naming.bam
Binary file test-data/input_multi_sorted2_naming.bam has changed
diff -r 14046254799c -r 3215ab8a94de test-data/input_multi_sorted3_naming.bam
Binary file test-data/input_multi_sorted3_naming.bam has changed
diff -r 14046254799c -r 3215ab8a94de test-data/input_multi_sorted4_naming.bam
Binary file test-data/input_multi_sorted4_naming.bam has changed
diff -r 14046254799c -r 3215ab8a94de test-data/input_multi_sorted5_naming.bam
Binary file test-data/input_multi_sorted5_naming.bam has changed
diff -r 14046254799c -r 3215ab8a94de test-data/input_multi_sorted6_naming.bam
Binary file test-data/input_multi_sorted6_naming.bam has changed
diff -r 14046254799c -r 3215ab8a94de test-data/input_multi_sorted7_naming.bam
Binary file test-data/input_multi_sorted7_naming.bam has changed
diff -r 14046254799c -r 3215ab8a94de test-data/input_multi_sorted8_naming.bam
Binary file test-data/input_multi_sorted8_naming.bam has changed
diff -r 14046254799c -r 3215ab8a94de test-data/input_multi_sorted9_naming.bam
Binary file test-data/input_multi_sorted9_naming.bam has changed
diff -r 14046254799c -r 3215ab8a94de test-data/input_single.fasta.bz2
Binary file test-data/input_single.fasta.bz2 has changed
diff -r 14046254799c -r 3215ab8a94de test-data/input_single.fasta.gz
Binary file test-data/input_single.fasta.gz has changed
diff -r 14046254799c -r 3215ab8a94de train.xml
--- a/train.xml	Sun Aug 10 11:40:20 2025 +0000
+++ b/train.xml	Tue Oct 28 08:20:57 2025 +0000
@@ -11,40 +11,37 @@
      'contigs.fasta' &&
-    #else
-ln -s '$mode.input_fasta' 'contigs.fasta' &&
-    #end if
+ln -s '$mode.input_fasta' 'contigs.$input_fasta.ext' &&
 #else
     #for $e in $mode.input_fasta
-        #set $identifier = re.sub('[^\s\w\-\\.]', '_', str($e.element_identifier))
-        #if $e.ext.endswith(".gz")
-gunzip -c '$e' > '${identifier}.fasta' &&
-        #else
-ln -s '$e' '${identifier}.fasta' &&
-        #end if
+        #set $identifier = re.sub('[^\s\w\-]', '_', str($e.element_identifier))
+ln -s '$e' '${identifier}.$e.ext' &&
     #end for
 #end if
 SemiBin2 train_semi
 #if $mode.select == 'single'
-    --input-fasta 'contigs.fasta'
+    --input-fasta 'contigs.$input_fasta.ext'
     --data '$mode.data'
     --data-split '$mode.data_split'
     --cannot-link '$mode.cannot_link'
 #else
     --train-from-many
+    --input-fasta
     #for $e in $mode.input_fasta
-    --input-fasta '${e.element_identifier}.fasta'
-    #end for
-    #for $e in $mode.data
-    --data '$e'
+        #set $identifier = re.sub('[^\s\w\-]', '_', str($e.element_identifier))
+        '${identifier}.$e.ext'
     #end for
-    #for $e in $mode.data_split
-    --data-split '$e'
+    --data
+    #for $e in $mode.data
+        '$e'
     #end for
+    --data-split 
+    #for $e in $mode.data_split
+        '$e'
+    #end for
+    --cannot-link
     #for $e in $mode.cannot_link
-    --cannot-link '$e'
+        '$e'
     #end for
 #end if
     --output 'output'
@@ -66,13 +63,13 @@
                 
             
             
-                
+                
                 
                 
                 
             
             
-                
+                
                 
                 
                 
@@ -112,6 +109,50 @@
         
         
             
+                
+                
+                
+                
+                
+            
+            
+                
+                
+            
+            
+            
+            
+            
+            
+        
+        
+            
+                
+                
+                
+                
+                
+            
+            
+                
+                
+            
+            
+            
+            
+            
+            
+        
+        
+