comparison MetaboliteSpectralMatcher.xml @ 14:e46a9e72c395 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:08 +0000
parents 75ccdbc2475d
children
comparison
equal deleted inserted replaced
13:75ccdbc2475d 14:e46a9e72c395
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: [Metabolite Identification]-->
4 <tool id="MetaboliteSpectralMatcher" name="MetaboliteSpectralMatcher" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="21.05"> 3 <tool id="MetaboliteSpectralMatcher" name="MetaboliteSpectralMatcher" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="21.05">
5 <description>Perform a spectral library search.</description> 4 <description>Perform a spectral library search</description>
6 <macros> 5 <macros>
7 <token name="@EXECUTABLE@">MetaboliteSpectralMatcher</token> 6 <token name="@EXECUTABLE@">MetaboliteSpectralMatcher</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 in && 16 mkdir in &&
18 ln -s '$in' 'in/${re.sub("[^\w\-_]", "_", $in.element_identifier)}.$gxy2omsext($in.ext)' && 17 cp '$in' 'in/${re.sub("[^\w\-_]", "_", $in.element_identifier)}.$gxy2omsext($in.ext)' &&
19 mkdir database && 18 mkdir database &&
20 ln -s '$database' 'database/${re.sub("[^\w\-_]", "_", $database.element_identifier)}.$gxy2omsext($database.ext)' && 19 cp '$database' 'database/${re.sub("[^\w\-_]", "_", $database.element_identifier)}.$gxy2omsext($database.ext)' &&
21 mkdir out && 20 mkdir out &&
21 #if "out_spectra_FLAG" in str($OPTIONAL_OUTPUTS).split(',')
22 mkdir out_spectra &&
23 #end if
22 24
23 ## Main program call 25 ## Main program call
24 26
25 set -o pipefail && 27 set -o pipefail &&
26 @EXECUTABLE@ -write_ctd ./ && 28 @EXECUTABLE@ -write_ctd ./ &&
30 'in/${re.sub("[^\w\-_]", "_", $in.element_identifier)}.$gxy2omsext($in.ext)' 32 'in/${re.sub("[^\w\-_]", "_", $in.element_identifier)}.$gxy2omsext($in.ext)'
31 -database 33 -database
32 'database/${re.sub("[^\w\-_]", "_", $database.element_identifier)}.$gxy2omsext($database.ext)' 34 'database/${re.sub("[^\w\-_]", "_", $database.element_identifier)}.$gxy2omsext($database.ext)'
33 -out 35 -out
34 'out/output.${gxy2omsext("mztab")}' 36 'out/output.${gxy2omsext("mztab")}'
37 #if "out_spectra_FLAG" in str($OPTIONAL_OUTPUTS).split(',')
38 -out_spectra
39 'out_spectra/output.${gxy2omsext("mzml")}'
40 #end if
41 #if len(str($OPTIONAL_OUTPUTS).split(',')) == 0
42 | tee '$stdout'
43 #end if
35 44
36 ## Postprocessing 45 ## Postprocessing
37 && mv 'out/output.${gxy2omsext("mztab")}' '$out' 46 && mv 'out/output.${gxy2omsext("mztab")}' '$out'
47 #if "out_spectra_FLAG" in str($OPTIONAL_OUTPUTS).split(',')
48 && mv 'out_spectra/output.${gxy2omsext("mzml")}' '$out_spectra'
49 #end if
38 #if "ctd_out_FLAG" in $OPTIONAL_OUTPUTS 50 #if "ctd_out_FLAG" in $OPTIONAL_OUTPUTS
39 && mv '@EXECUTABLE@.ctd' '$ctd_out' 51 && mv '@EXECUTABLE@.ctd' '$ctd_out'
40 #end if]]></command> 52 #end if]]></command>
41 <configfiles> 53 <configfiles>
42 <inputs name="args_json" data_style="paths"/> 54 <inputs name="args_json" data_style="paths"/>
43 <configfile name="hardcoded_json"><![CDATA[{"log": "log.txt", "threads": "\${GALAXY_SLOTS:-1}", "no_progress": true}]]></configfile> 55 <configfile name="hardcoded_json"><![CDATA[{"log": "log.txt", "threads": "\${GALAXY_SLOTS:-1}", "no_progress": true}]]></configfile>
44 </configfiles> 56 </configfiles>
45 <inputs> 57 <inputs>
46 <param argument="-in" type="data" format="mzml" optional="false" label="Input spectra" help=" select mzml data sets(s)"/> 58 <param argument="-in" type="data" format="mzml" label="Input spectra" help=" select mzml data sets(s)"/>
47 <param argument="-database" type="data" format="mzml" optional="false" label="Default spectral database" help=" select mzml data sets(s)"/> 59 <param argument="-database" type="data" format="mgf,msp,mzml" label="Default spectral database" help=" select mgf,msp,mzml data sets(s)"/>
48 <section name="algorithm" title="Algorithm parameters section" help="" expanded="false"> 60 <section name="algorithm" title="Algorithm parameters section" help="" expanded="false">
49 <param name="prec_mass_error_value" argument="-algorithm:prec_mass_error_value" type="float" optional="true" value="100.0" label="Error allowed for precursor ion mass" help=""/> 61 <param name="prec_mass_error_value" argument="-algorithm:prec_mass_error_value" type="float" value="100.0" label="Error allowed for precursor ion mass" help=""/>
50 <param name="frag_mass_error_value" argument="-algorithm:frag_mass_error_value" type="float" optional="true" value="500.0" label="Error allowed for product ions" help=""/> 62 <param name="frag_mass_error_value" argument="-algorithm:frag_mass_error_value" type="float" value="500.0" label="Error allowed for product ions" help=""/>
51 <param name="mass_error_unit" argument="-algorithm:mass_error_unit" type="select" optional="true" label="Unit of mass error (ppm or Da)" help=""> 63 <param name="mass_error_unit" argument="-algorithm:mass_error_unit" type="select" label="Unit of mass error (ppm or Da)" help="">
52 <option value="ppm" selected="true">ppm</option> 64 <option value="ppm" selected="true">ppm</option>
53 <option value="Da">Da</option> 65 <option value="Da">Da</option>
54 <expand macro="list_string_san" name="mass_error_unit"/> 66 <expand macro="list_string_san" name="mass_error_unit"/>
55 </param> 67 </param>
56 <param name="report_mode" argument="-algorithm:report_mode" type="select" optional="true" label="Which results shall be reported: the top-three scoring ones or the best scoring one?" help=""> 68 <param name="report_mode" argument="-algorithm:report_mode" type="select" label="Which results shall be reported: the top-three scoring ones or the best scoring one?" help="">
57 <option value="top3" selected="true">top3</option> 69 <option value="top3" selected="true">top3</option>
58 <option value="best">best</option> 70 <option value="best">best</option>
59 <expand macro="list_string_san" name="report_mode"/> 71 <expand macro="list_string_san" name="report_mode"/>
60 </param> 72 </param>
61 <param name="ionization_mode" argument="-algorithm:ionization_mode" type="select" optional="true" label="Positive or negative ionization mode?" help=""> 73 <param name="ionization_mode" argument="-algorithm:ionization_mode" type="select" label="Positive or negative ionization mode?" help="">
62 <option value="positive" selected="true">positive</option> 74 <option value="positive" selected="true">positive</option>
63 <option value="negative">negative</option> 75 <option value="negative">negative</option>
64 <expand macro="list_string_san" name="ionization_mode"/> 76 <expand macro="list_string_san" name="ionization_mode"/>
65 </param> 77 </param>
78 <param name="merge_spectra" argument="-algorithm:merge_spectra" type="boolean" truevalue="true" falsevalue="false" checked="true" label="Merge MS2 spectra with the same precursor mass" help=""/>
66 </section> 79 </section>
67 <expand macro="adv_opts_macro"> 80 <expand macro="adv_opts_macro">
68 <param argument="-force" type="boolean" truevalue="true" falsevalue="false" checked="false" label="Overrides tool-specific checks" help=""/> 81 <param argument="-force" type="boolean" truevalue="true" falsevalue="false" checked="false" label="Overrides tool-specific checks" help=""/>
69 <param argument="-test" type="hidden" optional="true" value="False" label="Enables the test mode (needed for internal use only)" help=""> 82 <param argument="-test" type="hidden" value="False" label="Enables the test mode (needed for internal use only)" help="" optional="true">
70 <expand macro="list_string_san" name="test"/> 83 <expand macro="list_string_san" name="test"/>
71 </param> 84 </param>
72 </expand> 85 </expand>
73 <param name="OPTIONAL_OUTPUTS" type="select" optional="true" multiple="true" label="Optional outputs"> 86 <param name="OPTIONAL_OUTPUTS" type="select" optional="true" multiple="true" label="Optional outputs">
87 <option value="out_spectra_FLAG">out_spectra (Output spectra as mzML file)</option>
74 <option value="ctd_out_FLAG">Output used ctd (ini) configuration file</option> 88 <option value="ctd_out_FLAG">Output used ctd (ini) configuration file</option>
75 </param> 89 </param>
76 </inputs> 90 </inputs>
77 <outputs> 91 <outputs>
78 <data name="out" label="${tool.name} on ${on_string}: out" format="mztab"/> 92 <data name="out" label="${tool.name} on ${on_string}: out" format="mztab"/>
93 <data name="out_spectra" label="${tool.name} on ${on_string}: out_spectra" format="mzml">
94 <filter>OPTIONAL_OUTPUTS is not None and "out_spectra_FLAG" in OPTIONAL_OUTPUTS</filter>
95 </data>
79 <data name="ctd_out" format="xml" label="${tool.name} on ${on_string}: ctd"> 96 <data name="ctd_out" format="xml" label="${tool.name} on ${on_string}: ctd">
80 <filter>OPTIONAL_OUTPUTS is not None and "ctd_out_FLAG" in OPTIONAL_OUTPUTS</filter> 97 <filter>OPTIONAL_OUTPUTS is not None and "ctd_out_FLAG" in OPTIONAL_OUTPUTS</filter>
81 </data> 98 </data>
82 </outputs> 99 </outputs>
83 <tests><!-- same input as used in the MSGF+Adapter, should use database CHEMISTRY/MetaboliteSpectralDB.mzML --> 100 <tests>
84 <test expect_num_outputs="1"><!-- same input as used in the MSGF+Adapter, used as input and database --> 101 <!-- same input as used in the MSGF+Adapter, should use database CHEMISTRY/MetaboliteSpectralDB.mzML -->
85 <param name="adv_opts|test" value="true"/> 102 <test expect_num_outputs="1">
86 <param name="in" ftype="mzml" value="spectra.mzML"/> 103 <!-- same input as used in the MSGF+Adapter, used as input and database -->
87 <param name="database" value="MetaboliteSpectralDB.mzML"/> 104 <param name="adv_opts|test" value="true"/>
88 <output name="out" ftype="mztab" value="MetaboliteSpectralMatcher.mzTab"/> 105 <param name="in" ftype="mzml" value="spectra.mzML"/>
89 </test> 106 <param name="database" value="MetaboliteSpectralDB.mzML"/>
90 </tests> 107 <output name="out" ftype="mztab" value="MetaboliteSpectralMatcher.mzTab"/>
108 </test>
109 </tests>
91 <help><![CDATA[Perform a spectral library search. 110 <help><![CDATA[Perform a spectral library search.
92 111
93 112
94 For more information, visit http://www.openms.de/doxygen/release/2.8.0/html/UTILS_MetaboliteSpectralMatcher.html]]></help> 113 For more information, visit https://openms.de/doxygen/release/3.1.0/html/TOPP_MetaboliteSpectralMatcher.html]]></help>
95 <expand macro="references"/> 114 <expand macro="references"/>
96 </tool> 115 </tool>