diff common.xml @ 1:0b7db679fff8 draft

"planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/tools commit 6a3036d24b5ec074936f8f8283b7e176f6f1ce70"
author bgruening
date Thu, 09 Apr 2020 08:12:15 -0400
parents 9c8ee01c0b22
children
line wrap: on
line diff
--- a/common.xml	Thu Mar 26 16:23:56 2020 -0400
+++ b/common.xml	Thu Apr 09 08:12:15 2020 -0400
@@ -182,9 +182,9 @@
         _str += FOURSPACES + "Maximum intensity:%.1f\n" % max_intensity
         _str += FOURSPACES + "Process as 3D?:%s\n" % process_3d
 
-        _str += FOURSPACES + "Relative pixel spacing in X:%.1f\n" + x_spacing
-        _str += FOURSPACES + "Relative pixel spacing in Y:%.1f\n" + y_spacing
-        _str += FOURSPACES + "Relative pixel spacing in Z:%.1f\n" + z_spacing
+        _str += FOURSPACES + "Relative pixel spacing in X:%.1f\n" % x_spacing
+        _str += FOURSPACES + "Relative pixel spacing in Y:%.1f\n" % y_spacing
+        _str += FOURSPACES + "Relative pixel spacing in Z:%.1f\n" % z_spacing
     else:
         _str += FOURSPACES + "Select the image type:Grayscale image\n"
         _str += FOURSPACES + "Name to assign these images:DNA\n"
@@ -218,9 +218,9 @@
                 _str += FOURSPACES + "Maximum intensity:255.0\n"
 
             if process_3d == "Yes":
-                _str += FOURSPACES + "Relative pixel spacing in X:%.1f\n" + x_spacing
-                _str += FOURSPACES + "Relative pixel spacing in Y:%.1f\n" + y_spacing
-                _str += FOURSPACES + "Relative pixel spacing in Z:%.1f\n" + z_spacing
+                _str += FOURSPACES + "Relative pixel spacing in X:%.1f\n" % x_spacing
+                _str += FOURSPACES + "Relative pixel spacing in Y:%.1f\n" % y_spacing
+                _str += FOURSPACES + "Relative pixel spacing in Z:%.1f\n" % z_spacing
 
     return _str
 
@@ -305,8 +305,11 @@
                             <option value="(?P&lt;field1>.*)_(?P&lt;field2>[a-zA-Z0-9]+)_(?P&lt;field3>[a-zA-Z0-9]+)_(?P&lt;field4>[a-zA-Z0-9]+)_(?P&lt;field5>[a-zA-Z0-9]+)_(?P&lt;field6>[a-zA-Z0-9]+)">field1_field2_field3_field4_field5_field6</option>
                             <option value="(?P&lt;field1>.*)__(?P&lt;field2>[a-zA-Z0-9]+)__(?P&lt;field3>[a-zA-Z0-9]+)__(?P&lt;field4>[a-zA-Z0-9]+)__(?P&lt;field5>[a-zA-Z0-9]+)__(?P&lt;field6>[a-zA-Z0-9]+)">field1__field2__field3__field4__field5__field6</option>
                         </param>
-                        <param name="folder_name_regex" type="text" value="(?P&lt;Date>[0-9]{4}_[0-9]{2}_[0-9]{2})$" label="Regular expression to extract from folder name"> 
+                        <param name="folder_name_regex" type="select" label="Select folder name pattern to extract from folder name" help="Folder names must comply with one of the patterns.For example, folder name images-exp1 matches the pattern field1-field2. If none of the patterns are suitable, please use other Galaxy tools to rename your folder first.  "> 
                             <sanitizer sanitize="false"/>
+                            <option value="(?P&lt;field1>.*)">field1</option>
+                            <option value="(?P&lt;field1>.*)-(?P&lt;field2>[a-zA-Z0-9]+)">field1-field2</option>
+                            <option value="(?P&lt;field1>.*)_(?P&lt;field2>[a-zA-Z0-9]+)">field1_field2</option>
                         </param>
                         <param name="extract_metadata_from" type="select" label="Extract metadata from">
                             <option value="All images">All images</option>