Repository 'roary'
hg clone https://toolshed.g2.bx.psu.edu/repos/iuc/roary

Changeset 9:91887494eb97 (2021-11-24)
Previous changeset 8:e88a7de55d6e (2021-09-23) Next changeset 10:9b2b122d0415 (2024-08-11)
Commit message:
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/roary commit 40335305f3461201b017380c60c4c96c7e07322f"
modified:
roary.xml
b
diff -r e88a7de55d6e -r 91887494eb97 roary.xml
--- a/roary.xml Thu Sep 23 13:08:51 2021 +0000
+++ b/roary.xml Wed Nov 24 21:06:31 2021 +0000
[
@@ -1,12 +1,12 @@
 <tool id="roary" name="Roary" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@">
     <description>the pangenome pipeline - Quickly generate a core gene alignment from gff3 files</description>
+    <macros>
+        <token name="@TOOL_VERSION@">3.13.0</token>
+        <token name="@VERSION_SUFFIX@">2</token>
+    </macros>
     <xrefs>
         <xref type="bio.tools">roary</xref>
     </xrefs>
-    <macros>
-        <token name="@TOOL_VERSION@">3.13.0</token>
-        <token name="@VERSION_SUFFIX@">1</token>
-    </macros>
     <requirements>
         <requirement type="package" version="@TOOL_VERSION@">roary</requirement>
     </requirements>
@@ -14,10 +14,11 @@
     <command detect_errors="exit_code"><![CDATA[
         #import re
         #set $filenames = list()
+        ## Roary resolves symbolic links and breaks if there is whitespace in the path.
+        ## Copying and renaming the files resolves that issue.
         #for $gff in $gff_input.gffs
-            #set escaped_element_identifier = re.sub('[^\w\-]', '_', str($gff.element_identifier))
-            ln -s '$gff' '${escaped_element_identifier}.gff' &&
-            #set $filename = str($escaped_element_identifier) + '.gff'
+            #set $filename = '%s.gff' % re.sub('[^\w_-]', '_', str($gff.element_identifier))
+            cp '$gff' $filename &&
             $filenames.append(str($filename))
         #end for