Mercurial > repos > galaxyp > openms_spectrafilterwindowmower
comparison SpectraFilterWindowMower.xml @ 12:922377415087 draft
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
| author | galaxyp |
|---|---|
| date | Thu, 27 Aug 2020 23:01:56 +0000 |
| parents | 380f0044b649 |
| children | 0d642dc32324 |
comparison
equal
deleted
inserted
replaced
| 11:380f0044b649 | 12:922377415087 |
|---|---|
| 1 <?xml version='1.0' encoding='UTF-8'?> | 1 <?xml version='1.0' encoding='UTF-8'?> |
| 2 <!--This is a configuration file for the integration of a tools into Galaxy (https://galaxyproject.org/). This file was automatically generated using CTDConverter.--> | 2 <!--This is a configuration file for the integration of a tools into Galaxy (https://galaxyproject.org/). This file was automatically generated using CTDConverter.--> |
| 3 <!--Proposed Tool Section: [Identification]--> | 3 <!--Proposed Tool Section: [Identification]--> |
| 4 <tool id="SpectraFilterWindowMower" name="SpectraFilterWindowMower" version="2.3.0"> | 4 <tool id="SpectraFilterWindowMower" name="SpectraFilterWindowMower" version="@TOOL_VERSION@+galaxy@GALAXY_VERSION@" profile="20.05"> |
| 5 <description>Applies thresholdfilter to peak spectra.</description> | 5 <description>Applies thresholdfilter to peak spectra.</description> |
| 6 <macros> | 6 <macros> |
| 7 <token name="@EXECUTABLE@">SpectraFilterWindowMower</token> | 7 <token name="@EXECUTABLE@">SpectraFilterWindowMower</token> |
| 8 <import>macros.xml</import> | 8 <import>macros.xml</import> |
| 9 <import>macros_autotest.xml</import> | |
| 10 <import>macros_test.xml</import> | |
| 9 </macros> | 11 </macros> |
| 10 <expand macro="references"/> | 12 <expand macro="requirements"/> |
| 11 <expand macro="stdio"/> | 13 <expand macro="stdio"/> |
| 12 <expand macro="requirements"/> | 14 <command detect_errors="exit_code"><![CDATA[@QUOTE_FOO@ |
| 13 <command detect_errors="aggressive"><![CDATA[SpectraFilterWindowMower | 15 @EXT_FOO@ |
| 16 #import re | |
| 14 | 17 |
| 15 #if $param_in: | 18 ## Preprocessing |
| 16 -in $param_in | 19 mkdir in && |
| 17 #end if | 20 ln -s '$in' 'in/${re.sub("[^\w\-_]", "_", $in.element_identifier)}.$gxy2omsext($in.ext)' && |
| 18 #if $param_out: | 21 mkdir out && |
| 19 -out $param_out | 22 |
| 20 #end if | 23 ## Main program call |
| 21 #if $param_algorithm_windowsize: | 24 |
| 22 -algorithm:windowsize $param_algorithm_windowsize | 25 set -o pipefail && |
| 23 #end if | 26 @EXECUTABLE@ -write_ctd ./ && |
| 24 #if $param_algorithm_peakcount: | 27 python3 '$__tool_directory__/fill_ctd.py' '@EXECUTABLE@.ctd' '$args_json' '$hardcoded_json' && |
| 25 -algorithm:peakcount $param_algorithm_peakcount | 28 @EXECUTABLE@ -ini @EXECUTABLE@.ctd |
| 26 #end if | 29 -in |
| 27 #if $param_algorithm_movetype: | 30 'in/${re.sub("[^\w\-_]", "_", $in.element_identifier)}.$gxy2omsext($in.ext)' |
| 28 -algorithm:movetype | 31 -out |
| 29 #if " " in str($param_algorithm_movetype): | 32 'out/output.${gxy2omsext("mzml")}' |
| 30 "$param_algorithm_movetype" | 33 |
| 31 #else | 34 ## Postprocessing |
| 32 $param_algorithm_movetype | 35 && mv 'out/output.${gxy2omsext("mzml")}' '$out' |
| 33 #end if | 36 #if "ctd_out_FLAG" in $OPTIONAL_OUTPUTS |
| 34 #end if | 37 && mv '@EXECUTABLE@.ctd' '$ctd_out' |
| 35 #if $adv_opts.adv_opts_selector=='advanced': | 38 #end if]]></command> |
| 36 #if $adv_opts.param_force: | 39 <configfiles> |
| 37 -force | 40 <inputs name="args_json" data_style="paths"/> |
| 38 #end if | 41 <configfile name="hardcoded_json"><![CDATA[{"log": "log.txt", "threads": "\${GALAXY_SLOTS:-1}", "no_progress": true}]]></configfile> |
| 39 #end if | 42 </configfiles> |
| 40 ]]></command> | |
| 41 <inputs> | 43 <inputs> |
| 42 <param name="param_in" type="data" format="mzml" optional="False" label="input file" help="(-in) "/> | 44 <param name="in" argument="-in" type="data" format="mzml" optional="false" label="input file" help=" select mzml data sets(s)"/> |
| 43 <param name="param_algorithm_windowsize" type="float" value="50.0" label="The size of the sliding window along the m/z axis" help="(-windowsize) "/> | 45 <section name="algorithm" title="Algorithm parameter subsection" help="" expanded="false"> |
| 44 <param name="param_algorithm_peakcount" type="integer" value="2" label="The number of peaks that should be kept" help="(-peakcount) "/> | 46 <param name="windowsize" argument="-algorithm:windowsize" type="float" optional="true" value="50.0" label="The size of the sliding window along the m/z axis" help=""/> |
| 45 <param name="param_algorithm_movetype" display="radio" type="select" optional="False" value="slide" label="Whether sliding window (one peak steps) or jumping window (window size steps) should be used" help="(-movetype) "> | 47 <param name="peakcount" argument="-algorithm:peakcount" type="integer" optional="true" value="2" label="The number of peaks that should be kept" help=""/> |
| 46 <option value="slide" selected="true">slide</option> | 48 <param name="movetype" argument="-algorithm:movetype" display="radio" type="select" optional="false" label="Whether sliding window (one peak steps) or jumping window (window size steps) should be used" help=""> |
| 47 <option value="jump">jump</option> | 49 <option value="slide" selected="true">slide</option> |
| 50 <option value="jump">jump</option> | |
| 51 <expand macro="list_string_san"/> | |
| 52 </param> | |
| 53 </section> | |
| 54 <expand macro="adv_opts_macro"> | |
| 55 <param name="force" argument="-force" type="boolean" truevalue="true" falsevalue="false" checked="false" label="Overwrite tool specific checks" help=""/> | |
| 56 <param name="test" argument="-test" type="hidden" optional="true" value="False" label="Enables the test mode (needed for internal use only)" help=""> | |
| 57 <expand macro="list_string_san"/> | |
| 58 </param> | |
| 59 </expand> | |
| 60 <param name="OPTIONAL_OUTPUTS" type="select" multiple="true" label="Optional outputs" optional="true"> | |
| 61 <option value="ctd_out_FLAG">Output used ctd (ini) configuration file</option> | |
| 48 </param> | 62 </param> |
| 49 <expand macro="advanced_options"> | |
| 50 <param name="param_force" display="radio" type="boolean" truevalue="-force" falsevalue="" checked="false" optional="True" label="Overwrite tool specific checks" help="(-force) "/> | |
| 51 </expand> | |
| 52 </inputs> | 63 </inputs> |
| 53 <outputs> | 64 <outputs> |
| 54 <data name="param_out" format="mzml"/> | 65 <data name="out" label="${tool.name} on ${on_string}: out" format="mzml"/> |
| 66 <data name="ctd_out" format="xml" label="${tool.name} on ${on_string}: ctd"> | |
| 67 <filter>OPTIONAL_OUTPUTS is not None and "ctd_out_FLAG" in OPTIONAL_OUTPUTS</filter> | |
| 68 </data> | |
| 55 </outputs> | 69 </outputs> |
| 56 <help>Applies thresholdfilter to peak spectra. | 70 <tests> |
| 71 <expand macro="autotest_SpectraFilterWindowMower"/> | |
| 72 <expand macro="manutest_SpectraFilterWindowMower"/> | |
| 73 </tests> | |
| 74 <help><![CDATA[Applies thresholdfilter to peak spectra. | |
| 57 | 75 |
| 58 | 76 |
| 59 For more information, visit https://abibuilder.informatik.uni-tuebingen.de/archive/openms/Documentation/release/2.3.0/html/TOPP_SpectraFilterWindowMower.html</help> | 77 For more information, visit http://www.openms.de/documentation/TOPP_SpectraFilterWindowMower.html]]></help> |
| 78 <expand macro="references"/> | |
| 60 </tool> | 79 </tool> |
