diff FeatureFinderIsotopeWavelet.xml @ 11:becf3642c634 draft

"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 020906fb54bde7fc143c356f41975c378a741315"
author galaxyp
date Wed, 09 Sep 2020 12:56:22 +0000
parents f838387867c8
children 4643d1a80309
line wrap: on
line diff
--- a/FeatureFinderIsotopeWavelet.xml	Fri May 17 10:16:32 2019 -0400
+++ b/FeatureFinderIsotopeWavelet.xml	Wed Sep 09 12:56:22 2020 +0000
@@ -1,77 +1,86 @@
 <?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: [Quantitation]-->
-<tool id="FeatureFinderIsotopeWavelet" name="FeatureFinderIsotopeWavelet" version="2.3.0">
+<tool id="FeatureFinderIsotopeWavelet" name="FeatureFinderIsotopeWavelet" version="@TOOL_VERSION@+galaxy@GALAXY_VERSION@" profile="20.05">
   <description>Detects two-dimensional features in LC-MS data.</description>
   <macros>
     <token name="@EXECUTABLE@">FeatureFinderIsotopeWavelet</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[FeatureFinderIsotopeWavelet
+  <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_max_charge:
-  -algorithm:max_charge $param_algorithm_max_charge
-#end if
-#if $param_algorithm_intensity_threshold:
-  -algorithm:intensity_threshold $param_algorithm_intensity_threshold
-#end if
-#if $param_algorithm_hr_data:
-  -algorithm:hr_data
-#end if
-#if $adv_opts.adv_opts_selector=='advanced':
-    #if $adv_opts.param_force:
-  -force
-#end if
-    #if $adv_opts.param_algorithm_intensity_type:
-  -algorithm:intensity_type
-  #if " " in str($adv_opts.param_algorithm_intensity_type):
-    "$adv_opts.param_algorithm_intensity_type"
-  #else
-    $adv_opts.param_algorithm_intensity_type
-  #end if
-#end if
-    #if $adv_opts.param_algorithm_check_ppm:
-  -algorithm:check_ppm
-#end if
-    #if $adv_opts.param_algorithm_sweep_line_rt_votes_cutoff:
-  -algorithm:sweep_line:rt_votes_cutoff $adv_opts.param_algorithm_sweep_line_rt_votes_cutoff
-#end if
-    #if $adv_opts.param_algorithm_sweep_line_rt_interleave:
-  -algorithm:sweep_line:rt_interleave $adv_opts.param_algorithm_sweep_line_rt_interleave
-#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("featurexml")}'
+
+## Postprocessing
+&& mv 'out/output.${gxy2omsext("featurexml")}' '$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="mzml" optional="False" label="input file" help="(-in) "/>
-    <param name="param_algorithm_max_charge" type="integer" min="1" optional="True" value="3" label="The maximal charge state to be considered" help="(-max_charge) "/>
-    <param name="param_algorithm_intensity_threshold" type="float" value="-1.0" label="The final threshold t' is build upon the formula: t' = av+t*sd, where t is the intensity_threshold, av the average intensity within the wavelet transformed signal and sd the standard deviation of the transform" help="(-intensity_threshold) If you set intensity_threshold=-1, t' will be zero. &lt;br&gt;As the 'optimal' value for this parameter is highly data dependent, we would recommend to start with -1, which will also extract features with very low signal-to-noise ratio. Subsequently, one might increase the threshold to find an optimized trade-off between false positives and true positives. Depending on the dynamic range of your spectra, suitable value ranges include: -1, [0:10], and if your data features even very high intensity values, t can also adopt values up to around 30. Please note that this parameter is not of an integer type, s.t. you can also use t:=0.1, e.g"/>
-    <param name="param_algorithm_hr_data" display="radio" type="boolean" truevalue="-algorithm:hr_data" falsevalue="" checked="false" optional="True" label="Must be true in case of high-resolution data, i.e. for spectra featuring large m/z-gaps (present in FTICR and Orbitrap data," help="(-hr_data) e.g.). Please check a single MS scan out of your recording, if you are unsure"/>
-    <expand macro="advanced_options">
-      <param name="param_force" display="radio" type="boolean" truevalue="-force" falsevalue="" checked="false" optional="True" label="Overwrite tool specific checks" help="(-force) "/>
-      <param name="param_algorithm_intensity_type" display="radio" type="select" optional="False" value="ref" label="Determines the intensity type returned for the identified features" help="(-intensity_type) 'ref' (default) returns the sum of the intensities of each isotopic peak within an isotope pattern. 'trans' refers to the intensity of the monoisotopic peak within the wavelet transform. 'corrected' refers also to the transformed intensity with an attempt to remove the effects of the convolution. While the latter ones might be preferable for qualitative analyses, 'ref' might be the best option to obtain quantitative results. Please note that intensity values might be spoiled (in particular for the option 'ref'), as soon as patterns overlap (see also the explanations given in the class documentation of FeatureFinderAlgorihtmIsotopeWavelet)">
+    <param name="in" argument="-in" type="data" format="mzml" optional="false" label="input file" help=" select mzml data sets(s)"/>
+    <section name="algorithm" title="Algorithm section" help="" expanded="false">
+      <param name="max_charge" argument="-algorithm:max_charge" type="integer" optional="true" min="1" value="3" label="The maximal charge state to be considered" help=""/>
+      <param name="intensity_threshold" argument="-algorithm:intensity_threshold" type="float" optional="true" value="-1.0" label="The final threshold t' is build upon the formula: t' = av+t*sd, where t is the intensity_threshold, av the average intensity within the wavelet transformed signal and sd the standard deviation of the transform" help="If you set intensity_threshold=-1, t' will be zero.. As the 'optimal' value for this parameter is highly data dependent, we would recommend to start with -1, which will also extract features with very low signal-to-noise ratio. Subsequently, one might increase the threshold to find an optimized trade-off between false positives and true positives. Depending on the dynamic range of your spectra, suitable value ranges include: -1, [0:10], and if your data features even very high intensity values, t can also adopt values up to around 30. Please note that this parameter is not of an integer type, s.t. you can also use t:=0.1, e.g"/>
+      <param name="intensity_type" argument="-algorithm:intensity_type" display="radio" type="select" optional="false" label="Determines the intensity type returned for the identified features" help="'ref' (default) returns the sum of the intensities of each isotopic peak within an isotope pattern. 'trans' refers to the intensity of the monoisotopic peak within the wavelet transform. 'corrected' refers also to the transformed intensity with an attempt to remove the effects of the convolution. While the latter ones might be preferable for qualitative analyses, 'ref' might be the best option to obtain quantitative results. Please note that intensity values might be spoiled (in particular for the option 'ref'), as soon as patterns overlap (see also the explanations given in the class documentation of FeatureFinderAlgorihtmIsotopeWavelet)">
         <option value="ref" selected="true">ref</option>
         <option value="trans">trans</option>
         <option value="corrected">corrected</option>
+        <expand macro="list_string_san"/>
       </param>
-      <param name="param_algorithm_check_ppm" display="radio" type="boolean" truevalue="-algorithm:check_ppm" falsevalue="" checked="false" optional="True" label="Enables/disables a ppm test vs" help="(-check_ppm) the averagine model, i.e. potential peptide masses are checked for plausibility. In addition, a heuristic correcting potential mass shifts induced by the wavelet is applied"/>
-      <param name="param_algorithm_sweep_line_rt_votes_cutoff" type="integer" min="0" optional="True" value="5" label="Defines the minimum number of subsequent scans where a pattern must occur to be considered as a feature" help="(-rt_votes_cutoff) "/>
-      <param name="param_algorithm_sweep_line_rt_interleave" type="integer" min="0" optional="True" value="1" label="Defines the maximum number of scans (w.r.t" help="(-rt_interleave) rt_votes_cutoff) where an expected pattern is missing. There is usually no reason to change the default value"/>
+      <param name="check_ppm" argument="-algorithm:check_ppm" type="boolean" truevalue="true" falsevalue="false" checked="false" label="Enables/disables a ppm test vs" help="the averagine model, i.e. potential peptide masses are checked for plausibility. In addition, a heuristic correcting potential mass shifts induced by the wavelet is applied"/>
+      <param name="hr_data" argument="-algorithm:hr_data" type="boolean" truevalue="true" falsevalue="false" checked="false" label="Must be true in case of high-resolution data" help="i.e. for spectra featuring large m/z-gaps (present in FTICR and Orbitrap data, e.g.). Please check a single MS scan out of your recording, if you are unsure"/>
+      <section name="sweep_line" title="" help="" expanded="false">
+        <param name="rt_votes_cutoff" argument="-algorithm:sweep_line:rt_votes_cutoff" type="integer" optional="true" min="0" value="5" label="Defines the minimum number of subsequent scans where a pattern must occur to be considered as a feature" help=""/>
+        <param name="rt_interleave" argument="-algorithm:sweep_line:rt_interleave" type="integer" optional="true" min="0" value="1" label="Defines the maximum number of scans (w.r.t" help="rt_votes_cutoff) where an expected pattern is missing. There is usually no reason to change the default value"/>
+      </section>
+    </section>
+    <expand macro="adv_opts_macro">
+      <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="featurexml"/>
+    <data name="out" label="${tool.name} on ${on_string}: out" format="featurexml"/>
+    <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>Detects two-dimensional features in LC-MS data.
+  <tests>
+    <expand macro="autotest_FeatureFinderIsotopeWavelet"/>
+    <expand macro="manutest_FeatureFinderIsotopeWavelet"/>
+  </tests>
+  <help><![CDATA[Detects two-dimensional features in LC-MS data.
 
 
-For more information, visit https://abibuilder.informatik.uni-tuebingen.de/archive/openms/Documentation/release/2.3.0/html/TOPP_FeatureFinderIsotopeWavelet.html</help>
+For more information, visit http://www.openms.de/documentation/TOPP_FeatureFinderIsotopeWavelet.html]]></help>
+  <expand macro="references"/>
 </tool>