diff dose_response.xml @ 2:c122403ac78a draft

planemo upload for repository https://github.com/bernt-matthias/mb-galaxy-tools/tools/tox_tools/baseline_calculator commit 61a3d9a20a9a90d551dd5f7503be781dc28f4b75
author ufz
date Wed, 18 Dec 2024 09:11:40 +0000
parents 8a1b524ed9d8
children 2aa9da0a84a4
line wrap: on
line diff
--- a/dose_response.xml	Tue Oct 08 12:41:07 2024 +0000
+++ b/dose_response.xml	Wed Dec 18 09:11:40 2024 +0000
@@ -2,7 +2,7 @@
     <description>for Toxicological Risk Assessment</description>
     <macros>
         <token name="@TOOL_VERSION@">3.0.1</token>
-        <token name="@VERSION_SUFFIX@">1</token>
+        <token name="@VERSION_SUFFIX@">3</token>
     </macros>
     <creator>
         <organization name="Helmholtz Centre for Environmental Research - UFZ, Department of Ecotoxicology"
@@ -21,23 +21,33 @@
             '$response_column'
             '$plot_output'
             '$ec_output'
+            '$compound_name'
+            '$concentration_unit'
         ]]>
     </command>
     <inputs>
-        <param name="input_csv" type="data" format="tabular" label="Concentration - Response Tabular Input"/>
-        <param name="concentration_column" type="data_column" data_ref="input_csv" label="Concentration Column" help="Name of the column for concentration values"/>
-        <param name="response_column" type="data_column" data_ref="input_csv" label="Response Column" help="Name of the column for response values"/>
+        <param name="input_csv" type="data" format="tabular" label="Dose-Response Tabular Input"/>
+        <param name="concentration_column" type="data_column" data_ref="input_csv" label="Dose/Concentration Column Index" help="Index of the column for concentration values"/>
+        <param name="response_column" type="data_column" data_ref="input_csv" label="Response Column Index" help="Index of the column for response values"/>
+        <param name="compound_name" type="text" label="Compound Name" help="Name of the compound to analyze">
+            <validator type="regex" message="Enter a valid compound name">^^[a-zA-Z0-9\[\]()_-]+$</validator>
+        </param>
+        <param name="concentration_unit" type="text" label="Concentration Unit (i.e. mg/L, µM)">
+            <validator type="regex" message="Enter a valid concentration unit">^(\S+/\S+)</validator>
+        </param>
     </inputs>
     <outputs>
-        <data name="plot_output" format="jpg" label="Dose Response Plot"/>
-        <data name="ec_output" format="tabular" label="${tool.name} on ${on_string}: EC Values"/>
+        <data name="plot_output" format="jpg" label="${tool.name} on ${on_string}: ${compound_name} - Dose Response Plot"/>
+        <data name="ec_output" format="tabular" label="${tool.name} on ${on_string}: ${compound_name} - EC Values"/>
     </outputs>
         <tests>
         <test>
             <param name="input_csv" value="drc_input.tsv"/>
-            <param name="concentration_column" value="1"/>
-            <param name="response_column" value="2"/>
-            <output name="plot_output" ftype="jpg">
+            <param name="concentration_column" value="2"/>
+            <param name="response_column" value="3"/>
+            <param name="compound_name" value="test-chemical"/>
+            <param name="concentration_unit" value="mg/L"/>
+            <output name="plot_output" value="image_output.jpg" ftype="jpg">
                 <assert_contents>
                     <has_image_width width="480"/>
                     <has_image_height height="480"/>