comparison PrecursorMassCorrector.xml @ 8:315dca04e06f 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:04:40 +0000
parents 79760732d9e3
children e15d84652dba
comparison
equal deleted inserted replaced
7:79760732d9e3 8:315dca04e06f
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: [Signal processing and preprocessing]--> 3 <!--Proposed Tool Section: [Signal processing and preprocessing]-->
4 <tool id="PrecursorMassCorrector" name="PrecursorMassCorrector" version="2.3.0"> 4 <tool id="PrecursorMassCorrector" name="PrecursorMassCorrector" version="@TOOL_VERSION@+galaxy@GALAXY_VERSION@" profile="20.05">
5 <description>Corrects the precursor entries of MS/MS spectra, by using MS1 information.</description> 5 <description>Corrects the precursor entries of MS/MS spectra, by using MS1 information.</description>
6 <macros> 6 <macros>
7 <token name="@EXECUTABLE@">PrecursorMassCorrector</token> 7 <token name="@EXECUTABLE@">PrecursorMassCorrector</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[PrecursorMassCorrector 15 @EXT_FOO@
16 #import re
14 17
15 #if $param_in: 18 ## Preprocessing
16 -in $param_in 19 mkdir in &&
20 ln -s '$in' 'in/${re.sub("[^\w\-_]", "_", $in.element_identifier)}.$gxy2omsext($in.ext)' &&
21 mkdir out &&
22 #if $feature_in:
23 mkdir feature_in &&
24 ln -s '$feature_in' 'feature_in/${re.sub("[^\w\-_]", "_", $feature_in.element_identifier)}.$gxy2omsext($feature_in.ext)' &&
17 #end if 25 #end if
18 #if $param_out: 26
19 -out $param_out 27 ## Main program call
28
29 set -o pipefail &&
30 @EXECUTABLE@ -write_ctd ./ &&
31 python3 '$__tool_directory__/fill_ctd.py' '@EXECUTABLE@.ctd' '$args_json' '$hardcoded_json' &&
32 @EXECUTABLE@ -ini @EXECUTABLE@.ctd
33 -in
34 'in/${re.sub("[^\w\-_]", "_", $in.element_identifier)}.$gxy2omsext($in.ext)'
35 -out
36 'out/output.${gxy2omsext("mzml")}'
37 #if $feature_in:
38 -feature_in
39 'feature_in/${re.sub("[^\w\-_]", "_", $feature_in.element_identifier)}.$gxy2omsext($feature_in.ext)'
20 #end if 40 #end if
21 #if $param_feature_in: 41
22 -feature_in $param_feature_in 42 ## Postprocessing
23 #end if 43 && mv 'out/output.${gxy2omsext("mzml")}' '$out'
24 #if $param_precursor_mass_tolerance: 44 #if "ctd_out_FLAG" in $OPTIONAL_OUTPUTS
25 -precursor_mass_tolerance $param_precursor_mass_tolerance 45 && mv '@EXECUTABLE@.ctd' '$ctd_out'
26 #end if 46 #end if]]></command>
27 #if $adv_opts.adv_opts_selector=='advanced': 47 <configfiles>
28 #if $adv_opts.param_max_charge: 48 <inputs name="args_json" data_style="paths"/>
29 -max_charge $adv_opts.param_max_charge 49 <configfile name="hardcoded_json"><![CDATA[{"log": "log.txt", "threads": "\${GALAXY_SLOTS:-1}", "no_progress": true}]]></configfile>
30 #end if 50 </configfiles>
31 #if $adv_opts.param_intensity_threshold:
32 -intensity_threshold $adv_opts.param_intensity_threshold
33 #end if
34 #if $adv_opts.param_force:
35 -force
36 #end if
37 #end if
38 ]]></command>
39 <inputs> 51 <inputs>
40 <param name="param_in" type="data" format="mzml" optional="False" label="Input mzML file containing the spectra" help="(-in) "/> 52 <param name="in" argument="-in" type="data" format="mzml" optional="false" label="Input mzML file containing the spectra" help=" select mzml data sets(s)"/>
41 <param name="param_feature_in" type="data" format="featurexml" optional="True" label="Input featureXML file, containing features; if set, the MS/MS spectra precursor entries &lt;br&gt;will be matched to the feature m/z values if possible" help="(-feature_in) "/> 53 <param name="feature_in" argument="-feature_in" type="data" format="featurexml" optional="true" label="Input featureXML file, containing features; if set, the MS/MS spectra precursor entries" help="will be matched to the feature m/z values if possible select featurexml data sets(s)"/>
42 <param name="param_precursor_mass_tolerance" type="float" min="0.0" optional="True" value="1.5" label="Maximal deviation in Th which is acceptable to be corrected; &lt;br&gt;this value should be set to the instruments selection window" help="(-precursor_mass_tolerance) "/> 54 <param name="precursor_mass_tolerance" argument="-precursor_mass_tolerance" type="float" optional="true" min="0.0" value="1.5" label="Maximal deviation in Th which is acceptable to be corrected;" help="this value should be set to the instruments selection window"/>
43 <expand macro="advanced_options"> 55 <expand macro="adv_opts_macro">
44 <param name="param_max_charge" type="integer" value="3" label="Maximal charge that should be assumed for precursor peaks" help="(-max_charge) "/> 56 <param name="max_charge" argument="-max_charge" type="integer" optional="true" value="3" label="Maximal charge that should be assumed for precursor peaks" help=""/>
45 <param name="param_intensity_threshold" type="float" value="-1.0" label="Intensity threshold value for isotope wavelet feature finder, please look at the documentation of the class for details" help="(-intensity_threshold) "/> 57 <param name="intensity_threshold" argument="-intensity_threshold" type="float" optional="true" value="-1.0" label="Intensity threshold value for isotope wavelet feature finder, please look at the documentation of the class for details" help=""/>
46 <param name="param_force" display="radio" type="boolean" truevalue="-force" falsevalue="" checked="false" optional="True" label="Overwrite tool specific checks" help="(-force) "/> 58 <param name="force" argument="-force" type="boolean" truevalue="true" falsevalue="false" checked="false" label="Overwrite tool specific checks" help=""/>
59 <param name="test" argument="-test" type="hidden" optional="true" value="False" label="Enables the test mode (needed for internal use only)" help="">
60 <expand macro="list_string_san"/>
61 </param>
47 </expand> 62 </expand>
63 <param name="OPTIONAL_OUTPUTS" type="select" multiple="true" label="Optional outputs" optional="true">
64 <option value="ctd_out_FLAG">Output used ctd (ini) configuration file</option>
65 </param>
48 </inputs> 66 </inputs>
49 <outputs> 67 <outputs>
50 <data name="param_out" format="mzml"/> 68 <data name="out" label="${tool.name} on ${on_string}: out" format="mzml"/>
69 <data name="ctd_out" format="xml" label="${tool.name} on ${on_string}: ctd">
70 <filter>OPTIONAL_OUTPUTS is not None and "ctd_out_FLAG" in OPTIONAL_OUTPUTS</filter>
71 </data>
51 </outputs> 72 </outputs>
52 <help>Corrects the precursor entries of MS/MS spectra, by using MS1 information. 73 <tests>
74 <expand macro="autotest_PrecursorMassCorrector"/>
75 <expand macro="manutest_PrecursorMassCorrector"/>
76 </tests>
77 <help><![CDATA[Corrects the precursor entries of MS/MS spectra, by using MS1 information.
53 78
54 79
55 For more information, visit https://abibuilder.informatik.uni-tuebingen.de/archive/openms/Documentation/release/2.3.0/html/TOPP_PrecursorMassCorrector.html</help> 80 For more information, visit http://www.openms.de/documentation/TOPP_PrecursorMassCorrector.html]]></help>
81 <expand macro="references"/>
56 </tool> 82 </tool>