comparison MetaboliteAdductDecharger.xml @ 8:7e7e6a5b9c01 draft default tip

planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 3d1e5f37fd16524a415f707772eeb7ead848c5e3
author galaxyp
date Thu, 01 Dec 2022 19:11:25 +0000
parents ebc51eae71cd
children
comparison
equal deleted inserted replaced
7:aa59a8d5dbb5 8:7e7e6a5b9c01
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: [Utilities]--> 3 <!--Proposed Tool Section: [Utilities]-->
4 <tool id="MetaboliteAdductDecharger" name="MetaboliteAdductDecharger" version="@TOOL_VERSION@+galaxy@GALAXY_VERSION@" profile="20.05"> 4 <tool id="MetaboliteAdductDecharger" name="MetaboliteAdductDecharger" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="21.05">
5 <description>Decharges and merges different feature charge variants of the same metabolite.</description> 5 <description>Decharges and merges different feature charge variants of the same metabolite.</description>
6 <macros> 6 <macros>
7 <token name="@EXECUTABLE@">MetaboliteAdductDecharger</token> 7 <token name="@EXECUTABLE@">MetaboliteAdductDecharger</token>
8 <import>macros.xml</import> 8 <import>macros.xml</import>
9 <import>macros_autotest.xml</import>
10 <import>macros_test.xml</import>
11 </macros> 9 </macros>
12 <expand macro="requirements"/> 10 <expand macro="requirements"/>
13 <expand macro="stdio"/> 11 <expand macro="stdio"/>
14 <command detect_errors="exit_code"><![CDATA[@QUOTE_FOO@ 12 <command detect_errors="exit_code"><![CDATA[@QUOTE_FOO@
15 @EXT_FOO@ 13 @EXT_FOO@
68 <configfiles> 66 <configfiles>
69 <inputs name="args_json" data_style="paths"/> 67 <inputs name="args_json" data_style="paths"/>
70 <configfile name="hardcoded_json"><![CDATA[{"log": "log.txt", "threads": "\${GALAXY_SLOTS:-1}", "no_progress": true}]]></configfile> 68 <configfile name="hardcoded_json"><![CDATA[{"log": "log.txt", "threads": "\${GALAXY_SLOTS:-1}", "no_progress": true}]]></configfile>
71 </configfiles> 69 </configfiles>
72 <inputs> 70 <inputs>
73 <param name="in" argument="-in" type="data" format="featurexml" optional="false" label="input file" help=" select featurexml data sets(s)"/> 71 <param argument="-in" type="data" format="featurexml" optional="false" label="input file" help=" select featurexml data sets(s)"/>
74 <section name="algorithm" title="Feature decharging algorithm section" help="" expanded="false"> 72 <section name="algorithm" title="Feature decharging algorithm section" help="" expanded="false">
75 <section name="MetaboliteFeatureDeconvolution" title="" help="" expanded="false"> 73 <section name="MetaboliteFeatureDeconvolution" title="" help="" expanded="false">
76 <param name="charge_min" argument="-algorithm:MetaboliteFeatureDeconvolution:charge_min" type="integer" optional="true" value="1" label="Minimal possible charge" help=""/> 74 <param name="charge_min" argument="-algorithm:MetaboliteFeatureDeconvolution:charge_min" type="integer" optional="true" value="1" label="Minimal possible charge" help=""/>
77 <param name="charge_max" argument="-algorithm:MetaboliteFeatureDeconvolution:charge_max" type="integer" optional="true" value="3" label="Maximal possible charge" help=""/> 75 <param name="charge_max" argument="-algorithm:MetaboliteFeatureDeconvolution:charge_max" type="integer" optional="true" value="3" label="Maximal possible charge" help=""/>
78 <param name="charge_span_max" argument="-algorithm:MetaboliteFeatureDeconvolution:charge_span_max" type="integer" optional="true" min="1" value="3" label="Maximal range of charges for a single analyte" help="i.e. observing q1=[5,6,7] implies span=3. Setting this to 1 will only find adduct variants of the same charge"/> 76 <param name="charge_span_max" argument="-algorithm:MetaboliteFeatureDeconvolution:charge_span_max" type="integer" optional="true" min="1" value="3" label="Maximal range of charges for a single analyte" help="i.e. observing q1=[5,6,7] implies span=3. Setting this to 1 will only find adduct variants of the same charge"/>
79 <param name="q_try" argument="-algorithm:MetaboliteFeatureDeconvolution:q_try" display="radio" type="select" optional="false" label="Try different values of charge for each feature according to the above settings ('heuristic' [does not test all charges, just the likely ones] or 'all' ), or leave feature charge untouched ('feature')" help=""> 77 <param name="q_try" argument="-algorithm:MetaboliteFeatureDeconvolution:q_try" type="select" optional="true" label="Try different values of charge for each feature according to the above settings ('heuristic' [does not test all charges, just the likely ones] or 'all' ), or leave feature charge untouched ('feature')" help="">
80 <option value="feature" selected="true">feature</option> 78 <option value="feature" selected="true">feature</option>
81 <option value="heuristic">heuristic</option> 79 <option value="heuristic">heuristic</option>
82 <option value="all">all</option> 80 <option value="all">all</option>
83 <expand macro="list_string_san"/> 81 <expand macro="list_string_san" name="q_try"/>
84 </param> 82 </param>
85 <param name="retention_max_diff" argument="-algorithm:MetaboliteFeatureDeconvolution:retention_max_diff" type="float" optional="true" value="1.0" label="Maximum allowed RT difference between any two features if their relation shall be determined" help=""/> 83 <param name="retention_max_diff" argument="-algorithm:MetaboliteFeatureDeconvolution:retention_max_diff" type="float" optional="true" value="1.0" label="Maximum allowed RT difference between any two features if their relation shall be determined" help=""/>
86 <param name="retention_max_diff_local" argument="-algorithm:MetaboliteFeatureDeconvolution:retention_max_diff_local" type="float" optional="true" value="1.0" label="Maximum allowed RT difference between between two co-features, after adduct shifts have been accounted for (if you do not have any adduct shifts, this value should be equal to 'retention_max_diff', otherwise it should be smaller!)" help=""/> 84 <param name="retention_max_diff_local" argument="-algorithm:MetaboliteFeatureDeconvolution:retention_max_diff_local" type="float" optional="true" value="1.0" label="Maximum allowed RT difference between between two co-features, after adduct shifts have been accounted for (if you do not have any adduct shifts, this value should be equal to 'retention_max_diff', otherwise it should be smaller!)" help=""/>
87 <param name="mass_max_diff" argument="-algorithm:MetaboliteFeatureDeconvolution:mass_max_diff" type="float" optional="true" min="0.0" value="0.05" label="Maximum allowed mass tolerance per feature" help="Defines a symmetric tolerance window around the feature. When looking at possible feature pairs, the allowed feature-wise errors are combined for consideration of possible adduct shifts. For ppm tolerances, each window is based on the respective observed feature mz (instead of putative experimental mzs causing the observed one)!"/> 85 <param name="mass_max_diff" argument="-algorithm:MetaboliteFeatureDeconvolution:mass_max_diff" type="float" optional="true" min="0.0" value="0.05" label="Maximum allowed mass tolerance per feature" help="Defines a symmetric tolerance window around the feature. When looking at possible feature pairs, the allowed feature-wise errors are combined for consideration of possible adduct shifts. For ppm tolerances, each window is based on the respective observed feature mz (instead of putative experimental mzs causing the observed one)!"/>
88 <param name="unit" argument="-algorithm:MetaboliteFeatureDeconvolution:unit" display="radio" type="select" optional="false" label="Unit of the 'max_difference' paramete" help=""> 86 <param name="unit" argument="-algorithm:MetaboliteFeatureDeconvolution:unit" type="select" optional="true" label="Unit of the 'max_difference' paramete" help="">
89 <option value="Da" selected="true">Da</option> 87 <option value="Da" selected="true">Da</option>
90 <option value="ppm">ppm</option> 88 <option value="ppm">ppm</option>
91 <expand macro="list_string_san"/> 89 <expand macro="list_string_san" name="unit"/>
92 </param> 90 </param>
93 <param name="potential_adducts" argument="-algorithm:MetaboliteFeatureDeconvolution:potential_adducts" type="text" optional="true" value="H:+:0.4 Na:+:0.25 NH4:+:0.25 K:+:0.1 H-2O-1:0:0.05" label="Adducts used to explain mass differences in format: 'Elements:Charge(+/-/0):Probability[:RTShift[:Label]]'" help="i.e. the number of '+' or '-' indicate the charge ('0' if neutral adduct), e.g. 'Ca:++:0.5' indicates +2. Probabilites have to be in (0,1]. The optional RTShift param indicates the expected RT shift caused by this adduct, e.g. '(2)H4H-4:0:1:-3' indicates a 4 deuterium label, which causes early elution by 3 seconds. As fifth parameter you can add a label for every feature with this adduct. This also determines the map number in the consensus file. Adduct element losses are written in the form 'H-2'. All provided adducts need to have the same charge sign or be neutral! Mixing of adducts with different charge directions is only allowed as neutral complexes. For example, 'H-1Na:0:0.05' can be used to model Sodium gains (with balancing deprotonation) in negative mode (space separated list, in order to allow for spaces in list items surround them by single quotes)"> 91 <param name="potential_adducts" argument="-algorithm:MetaboliteFeatureDeconvolution:potential_adducts" type="text" optional="true" value="H:+:0.4 Na:+:0.25 NH4:+:0.25 K:+:0.1 H-2O-1:0:0.05" label="Adducts used to explain mass differences in format: 'Elements:Charge(+/-/0):Probability[:RTShift[:Label]]'" help="i.e. the number of '+' or '-' indicate the charge ('0' if neutral adduct), e.g. 'Ca:++:0.5' indicates +2. Probabilites have to be in (0,1]. The optional RTShift param indicates the expected RT shift caused by this adduct, e.g. '(2)H4H-4:0:1:-3' indicates a 4 deuterium label, which causes early elution by 3 seconds. As fifth parameter you can add a label for every feature with this adduct. This also determines the map number in the consensus file. Adduct element losses are written in the form 'H-2'. All provided adducts need to have the same charge sign or be neutral! Mixing of adducts with different charge directions is only allowed as neutral complexes. For example, 'H-1Na:0:0.05' can be used to model Sodium gains (with balancing deprotonation) in negative mode (space separated list, in order to allow for spaces in list items surround them by single quotes)">
94 <expand macro="list_string_val"/> 92 <expand macro="list_string_val" name="potential_adducts"/>
95 <expand macro="list_string_san"/> 93 <expand macro="list_string_san" name="potential_adducts"/>
96 </param> 94 </param>
97 <param name="max_neutrals" argument="-algorithm:MetaboliteFeatureDeconvolution:max_neutrals" type="integer" optional="true" value="1" label="Maximal number of neutral adducts(q=0) allowed" help="Add them in the 'potential_adducts' section!"/> 95 <param name="max_neutrals" argument="-algorithm:MetaboliteFeatureDeconvolution:max_neutrals" type="integer" optional="true" value="1" label="Maximal number of neutral adducts(q=0) allowed" help="Add them in the 'potential_adducts' section!"/>
98 <param name="use_minority_bound" argument="-algorithm:MetaboliteFeatureDeconvolution:use_minority_bound" type="text" optional="true" value="true" label="Prune the considered adduct transitions by transition probabilities" help=""> 96 <param name="use_minority_bound" argument="-algorithm:MetaboliteFeatureDeconvolution:use_minority_bound" type="boolean" truevalue="true" falsevalue="false" checked="true" label="Prune the considered adduct transitions by transition probabilities" help=""/>
99 <expand macro="list_string_san"/>
100 </param>
101 <param name="max_minority_bound" argument="-algorithm:MetaboliteFeatureDeconvolution:max_minority_bound" type="integer" optional="true" min="0" value="3" label="Limits allowed adduct compositions and changes between compositions in the underlying graph optimization problem by introducing a probability-based threshold: the minority bound sets the maximum count of the least probable adduct (according to 'potential_adducts' param) within a charge variant with maximum charge only containing the most likely adduct otherwise" help="E.g., for 'charge_max' 4 and 'max_minority_bound' 2 with most probable adduct being H+ and least probable adduct being Na+, this will allow adduct compositions of '2(H+),2(Na+)' but not of '1(H+),3(Na+)'. Further, adduct compositions/changes less likely than '2(H+),2(Na+)' will be discarded as well"/> 97 <param name="max_minority_bound" argument="-algorithm:MetaboliteFeatureDeconvolution:max_minority_bound" type="integer" optional="true" min="0" value="3" label="Limits allowed adduct compositions and changes between compositions in the underlying graph optimization problem by introducing a probability-based threshold: the minority bound sets the maximum count of the least probable adduct (according to 'potential_adducts' param) within a charge variant with maximum charge only containing the most likely adduct otherwise" help="E.g., for 'charge_max' 4 and 'max_minority_bound' 2 with most probable adduct being H+ and least probable adduct being Na+, this will allow adduct compositions of '2(H+),2(Na+)' but not of '1(H+),3(Na+)'. Further, adduct compositions/changes less likely than '2(H+),2(Na+)' will be discarded as well"/>
102 <param name="min_rt_overlap" argument="-algorithm:MetaboliteFeatureDeconvolution:min_rt_overlap" type="float" optional="true" min="0.0" max="1.0" value="0.66" label="Minimum overlap of the convex hull' RT intersection measured against the union from two features (if CHs are given)" help=""/> 98 <param name="min_rt_overlap" argument="-algorithm:MetaboliteFeatureDeconvolution:min_rt_overlap" type="float" optional="true" min="0.0" max="1.0" value="0.66" label="Minimum overlap of the convex hull' RT intersection measured against the union from two features (if CHs are given)" help=""/>
103 <param name="intensity_filter" argument="-algorithm:MetaboliteFeatureDeconvolution:intensity_filter" type="boolean" truevalue="true" falsevalue="false" checked="false" label="Enable the intensity filter, which will only allow edges between two equally charged features if the intensity of the feature with less likely adducts is smaller than that of the other feature" help="It is not used for features of different charge"/> 99 <param name="intensity_filter" argument="-algorithm:MetaboliteFeatureDeconvolution:intensity_filter" type="boolean" truevalue="true" falsevalue="false" checked="false" label="Enable the intensity filter, which will only allow edges between two equally charged features if the intensity of the feature with less likely adducts is smaller than that of the other feature" help="It is not used for features of different charge"/>
104 <param name="negative_mode" argument="-algorithm:MetaboliteFeatureDeconvolution:negative_mode" type="text" optional="true" value="false" label="Enable negative ionization mode" help=""> 100 <param name="negative_mode" argument="-algorithm:MetaboliteFeatureDeconvolution:negative_mode" type="boolean" truevalue="true" falsevalue="false" checked="false" label="Enable negative ionization mode" help=""/>
105 <expand macro="list_string_san"/>
106 </param>
107 <param name="default_map_label" argument="-algorithm:MetaboliteFeatureDeconvolution:default_map_label" type="text" optional="true" value="decharged features" label="Label of map in output consensus file where all features are put by default" help=""> 101 <param name="default_map_label" argument="-algorithm:MetaboliteFeatureDeconvolution:default_map_label" type="text" optional="true" value="decharged features" label="Label of map in output consensus file where all features are put by default" help="">
108 <expand macro="list_string_san"/> 102 <expand macro="list_string_san" name="default_map_label"/>
109 </param> 103 </param>
110 <param name="verbose_level" argument="-algorithm:MetaboliteFeatureDeconvolution:verbose_level" type="integer" optional="true" min="0" max="3" value="0" label="Amount of debug information given during processing" help=""/> 104 <param name="verbose_level" argument="-algorithm:MetaboliteFeatureDeconvolution:verbose_level" type="integer" optional="true" min="0" max="3" value="0" label="Amount of debug information given during processing" help=""/>
111 </section> 105 </section>
112 </section> 106 </section>
113 <expand macro="adv_opts_macro"> 107 <expand macro="adv_opts_macro">
114 <param name="force" argument="-force" type="boolean" truevalue="true" falsevalue="false" checked="false" label="Overrides tool-specific checks" help=""/> 108 <param argument="-force" type="boolean" truevalue="true" falsevalue="false" checked="false" label="Overrides tool-specific checks" help=""/>
115 <param name="test" argument="-test" type="hidden" optional="true" value="False" label="Enables the test mode (needed for internal use only)" help=""> 109 <param argument="-test" type="hidden" optional="true" value="False" label="Enables the test mode (needed for internal use only)" help="">
116 <expand macro="list_string_san"/> 110 <expand macro="list_string_san" name="test"/>
117 </param> 111 </param>
118 </expand> 112 </expand>
119 <param name="OPTIONAL_OUTPUTS" type="select" optional="true" multiple="true" label="Optional outputs"> 113 <param name="OPTIONAL_OUTPUTS" type="select" optional="true" multiple="true" label="Optional outputs">
120 <option value="out_cm_FLAG">out_cm (output consensus map)</option> 114 <option value="out_cm_FLAG">out_cm (output consensus map)</option>
121 <option value="out_fm_FLAG">out_fm (output feature map)</option> 115 <option value="out_fm_FLAG">out_fm (output feature map)</option>
138 </data> 132 </data>
139 <data name="ctd_out" format="xml" label="${tool.name} on ${on_string}: ctd"> 133 <data name="ctd_out" format="xml" label="${tool.name} on ${on_string}: ctd">
140 <filter>OPTIONAL_OUTPUTS is not None and "ctd_out_FLAG" in OPTIONAL_OUTPUTS</filter> 134 <filter>OPTIONAL_OUTPUTS is not None and "ctd_out_FLAG" in OPTIONAL_OUTPUTS</filter>
141 </data> 135 </data>
142 </outputs> 136 </outputs>
143 <tests> 137 <tests><!-- TOPP_MetaboliteAdductDecharger_1 -->
144 <expand macro="autotest_MetaboliteAdductDecharger"/> 138 <test expect_num_outputs="2">
145 <expand macro="manutest_MetaboliteAdductDecharger"/> 139 <section name="adv_opts">
140 <param name="force" value="false"/>
141 <param name="test" value="true"/>
142 </section>
143 <param name="in" value="MetaboliteAdductDecharger_input.featureXML"/>
144 <output name="out_fm" file="MetaboliteAdductDecharger_1_output.featureXML" compare="sim_size" delta_frac="0.7" ftype="featurexml"/>
145 <section name="algorithm">
146 <section name="MetaboliteFeatureDeconvolution">
147 <param name="charge_min" value="1"/>
148 <param name="charge_max" value="3"/>
149 <param name="charge_span_max" value="3"/>
150 <param name="q_try" value="feature"/>
151 <param name="retention_max_diff" value="1.0"/>
152 <param name="retention_max_diff_local" value="1.0"/>
153 <param name="mass_max_diff" value="0.05"/>
154 <param name="unit" value="Da"/>
155 <param name="potential_adducts" value="&quot;H:+:0.4&quot; &quot;Na:+:0.25&quot; &quot;NH4:+:0.25&quot; &quot;K:+:0.1&quot; &quot;H-2O-1:0:0.05&quot;"/>
156 <param name="max_neutrals" value="1"/>
157 <param name="use_minority_bound" value="true"/>
158 <param name="max_minority_bound" value="3"/>
159 <param name="min_rt_overlap" value="0.66"/>
160 <param name="intensity_filter" value="false"/>
161 <param name="negative_mode" value="false"/>
162 <param name="default_map_label" value="decharged features"/>
163 <param name="verbose_level" value="0"/>
164 </section>
165 </section>
166 <param name="OPTIONAL_OUTPUTS" value="ctd_out_FLAG,out_fm_FLAG"/>
167 <output name="ctd_out" ftype="xml">
168 <assert_contents>
169 <is_valid_xml/>
170 </assert_contents>
171 </output>
172 </test>
173 <!-- TOPP_MetaboliteAdductDecharger_2 -->
174 <test expect_num_outputs="3">
175 <section name="adv_opts">
176 <param name="force" value="false"/>
177 <param name="test" value="true"/>
178 </section>
179 <param name="in" value="MetaboliteAdductDecharger_input.featureXML"/>
180 <output name="out_cm" file="MetaboliteAdductDecharger_2_output_1.consensusXML" compare="sim_size" delta_frac="0.7" ftype="consensusxml"/>
181 <output name="outpairs" file="MetaboliteAdductDecharger_2_output_2.consensusXML" compare="sim_size" delta_frac="0.7" ftype="consensusxml"/>
182 <section name="algorithm">
183 <section name="MetaboliteFeatureDeconvolution">
184 <param name="charge_min" value="1"/>
185 <param name="charge_max" value="3"/>
186 <param name="charge_span_max" value="3"/>
187 <param name="q_try" value="feature"/>
188 <param name="retention_max_diff" value="1.0"/>
189 <param name="retention_max_diff_local" value="1.0"/>
190 <param name="mass_max_diff" value="0.05"/>
191 <param name="unit" value="Da"/>
192 <param name="potential_adducts" value="&quot;H:+:0.4&quot; &quot;Na:+:0.25&quot; &quot;NH4:+:0.25&quot; &quot;K:+:0.1&quot; &quot;H-2O-1:0:0.05&quot;"/>
193 <param name="max_neutrals" value="1"/>
194 <param name="use_minority_bound" value="true"/>
195 <param name="max_minority_bound" value="3"/>
196 <param name="min_rt_overlap" value="0.66"/>
197 <param name="intensity_filter" value="false"/>
198 <param name="negative_mode" value="false"/>
199 <param name="default_map_label" value="decharged features"/>
200 <param name="verbose_level" value="0"/>
201 </section>
202 </section>
203 <param name="OPTIONAL_OUTPUTS" value="ctd_out_FLAG,out_cm_FLAG,outpairs_FLAG"/>
204 <output name="ctd_out" ftype="xml">
205 <assert_contents>
206 <is_valid_xml/>
207 </assert_contents>
208 </output>
209 </test>
146 </tests> 210 </tests>
147 <help><![CDATA[Decharges and merges different feature charge variants of the same metabolite. 211 <help><![CDATA[Decharges and merges different feature charge variants of the same metabolite.
148 212
149 213
150 For more information, visit http://www.openms.de/doxygen/release/2.6.0/html/UTILS_MetaboliteAdductDecharger.html]]></help> 214 For more information, visit http://www.openms.de/doxygen/release/2.8.0/html/UTILS_MetaboliteAdductDecharger.html]]></help>
151 <expand macro="references"/> 215 <expand macro="references"/>
152 </tool> 216 </tool>