comparison IDMassAccuracy.xml @ 16:0819fd9da302 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:31:46 +0000
parents 585f8235da7e
children
comparison
equal deleted inserted replaced
15:585f8235da7e 16:0819fd9da302
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: [Utilities]--> 2 <!--Proposed Tool Section: [Identification Processing]-->
4 <tool id="IDMassAccuracy" name="IDMassAccuracy" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="21.05"> 3 <tool id="IDMassAccuracy" name="IDMassAccuracy" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="21.05">
5 <description>Calculates a distribution of the mass error from given mass spectra and IDs.</description> 4 <description>Calculates a distribution of the mass error from given mass spectra and IDs</description>
6 <macros> 5 <macros>
7 <token name="@EXECUTABLE@">IDMassAccuracy</token> 6 <token name="@EXECUTABLE@">IDMassAccuracy</token>
8 <import>macros.xml</import> 7 <import>macros.xml</import>
9 </macros> 8 </macros>
10 <expand macro="requirements"/> 9 <expand macro="requirements"/>
15 14
16 ## Preprocessing 15 ## Preprocessing
17 mkdir in_cond.in && 16 mkdir in_cond.in &&
18 #if $in_cond.in_select == "no" 17 #if $in_cond.in_select == "no"
19 mkdir ${' '.join(["'in_cond.in/%s'" % (i) for i, f in enumerate($in_cond.in) if f])} && 18 mkdir ${' '.join(["'in_cond.in/%s'" % (i) for i, f in enumerate($in_cond.in) if f])} &&
20 ${' '.join(["ln -s '%s' 'in_cond.in/%s/%s.%s' && " % (f, i, re.sub('[^\w\-_]', '_', f.element_identifier), $gxy2omsext(f.ext)) for i, f in enumerate($in_cond.in) if f])} 19 ${' '.join(["cp '%s' 'in_cond.in/%s/%s.%s' && " % (f, i, re.sub('[^\w\-_]', '_', f.element_identifier), $gxy2omsext(f.ext)) for i, f in enumerate($in_cond.in) if f])}
21 #else 20 #else
22 ln -s '$in_cond.in' 'in_cond.in/${re.sub("[^\w\-_]", "_", $in_cond.in.element_identifier)}.$gxy2omsext($in_cond.in.ext)' && 21 cp '$in_cond.in' 'in_cond.in/${re.sub("[^\w\-_]", "_", $in_cond.in.element_identifier)}.$gxy2omsext($in_cond.in.ext)' &&
23 #end if 22 #end if
24 mkdir id_in_cond.id_in && 23 mkdir id_in_cond.id_in &&
25 #if $id_in_cond.id_in_select == "no" 24 #if $id_in_cond.id_in_select == "no"
26 mkdir ${' '.join(["'id_in_cond.id_in/%s'" % (i) for i, f in enumerate($id_in_cond.id_in) if f])} && 25 mkdir ${' '.join(["'id_in_cond.id_in/%s'" % (i) for i, f in enumerate($id_in_cond.id_in) if f])} &&
27 ${' '.join(["ln -s '%s' 'id_in_cond.id_in/%s/%s.%s' && " % (f, i, re.sub('[^\w\-_]', '_', f.element_identifier), $gxy2omsext(f.ext)) for i, f in enumerate($id_in_cond.id_in) if f])} 26 ${' '.join(["cp '%s' 'id_in_cond.id_in/%s/%s.%s' && " % (f, i, re.sub('[^\w\-_]', '_', f.element_identifier), $gxy2omsext(f.ext)) for i, f in enumerate($id_in_cond.id_in) if f])}
28 #else 27 #else
29 ln -s '$id_in_cond.id_in' 'id_in_cond.id_in/${re.sub("[^\w\-_]", "_", $id_in_cond.id_in.element_identifier)}.$gxy2omsext($id_in_cond.id_in.ext)' && 28 cp '$id_in_cond.id_in' 'id_in_cond.id_in/${re.sub("[^\w\-_]", "_", $id_in_cond.id_in.element_identifier)}.$gxy2omsext($id_in_cond.id_in.ext)' &&
30 #end if 29 #end if
31 #if "out_precursor_FLAG" in str($OPTIONAL_OUTPUTS).split(',') 30 #if "out_precursor_FLAG" in str($OPTIONAL_OUTPUTS).split(',')
32 mkdir out_precursor && 31 mkdir out_precursor &&
33 #end if 32 #end if
34 #if "out_fragment_FLAG" in str($OPTIONAL_OUTPUTS).split(',') 33 #if "out_fragment_FLAG" in str($OPTIONAL_OUTPUTS).split(',')
104 <param name="in_select" type="select" label="Run tool in batch mode for -in"> 103 <param name="in_select" type="select" label="Run tool in batch mode for -in">
105 <option value="no">No: process all datasets jointly</option> 104 <option value="no">No: process all datasets jointly</option>
106 <option value="yes">Yes: process each dataset in an independent job</option> 105 <option value="yes">Yes: process each dataset in an independent job</option>
107 </param> 106 </param>
108 <when value="no"> 107 <when value="no">
109 <param argument="-in" type="data" format="mzml" multiple="true" optional="false" label="Input mzML file list, containing the spectra" help=" select mzml data sets(s)"/> 108 <param argument="-in" type="data" format="mzml" multiple="true" label="Input mzML file list, containing the spectra" help=" select mzml data sets(s)"/>
110 </when> 109 </when>
111 <when value="yes"> 110 <when value="yes">
112 <param argument="-in" type="data" format="mzml" multiple="false" optional="false" label="Input mzML file list, containing the spectra" help=" select mzml data sets(s)"/> 111 <param argument="-in" type="data" format="mzml" label="Input mzML file list, containing the spectra" help=" select mzml data sets(s)"/>
113 </when> 112 </when>
114 </conditional> 113 </conditional>
115 <conditional name="id_in_cond"> 114 <conditional name="id_in_cond">
116 <param name="id_in_select" type="select" label="Run tool in batch mode for -id_in"> 115 <param name="id_in_select" type="select" label="Run tool in batch mode for -id_in">
117 <option value="no">No: process all datasets jointly</option> 116 <option value="no">No: process all datasets jointly</option>
118 <option value="yes">Yes: process each dataset in an independent job</option> 117 <option value="yes">Yes: process each dataset in an independent job</option>
119 </param> 118 </param>
120 <when value="no"> 119 <when value="no">
121 <param argument="-id_in" type="data" format="idxml" multiple="true" optional="false" label="Input idXML file list, containing the identifications" help=" select idxml data sets(s)"/> 120 <param argument="-id_in" type="data" format="idxml" multiple="true" label="Input idXML file list, containing the identifications" help=" select idxml data sets(s)"/>
122 </when> 121 </when>
123 <when value="yes"> 122 <when value="yes">
124 <param argument="-id_in" type="data" format="idxml" multiple="false" optional="false" label="Input idXML file list, containing the identifications" help=" select idxml data sets(s)"/> 123 <param argument="-id_in" type="data" format="idxml" label="Input idXML file list, containing the identifications" help=" select idxml data sets(s)"/>
125 </when> 124 </when>
126 </conditional> 125 </conditional>
127 <param argument="-precursor_error_ppm" type="boolean" truevalue="true" falsevalue="false" checked="false" label="If this flag is used, the precursor mass tolerances are estimated in ppm instead of Da" help=""/> 126 <param argument="-precursor_error_ppm" type="boolean" truevalue="true" falsevalue="false" checked="false" label="If this flag is used, the precursor mass tolerances are estimated in ppm instead of Da" help=""/>
128 <param argument="-fragment_error_ppm" type="boolean" truevalue="true" falsevalue="false" checked="false" label="If this flag is used, the fragment mass tolerances are estimated in ppm instead of Da" help=""/> 127 <param argument="-fragment_error_ppm" type="boolean" truevalue="true" falsevalue="false" checked="false" label="If this flag is used, the fragment mass tolerances are estimated in ppm instead of Da" help=""/>
129 <param argument="-fragment_mass_tolerance" type="float" optional="true" value="0.5" label="Maximal fragment mass tolerance which is allowed for MS/MS spectra, used for the calculation of matching ions" help=""/> 128 <param argument="-fragment_mass_tolerance" type="float" value="0.5" label="Maximal fragment mass tolerance which is allowed for MS/MS spectra, used for the calculation of matching ions" help=""/>
130 <expand macro="adv_opts_macro"> 129 <expand macro="adv_opts_macro">
131 <param argument="-number_of_bins" type="integer" optional="true" min="10" value="100" label="Number of bins that should be used to calculate the histograms for the fitting" help=""/> 130 <param argument="-number_of_bins" type="integer" min="10" value="100" label="Number of bins that should be used to calculate the histograms for the fitting" help=""/>
132 <param argument="-force" type="boolean" truevalue="true" falsevalue="false" checked="false" label="Overrides tool-specific checks" help=""/> 131 <param argument="-force" type="boolean" truevalue="true" falsevalue="false" checked="false" label="Overrides tool-specific checks" help=""/>
133 <param argument="-test" type="hidden" optional="true" value="False" label="Enables the test mode (needed for internal use only)" help=""> 132 <param argument="-test" type="hidden" value="False" label="Enables the test mode (needed for internal use only)" help="" optional="true">
134 <expand macro="list_string_san" name="test"/> 133 <expand macro="list_string_san" name="test"/>
135 </param> 134 </param>
136 </expand> 135 </expand>
137 <param name="OPTIONAL_OUTPUTS" type="select" optional="true" multiple="true" label="Optional outputs"> 136 <param name="OPTIONAL_OUTPUTS" type="select" optional="true" multiple="true" label="Optional outputs">
138 <option value="out_precursor_FLAG">out_precursor (Output file which contains the deviations from the precursors)</option> 137 <option value="out_precursor_FLAG">out_precursor (Output file which contains the deviations from the precursors)</option>
160 </data> 159 </data>
161 <data name="ctd_out" format="xml" label="${tool.name} on ${on_string}: ctd"> 160 <data name="ctd_out" format="xml" label="${tool.name} on ${on_string}: ctd">
162 <filter>OPTIONAL_OUTPUTS is not None and "ctd_out_FLAG" in OPTIONAL_OUTPUTS</filter> 161 <filter>OPTIONAL_OUTPUTS is not None and "ctd_out_FLAG" in OPTIONAL_OUTPUTS</filter>
163 </data> 162 </data>
164 </outputs> 163 </outputs>
165 <tests><!-- TOPP_IDMassAccuracy_1 --> 164 <tests>
165 <!-- TOPP_IDMassAccuracy_1 -->
166 <test expect_num_outputs="5"> 166 <test expect_num_outputs="5">
167 <section name="adv_opts"> 167 <section name="adv_opts">
168 <param name="number_of_bins" value="10"/> 168 <param name="number_of_bins" value="10"/>
169 <param name="force" value="false"/> 169 <param name="force" value="false"/>
170 <param name="test" value="true"/> 170 <param name="test" value="true"/>
173 <param name="in" value="spectra.mzML"/> 173 <param name="in" value="spectra.mzML"/>
174 </conditional> 174 </conditional>
175 <conditional name="id_in_cond"> 175 <conditional name="id_in_cond">
176 <param name="id_in" value="MSGFPlusAdapter_1_out.idXML"/> 176 <param name="id_in" value="MSGFPlusAdapter_1_out.idXML"/>
177 </conditional> 177 </conditional>
178 <output name="out_precursor" file="IDMassAccuracy_1_out_precursor.tsv" compare="sim_size" delta_frac="0.7" ftype="tabular"/> 178 <output name="out_precursor" value="IDMassAccuracy_1_out_precursor.tsv" compare="sim_size" delta_frac="0.7" ftype="tabular"/>
179 <param name="precursor_error_ppm" value="false"/> 179 <param name="precursor_error_ppm" value="false"/>
180 <output name="out_fragment" file="IDMassAccuracy_1_out_fragment.tsv" compare="sim_size" delta_frac="0.7" ftype="tabular"/> 180 <output name="out_fragment" value="IDMassAccuracy_1_out_fragment.tsv" compare="sim_size" delta_frac="0.7" ftype="tabular"/>
181 <param name="fragment_error_ppm" value="false"/> 181 <param name="fragment_error_ppm" value="false"/>
182 <param name="fragment_mass_tolerance" value="0.5"/> 182 <param name="fragment_mass_tolerance" value="0.5"/>
183 <output name="out_precursor_fit" file="IDMassAccuracy_1_out_precursor_fit.tsv" compare="sim_size" delta_frac="0.7" ftype="tabular"/> 183 <output name="out_precursor_fit" value="IDMassAccuracy_1_out_precursor_fit.tsv" compare="sim_size" delta_frac="0.7" ftype="tabular"/>
184 <output name="out_fragment_fit" file="IDMassAccuracy_1_out_fragment_fit.tsv" compare="sim_size" delta_frac="0.7" ftype="tabular"/> 184 <output name="out_fragment_fit" value="IDMassAccuracy_1_out_fragment_fit.tsv" compare="sim_size" delta_frac="0.7" ftype="tabular"/>
185 <param name="OPTIONAL_OUTPUTS" value="ctd_out_FLAG,out_precursor_FLAG,out_fragment_FLAG,out_precursor_fit_FLAG,out_fragment_fit_FLAG"/> 185 <param name="OPTIONAL_OUTPUTS" value="ctd_out_FLAG,out_precursor_FLAG,out_fragment_FLAG,out_precursor_fit_FLAG,out_fragment_fit_FLAG"/>
186 <output name="ctd_out" ftype="xml"> 186 <output name="ctd_out" ftype="xml">
187 <assert_contents> 187 <assert_contents>
188 <is_valid_xml/> 188 <is_valid_xml/>
189 </assert_contents> 189 </assert_contents>
190 </output> 190 </output>
191 <assert_stdout>
192 <has_text_matching expression="@EXECUTABLE@ took .* \(wall\), .* \(CPU\), .* \(system\), .* \(user\)(; Peak Memory Usage: 32 MB)?."/>
193 </assert_stdout>
191 </test> 194 </test>
192 </tests> 195 </tests>
193 <help><![CDATA[Calculates a distribution of the mass error from given mass spectra and IDs. 196 <help><![CDATA[Calculates a distribution of the mass error from given mass spectra and IDs.
194 197
195 198
196 For more information, visit http://www.openms.de/doxygen/release/2.8.0/html/UTILS_IDMassAccuracy.html]]></help> 199 For more information, visit https://openms.de/doxygen/release/3.1.0/html/TOPP_IDMassAccuracy.html]]></help>
197 <expand macro="references"/> 200 <expand macro="references"/>
198 </tool> 201 </tool>