changeset 2:75f8fcef3e96 draft

"planemo upload for repository https://github.com/goeckslab/tools-mti/tree/main/tools/mti-utils/rename_tiff_channels commit ce1ed6b344e4e3ab5965e1106ef5a84bf875cdec"
author watsocam
date Wed, 11 May 2022 19:32:51 +0000
parents 2d1368111ac6
children b18d4cf55493
files rename_tiff_channels.xml
diffstat 1 files changed, 12 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/rename_tiff_channels.xml	Wed Apr 06 22:51:24 2022 +0000
+++ b/rename_tiff_channels.xml	Wed May 11 19:32:51 2022 +0000
@@ -1,4 +1,4 @@
-<tool id="rename_tiff_channels" name="Rename OME-TIFF Channels" version="@VERSION@.1" profile="17.09">
+<tool id="rename_tiff_channels" name="Rename OME-TIFF Channels" version="@VERSION@.2" profile="17.09">
     <description>A simple script to change the channel names in the XML metadata of OME-TIFF images</description>
     <macros>
         <import>macros.xml</import>
@@ -14,12 +14,21 @@
     ]]></command>
 
     <inputs>
-        <param name="image" type="data" format="tiff" label="Input Pyramidal OME-TIFF"/>
+        <param name="image" type="data" format="tiff" label="Input image in either tiff or OME-tiff format"/>
+        <param name="input_type" type="select" optional="false" label="Format of input image">
+            <option value="ome.tiff">ome.tiff</option>
+            <option value="tiff">tiff</option>
+        </param>
         <param name="channel_csv" type="data" format="csv" label="Channel Metadata CSV"/>
     </inputs>
 
     <outputs>
-        <data name="renamed_image" format="ome.tiff" label="${tool.name} on ${on_string}"/>
+        <data name="renamed_image" format="ome.tiff" label="${tool.name} on ${on_string}">
+            <change_format>
+                <when input="input_type" value="ome.tiff" format="ome.tiff" />
+                <when input="input_type" value="tiff" format="tiff" />
+            </change_format>
+        </data>
     </outputs>
     
     <help><![CDATA[