view FeatureFinderIsotopeWavelet.xml @ 12:b3881e7a2990 draft

"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 6e8b69ee3aff3c93f745a5de11cc9169130f2e5e"
author galaxyp
date Thu, 24 Sep 2020 12:15:25 +0000
parents becf3642c634
children 4643d1a80309
line wrap: on
line source

<?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="@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="requirements"/>
  <expand macro="stdio"/>
  <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

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="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="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="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>
  <tests>
    <expand macro="autotest_FeatureFinderIsotopeWavelet"/>
    <expand macro="manutest_FeatureFinderIsotopeWavelet"/>
  </tests>
  <help><![CDATA[Detects two-dimensional features in LC-MS data.


For more information, visit http://www.openms.de/documentation/TOPP_FeatureFinderIsotopeWavelet.html]]></help>
  <expand macro="references"/>
</tool>