comparison IDMapper.xml @ 16:ea02403ff738 draft default tip

planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 5c080b1e2b99f1c88f4557e9fec8c45c9d23b906
author galaxyp
date Fri, 14 Jun 2024 21:39:26 +0000
parents adca857b4884
children
comparison
equal deleted inserted replaced
15:adca857b4884 16:ea02403ff738
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.--> 1 <!--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: [ID Processing]--> 2 <!--Proposed Tool Section: [Identification Processing]-->
4 <tool id="IDMapper" name="IDMapper" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="21.05"> 3 <tool id="IDMapper" name="IDMapper" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="21.05">
5 <description>Assigns protein/peptide identifications to features or consensus features.</description> 4 <description>Assigns protein/peptide identifications to features or consensus features</description>
6 <macros> 5 <macros>
7 <token name="@EXECUTABLE@">IDMapper</token> 6 <token name="@EXECUTABLE@">IDMapper</token>
8 <import>macros.xml</import> 7 <import>macros.xml</import>
9 </macros> 8 </macros>
10 <expand macro="requirements"/> 9 <expand macro="requirements"/>
13 @EXT_FOO@ 12 @EXT_FOO@
14 #import re 13 #import re
15 14
16 ## Preprocessing 15 ## Preprocessing
17 mkdir id && 16 mkdir id &&
18 ln -s '$id' 'id/${re.sub("[^\w\-_]", "_", $id.element_identifier)}.$gxy2omsext($id.ext)' && 17 cp '$id' 'id/${re.sub("[^\w\-_]", "_", $id.element_identifier)}.$gxy2omsext($id.ext)' &&
19 mkdir in && 18 mkdir in &&
20 ln -s '$in' 'in/${re.sub("[^\w\-_]", "_", $in.element_identifier)}.$gxy2omsext($in.ext)' && 19 cp '$in' 'in/${re.sub("[^\w\-_]", "_", $in.element_identifier)}.$gxy2omsext($in.ext)' &&
21 mkdir out && 20 mkdir out &&
22 #if $spectra._in: 21 #if $spectra._in:
23 mkdir spectra.in && 22 mkdir spectra.in &&
24 ln -s '$spectra._in' 'spectra.in/${re.sub("[^\w\-_]", "_", $spectra._in.element_identifier)}.$gxy2omsext($spectra._in.ext)' && 23 cp '$spectra._in' 'spectra.in/${re.sub("[^\w\-_]", "_", $spectra._in.element_identifier)}.$gxy2omsext($spectra._in.ext)' &&
25 #end if 24 #end if
26 25
27 ## Main program call 26 ## Main program call
28 27
29 set -o pipefail && 28 set -o pipefail &&
49 <configfiles> 48 <configfiles>
50 <inputs name="args_json" data_style="paths"/> 49 <inputs name="args_json" data_style="paths"/>
51 <configfile name="hardcoded_json"><![CDATA[{"log": "log.txt", "threads": "\${GALAXY_SLOTS:-1}", "no_progress": true}]]></configfile> 50 <configfile name="hardcoded_json"><![CDATA[{"log": "log.txt", "threads": "\${GALAXY_SLOTS:-1}", "no_progress": true}]]></configfile>
52 </configfiles> 51 </configfiles>
53 <inputs> 52 <inputs>
54 <param argument="-id" type="data" format="idxml,mzid" optional="false" label="Protein/peptide identifications file" help=" select idxml,mzid data sets(s)"/> 53 <param argument="-id" type="data" format="idxml,mzid" label="Protein/peptide identifications file" help=" select idxml,mzid data sets(s)"/>
55 <param argument="-in" type="data" format="consensusxml,featurexml,mzq" optional="false" label="Feature map/consensus map file" help=" select consensusxml,featurexml,mzq data sets(s)"/> 54 <param argument="-in" type="data" format="consensusxml,featurexml,mzq" label="Feature map/consensus map file" help=" select consensusxml,featurexml,mzq data sets(s)"/>
56 <param argument="-rt_tolerance" type="float" optional="true" min="0.0" value="5.0" label="RT tolerance (in seconds) for the matching of peptide identifications and (consensus) features" help="Tolerance is understood as 'plus or minus x', so the matching range increases by twice the given value"/> 55 <param argument="-rt_tolerance" type="float" min="0.0" value="5.0" label="RT tolerance (in seconds) for the matching of peptide identifications and (consensus) features" help="Tolerance is understood as 'plus or minus x', so the matching range increases by twice the given value"/>
57 <param argument="-mz_tolerance" type="float" optional="true" min="0.0" value="20.0" label="m/z tolerance (in ppm or Da) for the matching of peptide identifications and (consensus) features" help="Tolerance is understood as 'plus or minus x', so the matching range increases by twice the given value"/> 56 <param argument="-mz_tolerance" type="float" min="0.0" value="20.0" label="m/z tolerance (in ppm or Da) for the matching of peptide identifications and (consensus) features" help="Tolerance is understood as 'plus or minus x', so the matching range increases by twice the given value"/>
58 <param argument="-mz_measure" type="select" optional="true" label="Unit of 'mz_tolerance'" help=""> 57 <param argument="-mz_measure" type="select" label="Unit of 'mz_tolerance'" help="">
59 <option value="ppm" selected="true">ppm</option> 58 <option value="ppm" selected="true">ppm</option>
60 <option value="Da">Da</option> 59 <option value="Da">Da</option>
61 <expand macro="list_string_san" name="mz_measure"/> 60 <expand macro="list_string_san" name="mz_measure"/>
62 </param> 61 </param>
63 <param argument="-mz_reference" type="select" optional="true" label="Source of m/z values for peptide identifications" help="If 'precursor', the precursor-m/z from the idXML is used. If 'peptide',. masses are computed from the sequences of peptide hits; in this case, an identification matches if any of its hits matches.. ('peptide' should be used together with 'feature:use_centroid_mz' to avoid false-positive matches.)"> 62 <param argument="-mz_reference" type="select" label="Source of m/z values for peptide identifications" help="If 'precursor', the precursor-m/z from the idXML is used. If 'peptide',. masses are computed from the sequences of peptide hits; in this case, an identification matches if any of its hits matches.. ('peptide' should be used together with 'feature:use_centroid_mz' to avoid false-positive matches.)">
64 <option value="precursor">precursor</option> 63 <option value="precursor">precursor</option>
65 <option value="peptide" selected="true">peptide</option> 64 <option value="peptide" selected="true">peptide</option>
66 <expand macro="list_string_san" name="mz_reference"/> 65 <expand macro="list_string_san" name="mz_reference"/>
67 </param> 66 </param>
68 <section name="feature" title="Additional options for featureXML input" help="" expanded="false"> 67 <section name="feature" title="Additional options for featureXML input" help="" expanded="false">
77 <param name="_in" argument="-spectra:_in" type="data" format="mzml" optional="true" label="MS run used to annotated unidentified spectra to features or consensus features" help=" select mzml data sets(s)"/> 76 <param name="_in" argument="-spectra:_in" type="data" format="mzml" optional="true" label="MS run used to annotated unidentified spectra to features or consensus features" help=" select mzml data sets(s)"/>
78 </section> 77 </section>
79 <expand macro="adv_opts_macro"> 78 <expand macro="adv_opts_macro">
80 <param argument="-ignore_charge" type="boolean" truevalue="true" falsevalue="false" checked="false" label="For feature/consensus maps: Assign an ID independently of whether its charge state matches that of the (consensus) feature" help=""/> 79 <param argument="-ignore_charge" type="boolean" truevalue="true" falsevalue="false" checked="false" label="For feature/consensus maps: Assign an ID independently of whether its charge state matches that of the (consensus) feature" help=""/>
81 <param argument="-force" type="boolean" truevalue="true" falsevalue="false" checked="false" label="Overrides tool-specific checks" help=""/> 80 <param argument="-force" type="boolean" truevalue="true" falsevalue="false" checked="false" label="Overrides tool-specific checks" help=""/>
82 <param argument="-test" type="hidden" optional="true" value="False" label="Enables the test mode (needed for internal use only)" help=""> 81 <param argument="-test" type="hidden" value="False" label="Enables the test mode (needed for internal use only)" help="" optional="true">
83 <expand macro="list_string_san" name="test"/> 82 <expand macro="list_string_san" name="test"/>
84 </param> 83 </param>
85 </expand> 84 </expand>
86 <param name="OPTIONAL_OUTPUTS" type="select" optional="true" multiple="true" label="Optional outputs"> 85 <param name="OPTIONAL_OUTPUTS" type="select" optional="true" multiple="true" label="Optional outputs">
87 <option value="ctd_out_FLAG">Output used ctd (ini) configuration file</option> 86 <option value="ctd_out_FLAG">Output used ctd (ini) configuration file</option>
91 <data name="out" label="${tool.name} on ${on_string}: out" format_source="in" metadata_source="in"/> 90 <data name="out" label="${tool.name} on ${on_string}: out" format_source="in" metadata_source="in"/>
92 <data name="ctd_out" format="xml" label="${tool.name} on ${on_string}: ctd"> 91 <data name="ctd_out" format="xml" label="${tool.name} on ${on_string}: ctd">
93 <filter>OPTIONAL_OUTPUTS is not None and "ctd_out_FLAG" in OPTIONAL_OUTPUTS</filter> 92 <filter>OPTIONAL_OUTPUTS is not None and "ctd_out_FLAG" in OPTIONAL_OUTPUTS</filter>
94 </data> 93 </data>
95 </outputs> 94 </outputs>
96 <tests><!-- TOPP_IDMapper_1 --> 95 <tests>
96 <!-- TOPP_IDMapper_1 -->
97 <test expect_num_outputs="2"> 97 <test expect_num_outputs="2">
98 <section name="adv_opts"> 98 <section name="adv_opts">
99 <param name="ignore_charge" value="true"/> 99 <param name="ignore_charge" value="true"/>
100 <param name="force" value="false"/> 100 <param name="force" value="false"/>
101 <param name="test" value="true"/> 101 <param name="test" value="true"/>
102 </section> 102 </section>
103 <param name="id" value="IDMapper_1_input.idXML"/> 103 <param name="id" value="IDMapper_1_input.idXML"/>
104 <param name="in" value="IDMapper_1_input.featureXML"/> 104 <param name="in" value="IDMapper_1_input.featureXML"/>
105 <output name="out" file="IDMapper_1_output.featureXML" compare="sim_size" delta_frac="0.7" ftype="featurexml"/> 105 <output name="out" value="IDMapper_1_output.featureXML" compare="sim_size" delta_frac="0.7" ftype="featurexml"/>
106 <param name="rt_tolerance" value="5.0"/> 106 <param name="rt_tolerance" value="5.0"/>
107 <param name="mz_tolerance" value="1.0"/> 107 <param name="mz_tolerance" value="1.0"/>
108 <param name="mz_measure" value="Da"/> 108 <param name="mz_measure" value="Da"/>
109 <param name="mz_reference" value="precursor"/> 109 <param name="mz_reference" value="precursor"/>
110 <section name="feature"> 110 <section name="feature">
120 <output name="ctd_out" ftype="xml"> 120 <output name="ctd_out" ftype="xml">
121 <assert_contents> 121 <assert_contents>
122 <is_valid_xml/> 122 <is_valid_xml/>
123 </assert_contents> 123 </assert_contents>
124 </output> 124 </output>
125 <assert_stdout>
126 <has_text_matching expression="@EXECUTABLE@ took .* \(wall\), .* \(CPU\), .* \(system\), .* \(user\)(; Peak Memory Usage: 32 MB)?."/>
127 </assert_stdout>
125 </test> 128 </test>
126 <!-- TOPP_IDMapper_2 --> 129 <!-- TOPP_IDMapper_2 -->
127 <test expect_num_outputs="2"> 130 <test expect_num_outputs="2">
128 <section name="adv_opts"> 131 <section name="adv_opts">
129 <param name="ignore_charge" value="false"/> 132 <param name="ignore_charge" value="false"/>
130 <param name="force" value="false"/> 133 <param name="force" value="false"/>
131 <param name="test" value="true"/> 134 <param name="test" value="true"/>
132 </section> 135 </section>
133 <param name="id" value="IDMapper_2_input.idXML"/> 136 <param name="id" value="IDMapper_2_input.idXML"/>
134 <param name="in" value="IDMapper_2_input.consensusXML"/> 137 <param name="in" value="IDMapper_2_input.consensusXML"/>
135 <output name="out" file="IDMapper_2_output.consensusXML" compare="sim_size" delta_frac="0.7" ftype="consensusxml"/> 138 <output name="out" value="IDMapper_2_output.consensusXML" compare="sim_size" delta_frac="0.7" ftype="consensusxml"/>
136 <param name="rt_tolerance" value="5.0"/> 139 <param name="rt_tolerance" value="5.0"/>
137 <param name="mz_tolerance" value="1.0"/> 140 <param name="mz_tolerance" value="1.0"/>
138 <param name="mz_measure" value="Da"/> 141 <param name="mz_measure" value="Da"/>
139 <param name="mz_reference" value="precursor"/> 142 <param name="mz_reference" value="precursor"/>
140 <section name="feature"> 143 <section name="feature">
150 <output name="ctd_out" ftype="xml"> 153 <output name="ctd_out" ftype="xml">
151 <assert_contents> 154 <assert_contents>
152 <is_valid_xml/> 155 <is_valid_xml/>
153 </assert_contents> 156 </assert_contents>
154 </output> 157 </output>
158 <assert_stdout>
159 <has_text_matching expression="@EXECUTABLE@ took .* \(wall\), .* \(CPU\), .* \(system\), .* \(user\)(; Peak Memory Usage: 32 MB)?."/>
160 </assert_stdout>
155 </test> 161 </test>
156 <!-- TOPP_IDMapper_3 --> 162 <!-- TOPP_IDMapper_3 -->
157 <test expect_num_outputs="2"> 163 <test expect_num_outputs="2">
158 <section name="adv_opts"> 164 <section name="adv_opts">
159 <param name="ignore_charge" value="true"/> 165 <param name="ignore_charge" value="true"/>
160 <param name="force" value="false"/> 166 <param name="force" value="false"/>
161 <param name="test" value="true"/> 167 <param name="test" value="true"/>
162 </section> 168 </section>
163 <param name="id" value="IDMapper_3_input.idXML"/> 169 <param name="id" value="IDMapper_3_input.idXML"/>
164 <param name="in" value="IDMapper_3_input.featureXML"/> 170 <param name="in" value="IDMapper_3_input.featureXML"/>
165 <output name="out" file="IDMapper_3_output.featureXML" compare="sim_size" delta_frac="0.7" ftype="featurexml"/> 171 <output name="out" value="IDMapper_3_output.featureXML" compare="sim_size" delta_frac="0.7" ftype="featurexml"/>
166 <param name="rt_tolerance" value="4.0"/> 172 <param name="rt_tolerance" value="4.0"/>
167 <param name="mz_tolerance" value="3.0"/> 173 <param name="mz_tolerance" value="3.0"/>
168 <param name="mz_measure" value="ppm"/> 174 <param name="mz_measure" value="ppm"/>
169 <param name="mz_reference" value="precursor"/> 175 <param name="mz_reference" value="precursor"/>
170 <section name="feature"> 176 <section name="feature">
180 <output name="ctd_out" ftype="xml"> 186 <output name="ctd_out" ftype="xml">
181 <assert_contents> 187 <assert_contents>
182 <is_valid_xml/> 188 <is_valid_xml/>
183 </assert_contents> 189 </assert_contents>
184 </output> 190 </output>
185 </test> 191 <assert_stdout>
186 <!-- TOPP_IDMapper_4 --> 192 <has_text_matching expression="@EXECUTABLE@ took .* \(wall\), .* \(CPU\), .* \(system\), .* \(user\)(; Peak Memory Usage: 32 MB)?."/>
187 <test expect_num_outputs="2"> 193 </assert_stdout>
188 <section name="adv_opts">
189 <param name="ignore_charge" value="false"/>
190 <param name="force" value="false"/>
191 <param name="test" value="true"/>
192 </section>
193 <param name="id" value="IDMapper_4_input.idXML"/>
194 <param name="in" value="IDMapper_4_input.featureXML"/>
195 <output name="out" file="IDMapper_4_output.featureXML" compare="sim_size" delta_frac="0.7" ftype="featurexml"/>
196 <param name="rt_tolerance" value="10.0"/>
197 <param name="mz_tolerance" value="20.0"/>
198 <param name="mz_measure" value="ppm"/>
199 <param name="mz_reference" value="peptide"/>
200 <section name="feature">
201 <param name="use_centroid_rt" value="false"/>
202 <param name="use_centroid_mz" value="true"/>
203 </section>
204 <section name="consensus">
205 <param name="use_subelements" value="false"/>
206 <param name="annotate_ids_with_subelements" value="false"/>
207 </section>
208 <section name="spectra">
209 <param name="_in" value="IDMapper_4_input.mzML"/>
210 </section>
211 <param name="OPTIONAL_OUTPUTS" value="ctd_out_FLAG"/>
212 <output name="ctd_out" ftype="xml">
213 <assert_contents>
214 <is_valid_xml/>
215 </assert_contents>
216 </output>
217 </test>
218 <!-- TOPP_IDMapper_5 -->
219 <test expect_num_outputs="2">
220 <section name="adv_opts">
221 <param name="ignore_charge" value="false"/>
222 <param name="force" value="false"/>
223 <param name="test" value="true"/>
224 </section>
225 <param name="id" value="IDMapper_5_input.idXML"/>
226 <param name="in" value="IDMapper_5_input.featureXML"/>
227 <output name="out" file="IDMapper_5_output.featureXML" compare="sim_size" delta_frac="0.7" ftype="featurexml"/>
228 <param name="rt_tolerance" value="20.0"/>
229 <param name="mz_tolerance" value="10.0"/>
230 <param name="mz_measure" value="ppm"/>
231 <param name="mz_reference" value="peptide"/>
232 <section name="feature">
233 <param name="use_centroid_rt" value="false"/>
234 <param name="use_centroid_mz" value="false"/>
235 </section>
236 <section name="consensus">
237 <param name="use_subelements" value="false"/>
238 <param name="annotate_ids_with_subelements" value="false"/>
239 </section>
240 <section name="spectra">
241 <param name="_in" value="IDMapper_5_input.mzML"/>
242 </section>
243 <param name="OPTIONAL_OUTPUTS" value="ctd_out_FLAG"/>
244 <output name="ctd_out" ftype="xml">
245 <assert_contents>
246 <is_valid_xml/>
247 </assert_contents>
248 </output>
249 </test> 194 </test>
250 </tests> 195 </tests>
251 <help><![CDATA[Assigns protein/peptide identifications to features or consensus features. 196 <help><![CDATA[Assigns protein/peptide identifications to features or consensus features.
252 197
253 198
254 For more information, visit http://www.openms.de/doxygen/release/2.8.0/html/TOPP_IDMapper.html]]></help> 199 For more information, visit https://openms.de/doxygen/release/3.1.0/html/TOPP_IDMapper.html]]></help>
255 <expand macro="references"/> 200 <expand macro="references"/>
256 </tool> 201 </tool>