changeset 9:72e1ab9de2a1 draft default tip

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/rptools commit 4ae625e3ff1de2034c8d29ad26434f41e3230c2c-dirty
author tduigou
date Fri, 24 Oct 2025 09:47:42 +0000
parents 67a1822ee30e
children
files macros.xml rpviz.xml
diffstat 2 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/macros.xml	Thu Oct 23 14:40:11 2025 +0000
+++ b/macros.xml	Fri Oct 24 09:47:42 2025 +0000
@@ -1,6 +1,6 @@
 <macros>
     <token name="@TOOL_VERSION@">6.7.1</token>
-    <token name="@VERSION_SUFFIX@">0</token>
+    <token name="@VERSION_SUFFIX@">1</token>
     <xml name="requirements">
         <requirements>
             <requirement type="package" version="@TOOL_VERSION@">rptools</requirement>
--- a/rpviz.xml	Thu Oct 23 14:40:11 2025 +0000
+++ b/rpviz.xml	Fri Oct 24 09:47:42 2025 +0000
@@ -6,11 +6,14 @@
     </macros>
     <expand macro="requirements" />
     <command detect_errors="exit_code"><![CDATA[
+        #import re
 	    #set input='indir'
         mkdir -p '$input' &&
         #if str($input_type_conditional.input_type) == "sbml":
 	        #for $file in $input_type_conditional.input_sbml
-            	cp '$file.file_name' '$input/$file.name' &&
+                #set identifier = re.sub('[^\s\w\-]', '_', str($file.element_identifier))
+                #set file_name = $identifier + '.xml'
+            	cp '$file.file_name' '$input/${file_name}' &&
 	        #end for
         #elif str($input_type_conditional.input_type) == "tar":
 	        #set input=$input_type_conditional.input_tar