comparison HighResPrecursorMassCorrector.xml @ 11:8962ca0b2456 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:13:48 +0000
parents a777f667393e
children cdbd06d8cbd5
comparison
equal deleted inserted replaced
10:d413dc49d650 11:8962ca0b2456
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="HighResPrecursorMassCorrector" name="HighResPrecursorMassCorrector" version="2.3.0"> 4 <tool id="HighResPrecursorMassCorrector" name="HighResPrecursorMassCorrector" version="@TOOL_VERSION@+galaxy@GALAXY_VERSION@" profile="20.05">
5 <description>Corrects the precursor mass and charge determined by the instrument software.</description> 5 <description>Corrects the precursor mass and charge determined by the instrument software.</description>
6 <macros> 6 <macros>
7 <token name="@EXECUTABLE@">HighResPrecursorMassCorrector</token> 7 <token name="@EXECUTABLE@">HighResPrecursorMassCorrector</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[HighResPrecursorMassCorrector 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 "out_csv_FLAG" in str($OPTIONAL_OUTPUTS).split(',')
23 mkdir out_csv &&
17 #end if 24 #end if
18 #if $param_out: 25 #if $feature.in:
19 -out $param_out 26 mkdir feature.in &&
27 ln -s '$feature.in' 'feature.in/${re.sub("[^\w\-_]", "_", $feature.in.element_identifier)}.$gxy2omsext($feature.in.ext)' &&
20 #end if 28 #end if
21 #if $param_out_csv: 29
22 -out_csv $param_out_csv 30 ## Main program call
31
32 set -o pipefail &&
33 @EXECUTABLE@ -write_ctd ./ &&
34 python3 '$__tool_directory__/fill_ctd.py' '@EXECUTABLE@.ctd' '$args_json' '$hardcoded_json' &&
35 @EXECUTABLE@ -ini @EXECUTABLE@.ctd
36 -in
37 'in/${re.sub("[^\w\-_]", "_", $in.element_identifier)}.$gxy2omsext($in.ext)'
38 -out
39 'out/output.${gxy2omsext("mzml")}'
40 #if "out_csv_FLAG" in str($OPTIONAL_OUTPUTS).split(',')
41 -out_csv
42 'out_csv/output.${gxy2omsext("csv")}'
23 #end if 43 #end if
24 #if $param_feature_in: 44 #if $feature.in:
25 -feature:in $param_feature_in 45 -feature:in
46 'feature.in/${re.sub("[^\w\-_]", "_", $feature.in.element_identifier)}.$gxy2omsext($feature.in.ext)'
26 #end if 47 #end if
27 #if $param_feature_mz_tolerance: 48 #if len(str($OPTIONAL_OUTPUTS).split(',')) == 0
28 -feature:mz_tolerance $param_feature_mz_tolerance 49 | tee '$stdout'
29 #end if 50 #end if
30 #if $param_feature_mz_tolerance_unit: 51
31 -feature:mz_tolerance_unit 52 ## Postprocessing
32 #if " " in str($param_feature_mz_tolerance_unit): 53 && mv 'out/output.${gxy2omsext("mzml")}' '$out'
33 "$param_feature_mz_tolerance_unit" 54 #if "out_csv_FLAG" in str($OPTIONAL_OUTPUTS).split(',')
34 #else 55 && mv 'out_csv/output.${gxy2omsext("csv")}' '$out_csv'
35 $param_feature_mz_tolerance_unit
36 #end if
37 #end if 56 #end if
38 #if $param_feature_rt_tolerance: 57 #if "ctd_out_FLAG" in $OPTIONAL_OUTPUTS
39 -feature:rt_tolerance $param_feature_rt_tolerance 58 && mv '@EXECUTABLE@.ctd' '$ctd_out'
40 #end if 59 #end if]]></command>
41 #if $param_feature_believe_charge: 60 <configfiles>
42 -feature:believe_charge 61 <inputs name="args_json" data_style="paths"/>
43 #end if 62 <configfile name="hardcoded_json"><![CDATA[{"log": "log.txt", "threads": "\${GALAXY_SLOTS:-1}", "no_progress": true}]]></configfile>
44 #if $param_feature_keep_original: 63 </configfiles>
45 -feature:keep_original
46 #end if
47 #if $param_feature_assign_all_matching:
48 -feature:assign_all_matching
49 #end if
50 #if $param_nearest_peak_mz_tolerance:
51 -nearest_peak:mz_tolerance $param_nearest_peak_mz_tolerance
52 #end if
53 #if $param_nearest_peak_mz_tolerance_unit:
54 -nearest_peak:mz_tolerance_unit
55 #if " " in str($param_nearest_peak_mz_tolerance_unit):
56 "$param_nearest_peak_mz_tolerance_unit"
57 #else
58 $param_nearest_peak_mz_tolerance_unit
59 #end if
60 #end if
61 #if $param_highest_intensity_peak_mz_tolerance:
62 -highest_intensity_peak:mz_tolerance $param_highest_intensity_peak_mz_tolerance
63 #end if
64 #if $adv_opts.adv_opts_selector=='advanced':
65 #if $adv_opts.param_force:
66 -force
67 #end if
68 #if $adv_opts.param_feature_max_trace:
69 -feature:max_trace $adv_opts.param_feature_max_trace
70 #end if
71 #end if
72 ]]></command>
73 <inputs> 64 <inputs>
74 <param name="param_in" type="data" format="mzml" optional="False" label="Input file (centroided data)" help="(-in) "/> 65 <param name="in" argument="-in" type="data" format="mzml" optional="false" label="Input file (centroided data)" help=" select mzml data sets(s)"/>
75 <param name="param_feature_in" type="data" format="featurexml" optional="True" label="Features used to correct precursor masses" help="(-in) "/> 66 <section name="feature" title="Use features for precursor mass correction" help="" expanded="false">
76 <param name="param_feature_mz_tolerance" type="float" value="5.0" label="The precursor mass tolerance" help="(-mz_tolerance) Used to determine matching to feature mass traces"/> 67 <param name="in" argument="-feature:in" type="data" format="featurexml" optional="true" label="Features used to correct precursor masses" help=" select featurexml data sets(s)"/>
77 <param name="param_feature_mz_tolerance_unit" display="radio" type="select" optional="False" value="ppm" label="Unit of precursor mass tolerance" help="(-mz_tolerance_unit) "> 68 <param name="mz_tolerance" argument="-feature:mz_tolerance" type="float" optional="true" value="5.0" label="The precursor mass tolerance" help="Used to determine matching to feature mass traces"/>
78 <option value="Da">Da</option> 69 <param name="mz_tolerance_unit" argument="-feature:mz_tolerance_unit" display="radio" type="select" optional="false" label="Unit of precursor mass tolerance" help="">
79 <option value="ppm" selected="true">ppm</option> 70 <option value="Da">Da</option>
71 <option value="ppm" selected="true">ppm</option>
72 <expand macro="list_string_san"/>
73 </param>
74 <param name="rt_tolerance" argument="-feature:rt_tolerance" type="float" optional="true" value="0.0" label="Additional retention time tolerance added to feature boundaries" help=""/>
75 <param name="max_trace" argument="-feature:max_trace" type="integer" optional="true" value="2" label="Maximum isotopic trace considered in matching a precursor to a feature" help=""/>
76 <param name="believe_charge" argument="-feature:believe_charge" type="boolean" truevalue="true" falsevalue="false" checked="false" label="Assume precursor charge to be correct" help=""/>
77 <param name="keep_original" argument="-feature:keep_original" type="boolean" truevalue="true" falsevalue="false" checked="false" label="Make a copy of the precursor and MS2 (true) or discard the original (false)" help=""/>
78 <param name="assign_all_matching" argument="-feature:assign_all_matching" type="boolean" truevalue="true" falsevalue="false" checked="false" label="Correct a precursor using all matching features (true) or only the nearest (false)" help="Only evaluated if copies are created (feature:keep_original)"/>
79 </section>
80 <section name="nearest_peak" title="Use nearest centroided MS1 peak for precursor mass correction" help="" expanded="false">
81 <param name="mz_tolerance" argument="-nearest_peak:mz_tolerance" type="float" optional="true" value="0.0" label="The precursor mass tolerance to find the closest MS1 peak" help="(Disable method by setting value to 0.0)"/>
82 <param name="mz_tolerance_unit" argument="-nearest_peak:mz_tolerance_unit" display="radio" type="select" optional="false" label="Unit of precursor mass tolerance" help="">
83 <option value="Da">Da</option>
84 <option value="ppm" selected="true">ppm</option>
85 <expand macro="list_string_san"/>
86 </param>
87 </section>
88 <section name="highest_intensity_peak" title="Use centroided MS1 peak with the highest intensity in a certrain mass range - for precursor mass correction" help="" expanded="false">
89 <param name="mz_tolerance" argument="-highest_intensity_peak:mz_tolerance" type="float" optional="true" value="0.0" label="The precursor mass tolerance to find the highest intensity MS1 peak" help="Suggested value 1/max. expected charge. (Disable method by setting value to 0.0)"/>
90 <param name="mz_tolerance_unit" argument="-highest_intensity_peak:mz_tolerance_unit" display="radio" type="select" optional="false" label="Unit of precursor mass tolerance" help="">
91 <option value="Da">Da</option>
92 <option value="ppm" selected="true">ppm</option>
93 <expand macro="list_string_san"/>
94 </param>
95 </section>
96 <expand macro="adv_opts_macro">
97 <param name="force" argument="-force" type="boolean" truevalue="true" falsevalue="false" checked="false" label="Overwrite tool specific checks" help=""/>
98 <param name="test" argument="-test" type="hidden" optional="true" value="False" label="Enables the test mode (needed for internal use only)" help="">
99 <expand macro="list_string_san"/>
100 </param>
101 </expand>
102 <param name="OPTIONAL_OUTPUTS" type="select" multiple="true" label="Optional outputs" optional="true">
103 <option value="out_csv_FLAG">out_csv (Unit of precursor mass tolerance)</option>
104 <option value="ctd_out_FLAG">Output used ctd (ini) configuration file</option>
80 </param> 105 </param>
81 <param name="param_feature_rt_tolerance" type="float" value="0.0" label="Additional retention time tolerance added to feature boundaries" help="(-rt_tolerance) "/>
82 <param name="param_feature_believe_charge" display="radio" type="boolean" truevalue="-feature:believe_charge" falsevalue="" checked="false" optional="True" label="Assume precursor charge to be correct" help="(-believe_charge) "/>
83 <param name="param_feature_keep_original" display="radio" type="boolean" truevalue="-feature:keep_original" falsevalue="" checked="false" optional="True" label="Make a copy of the precursor and MS2 (true) or discard the original (false)" help="(-keep_original) "/>
84 <param name="param_feature_assign_all_matching" display="radio" type="boolean" truevalue="-feature:assign_all_matching" falsevalue="" checked="false" optional="True" label="Correct a precursor using all matching features (true) or only the nearest (false)" help="(-assign_all_matching) Only evaluated if copies are created (feature:keep_original)"/>
85 <param name="param_nearest_peak_mz_tolerance" type="float" value="0.0" label="The precursor mass tolerance to find the closest MS1 peak" help="(-mz_tolerance) (Disable method by setting value to 0.0)"/>
86 <param name="param_nearest_peak_mz_tolerance_unit" display="radio" type="select" optional="False" value="ppm" label="Unit of precursor mass tolerance" help="(-mz_tolerance_unit) ">
87 <option value="Da">Da</option>
88 <option value="ppm" selected="true">ppm</option>
89 </param>
90 <param name="param_highest_intensity_peak_mz_tolerance" type="float" value="0.0" label="The precursor mass tolerance to find the highest intensity MS1 peak (Da)" help="(-mz_tolerance) Suggested value 1/max. expected charge. (Disable method by setting value to 0.0)"/>
91 <expand macro="advanced_options">
92 <param name="param_force" display="radio" type="boolean" truevalue="-force" falsevalue="" checked="false" optional="True" label="Overwrite tool specific checks" help="(-force) "/>
93 <param name="param_feature_max_trace" type="integer" value="2" label="Maximum isotopic trace considered in matching a precursor to a feature" help="(-max_trace) "/>
94 </expand>
95 </inputs> 106 </inputs>
96 <outputs> 107 <outputs>
97 <data name="param_out" format="mzml"/> 108 <data name="out" label="${tool.name} on ${on_string}: out" format="mzml"/>
98 <data name="param_out_csv" format="tabular"/> 109 <data name="out_csv" label="${tool.name} on ${on_string}: out_csv" format="csv">
110 <filter>OPTIONAL_OUTPUTS is not None and "out_csv_FLAG" in OPTIONAL_OUTPUTS</filter>
111 </data>
112 <data name="ctd_out" format="xml" label="${tool.name} on ${on_string}: ctd">
113 <filter>OPTIONAL_OUTPUTS is not None and "ctd_out_FLAG" in OPTIONAL_OUTPUTS</filter>
114 </data>
99 </outputs> 115 </outputs>
100 <help>Corrects the precursor mass and charge determined by the instrument software. 116 <tests>
117 <expand macro="autotest_HighResPrecursorMassCorrector"/>
118 <expand macro="manutest_HighResPrecursorMassCorrector"/>
119 </tests>
120 <help><![CDATA[Corrects the precursor mass and charge determined by the instrument software.
101 121
102 122
103 For more information, visit https://abibuilder.informatik.uni-tuebingen.de/archive/openms/Documentation/release/2.3.0/html/TOPP_HighResPrecursorMassCorrector.html</help> 123 For more information, visit http://www.openms.de/documentation/TOPP_HighResPrecursorMassCorrector.html]]></help>
124 <expand macro="references"/>
104 </tool> 125 </tool>