diff macros.xml @ 9:3b8fecdf9058 draft

"planemo upload commit 28e58376e1d70e38276873a7d5e2ab44db88c2c0"
author iuc
date Tue, 27 Aug 2019 17:10:29 -0400
parents 7d886fe41f56
children a24f5b991320
line wrap: on
line diff
--- a/macros.xml	Fri Jul 20 03:48:54 2018 -0400
+++ b/macros.xml	Tue Aug 27 17:10:29 2019 -0400
@@ -1,5 +1,23 @@
 <?xml version="1.0"?>
 <macros>
+    <macro name="barcode_sanitizer" >
+        <sanitizer invalid_char="">
+            <valid initial="string.letters,string.digits">
+                <add value="&#40;" /><!-- left bracket -->
+                <add value="&#41;" /><!-- right bracket -->
+                <add value="&#42;" /><!-- asterisk -->
+                <add value="&#44;" /><!-- comma -->
+                <add value="&#46;" /><!-- period -->
+                <add value="&#60;" /><!-- less than -->
+                <add value="&#61;" /><!-- equals sign -->
+                <add value="&#62;" /><!-- greater than -->
+                <add value="&#63;" /><!-- question mark -->
+                <add value="&#95;" /><!-- underscore -->
+                <add value="&#123;"/><!-- left brace -->
+                <add value="&#125;"/><!-- right brace -->
+            </valid>
+        </sanitizer>
+    </macro>
     <macro name="barcode2_conditional" >
         <conditional name="barcode">
             <param name="barcode_select" argument="--split-barcode" type="select" label="Barcode on both reads?">
@@ -11,6 +29,7 @@
                 <param name="bc_pattern2" argument="--bc-pattern2" type="text" value="" label="Barcode pattern for second read"
                        help="Use this option to specify the format of the UMI/barcode for
                              the second read pair if required." >
+                    <expand macro="barcode_sanitizer" />
                 </param>
             </when>
         </conditional>
@@ -55,7 +74,7 @@
             <yield />
         </requirements>
     </xml>
-    <token name="@VERSION@">0.5.3</token>
+    <token name="@VERSION@">0.5.5</token>
     <token name="@COMMAND_LINK@"><![CDATA[
         #set $gz = False
         #if $input_type.type == 'single':