diff ConsensusMapNormalizer.xml @ 13:9ff14d340f84 draft

"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 020906fb54bde7fc143c356f41975c378a741315"
author galaxyp
date Wed, 09 Sep 2020 20:02:43 +0000
parents f67f3c7c062f
children 226f58ac71c5
line wrap: on
line diff
--- a/ConsensusMapNormalizer.xml	Fri May 17 10:03:28 2019 -0400
+++ b/ConsensusMapNormalizer.xml	Wed Sep 09 20:02:43 2020 +0000
@@ -1,80 +1,84 @@
 <?xml version='1.0' encoding='UTF-8'?>
 <!--This is a configuration file for the integration of a tools into Galaxy (https://galaxyproject.org/). This file was automatically generated using CTDConverter.-->
 <!--Proposed Tool Section: [Map Alignment]-->
-<tool id="ConsensusMapNormalizer" name="ConsensusMapNormalizer" version="2.3.0">
+<tool id="ConsensusMapNormalizer" name="ConsensusMapNormalizer" version="@TOOL_VERSION@+galaxy@GALAXY_VERSION@" profile="20.05">
   <description>Normalizes maps of one consensusXML file</description>
   <macros>
     <token name="@EXECUTABLE@">ConsensusMapNormalizer</token>
     <import>macros.xml</import>
+    <import>macros_autotest.xml</import>
+    <import>macros_test.xml</import>
   </macros>
-  <expand macro="references"/>
+  <expand macro="requirements"/>
   <expand macro="stdio"/>
-  <expand macro="requirements"/>
-  <command detect_errors="aggressive"><![CDATA[ConsensusMapNormalizer
+  <command detect_errors="exit_code"><![CDATA[@QUOTE_FOO@
+@EXT_FOO@
+#import re
+
+## Preprocessing
+mkdir in &&
+ln -s '$in' 'in/${re.sub("[^\w\-_]", "_", $in.element_identifier)}.$gxy2omsext($in.ext)' &&
+mkdir out &&
+
+## Main program call
 
-#if $param_in:
-  -in $param_in
-#end if
-#if $param_out:
-  -out $param_out
-#end if
-#if $param_algorithm_type:
-  -algorithm_type
-  #if " " in str($param_algorithm_type):
-    "$param_algorithm_type"
-  #else
-    $param_algorithm_type
-  #end if
-#end if
-#if $param_ratio_threshold:
-  -ratio_threshold $param_ratio_threshold
-#end if
-#if $adv_opts.adv_opts_selector=='advanced':
-    #if $adv_opts.param_accession_filter:
-  -accession_filter     "$adv_opts.param_accession_filter"
-#end if
-    #if $adv_opts.param_description_filter:
-  -description_filter     "$adv_opts.param_description_filter"
-#end if
-    #if $adv_opts.param_force:
-  -force
-#end if
-#end if
-]]></command>
+set -o pipefail &&
+@EXECUTABLE@ -write_ctd ./ &&
+python3 '$__tool_directory__/fill_ctd.py' '@EXECUTABLE@.ctd' '$args_json' '$hardcoded_json' &&
+@EXECUTABLE@ -ini @EXECUTABLE@.ctd
+-in
+'in/${re.sub("[^\w\-_]", "_", $in.element_identifier)}.$gxy2omsext($in.ext)'
+-out
+'out/output.${gxy2omsext("consensusxml")}'
+
+## Postprocessing
+&& mv 'out/output.${gxy2omsext("consensusxml")}' '$out'
+#if "ctd_out_FLAG" in $OPTIONAL_OUTPUTS
+  && mv '@EXECUTABLE@.ctd' '$ctd_out'
+#end if]]></command>
+  <configfiles>
+    <inputs name="args_json" data_style="paths"/>
+    <configfile name="hardcoded_json"><![CDATA[{"log": "log.txt", "threads": "\${GALAXY_SLOTS:-1}", "no_progress": true}]]></configfile>
+  </configfiles>
   <inputs>
-    <param name="param_in" type="data" format="consensusxml" optional="False" label="input file" help="(-in) "/>
-    <param name="param_algorithm_type" display="radio" type="select" optional="False" value="robust_regression" label="The normalization algorithm that is applied" help="(-algorithm_type) 'robust_regression' scales each map by a fator computed from the ratios of non-differential background features (as determined by the ratio_threshold parameter), 'quantile' performs quantile normalization, 'median' scales all maps to the same median intensity, 'median_shift' shifts the median instead of scaling (WARNING: if you have regular, log-normal MS data, 'median_shift' is probably the wrong choice. Use only if you know what you're doing!)">
+    <param name="in" argument="-in" type="data" format="consensusxml" optional="false" label="input file" help=" select consensusxml data sets(s)"/>
+    <param name="algorithm_type" argument="-algorithm_type" display="radio" type="select" optional="false" label="The normalization algorithm that is applied" help="'robust_regression' scales each map by a fator computed from the ratios of non-differential background features (as determined by the ratio_threshold parameter), 'quantile' performs quantile normalization, 'median' scales all maps to the same median intensity, 'median_shift' shifts the median instead of scaling (WARNING: if you have regular, log-normal MS data, 'median_shift' is probably the wrong choice. Use only if you know what you're doing!)">
       <option value="robust_regression" selected="true">robust_regression</option>
       <option value="median">median</option>
       <option value="median_shift">median_shift</option>
       <option value="quantile">quantile</option>
+      <expand macro="list_string_san"/>
     </param>
-    <param name="param_ratio_threshold" type="float" min="0.001" max="1.0" optional="True" value="0.67" label="Only for 'robust_regression': the parameter is used to distinguish between non-outliers (ratio_threshold &lt; intensity ratio &lt; 1/ratio_threshold) and outliers" help="(-ratio_threshold) "/>
-    <expand macro="advanced_options">
-      <param name="param_accession_filter" type="text" size="30" label="Use only features with accessions (partially) matching this regular expression for computing the normalization factors. Useful," help="(-accession_filter) e.g., if you have known house keeping proteins in your samples. When this parameter is empty or the regular expression matches the empty string, all features are used (even those without an ID). No effect if quantile normalization is used">
-        <sanitizer>
-          <valid initial="string.printable">
-            <remove value="'"/>
-            <remove value="&quot;"/>
-          </valid>
-        </sanitizer>
+    <param name="ratio_threshold" argument="-ratio_threshold" type="float" optional="true" min="0.001" max="1.0" value="0.67" label="Only for 'robust_regression': the parameter is used to distinguish between non-outliers (ratio_threshold &lt; intensity ratio &lt; 1/ratio_threshold) and outliers" help=""/>
+    <expand macro="adv_opts_macro">
+      <param name="accession_filter" argument="-accession_filter" type="text" optional="true" value="" label="Use only features with accessions (partially) matching this regular expression for computing the normalization factors" help="Useful, e.g., if you have known house keeping proteins in your samples. When this parameter is empty or the regular expression matches the empty string, all features are used (even those without an ID). No effect if quantile normalization is used">
+        <expand macro="list_string_san"/>
       </param>
-      <param name="param_description_filter" type="text" size="30" label="Use only features with description (partially) matching this regular expression for computing the normalization factors. Useful," help="(-description_filter) e.g., if you have known house keeping proteins in your samples. When this parameter is empty or the regular expression matches the empty string, all features are used (even those without an ID). No effect if quantile normalization is used">
-        <sanitizer>
-          <valid initial="string.printable">
-            <remove value="'"/>
-            <remove value="&quot;"/>
-          </valid>
-        </sanitizer>
+      <param name="description_filter" argument="-description_filter" type="text" optional="true" value="" label="Use only features with description (partially) matching this regular expression for computing the normalization factors" help="Useful, e.g., if you have known house keeping proteins in your samples. When this parameter is empty or the regular expression matches the empty string, all features are used (even those without an ID). No effect if quantile normalization is used">
+        <expand macro="list_string_san"/>
       </param>
-      <param name="param_force" display="radio" type="boolean" truevalue="-force" falsevalue="" checked="false" optional="True" label="Overwrite tool specific checks" help="(-force) "/>
+      <param name="force" argument="-force" type="boolean" truevalue="true" falsevalue="false" checked="false" label="Overwrite tool specific checks" help=""/>
+      <param name="test" argument="-test" type="hidden" optional="true" value="False" label="Enables the test mode (needed for internal use only)" help="">
+        <expand macro="list_string_san"/>
+      </param>
     </expand>
+    <param name="OPTIONAL_OUTPUTS" type="select" multiple="true" label="Optional outputs" optional="true">
+      <option value="ctd_out_FLAG">Output used ctd (ini) configuration file</option>
+    </param>
   </inputs>
   <outputs>
-    <data name="param_out" format="consensusxml"/>
+    <data name="out" label="${tool.name} on ${on_string}: out" format="consensusxml"/>
+    <data name="ctd_out" format="xml" label="${tool.name} on ${on_string}: ctd">
+      <filter>OPTIONAL_OUTPUTS is not None and "ctd_out_FLAG" in OPTIONAL_OUTPUTS</filter>
+    </data>
   </outputs>
-  <help>Normalizes maps of one consensusXML file
+  <tests>
+    <expand macro="autotest_ConsensusMapNormalizer"/>
+    <expand macro="manutest_ConsensusMapNormalizer"/>
+  </tests>
+  <help><![CDATA[Normalizes maps of one consensusXML file
 
 
-For more information, visit https://abibuilder.informatik.uni-tuebingen.de/archive/openms/Documentation/release/2.3.0/html/TOPP_ConsensusMapNormalizer.html</help>
+For more information, visit http://www.openms.de/documentation/TOPP_ConsensusMapNormalizer.html]]></help>
+  <expand macro="references"/>
 </tool>