comparison QCCalculator.xml @ 13:d0607dfea8fa draft

planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 3d1e5f37fd16524a415f707772eeb7ead848c5e3
author galaxyp
date Thu, 01 Dec 2022 19:09:47 +0000
parents 044adca691a7
children f6f07c3e99a2
comparison
equal deleted inserted replaced
12:fc351fd4a009 13:d0607dfea8fa
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="QCCalculator" name="QCCalculator" version="@TOOL_VERSION@+galaxy@GALAXY_VERSION@" profile="20.05"> 4 <tool id="QCCalculator" name="QCCalculator" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="21.05">
5 <description>Calculates basic quality parameters from MS experiments and subsequent analysis data as identification or feature detection.</description> 5 <description>Calculates basic quality parameters from MS experiments and subsequent analysis data as identification or feature detection.</description>
6 <macros> 6 <macros>
7 <token name="@EXECUTABLE@">QCCalculator</token> 7 <token name="@EXECUTABLE@">QCCalculator</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@
39 python3 '$__tool_directory__/fill_ctd.py' '@EXECUTABLE@.ctd' '$args_json' '$hardcoded_json' && 37 python3 '$__tool_directory__/fill_ctd.py' '@EXECUTABLE@.ctd' '$args_json' '$hardcoded_json' &&
40 @EXECUTABLE@ -ini @EXECUTABLE@.ctd 38 @EXECUTABLE@ -ini @EXECUTABLE@.ctd
41 -in 39 -in
42 'in/${re.sub("[^\w\-_]", "_", $in.element_identifier)}.$gxy2omsext($in.ext)' 40 'in/${re.sub("[^\w\-_]", "_", $in.element_identifier)}.$gxy2omsext($in.ext)'
43 -out 41 -out
44 'out/output.${gxy2omsext("qcml")}' 42 'out/output.${out_type}'
45 #if $id: 43 #if $id:
46 -id 44 -id
47 'id/${re.sub("[^\w\-_]", "_", $id.element_identifier)}.$gxy2omsext($id.ext)' 45 'id/${re.sub("[^\w\-_]", "_", $id.element_identifier)}.$gxy2omsext($id.ext)'
48 #end if 46 #end if
49 #if $feature: 47 #if $feature:
54 -consensus 52 -consensus
55 'consensus/${re.sub("[^\w\-_]", "_", $consensus.element_identifier)}.$gxy2omsext($consensus.ext)' 53 'consensus/${re.sub("[^\w\-_]", "_", $consensus.element_identifier)}.$gxy2omsext($consensus.ext)'
56 #end if 54 #end if
57 55
58 ## Postprocessing 56 ## Postprocessing
59 && mv 'out/output.${gxy2omsext("qcml")}' '$out' 57 && mv 'out/output.${out_type}' '$out'
60 #if "ctd_out_FLAG" in $OPTIONAL_OUTPUTS 58 #if "ctd_out_FLAG" in $OPTIONAL_OUTPUTS
61 && mv '@EXECUTABLE@.ctd' '$ctd_out' 59 && mv '@EXECUTABLE@.ctd' '$ctd_out'
62 #end if]]></command> 60 #end if]]></command>
63 <configfiles> 61 <configfiles>
64 <inputs name="args_json" data_style="paths"/> 62 <inputs name="args_json" data_style="paths"/>
65 <configfile name="hardcoded_json"><![CDATA[{"log": "log.txt", "threads": "\${GALAXY_SLOTS:-1}", "no_progress": true}]]></configfile> 63 <configfile name="hardcoded_json"><![CDATA[{"log": "log.txt", "threads": "\${GALAXY_SLOTS:-1}", "no_progress": true}]]></configfile>
66 </configfiles> 64 </configfiles>
67 <inputs> 65 <inputs>
68 <param name="in" argument="-in" type="data" format="mzml" optional="false" label="raw data input file (this is relevant if you want to look at MS1, MS2 and precursor peak information)" help=" select mzml data sets(s)"/> 66 <param argument="-in" type="data" format="mzml" optional="false" label="raw data input file (this is relevant if you want to look at MS1, MS2 and precursor peak information)" help=" select mzml data sets(s)"/>
69 <param name="id" argument="-id" type="data" format="idxml" optional="true" label="Input idXML file containing the identifications" help="Your identifications will be exported in an easy-to-read format select idxml data sets(s)"/> 67 <param argument="-out_type" display="radio" type="select" optional="false" label="Output file type -- default: determined from file extension or content" help="">
70 <param name="feature" argument="-feature" type="data" format="featurexml" optional="true" label="feature input file (this is relevant for most QC issues)" help=" select featurexml data sets(s)"/> 68 <option value="mzQC">mzqc</option>
71 <param name="consensus" argument="-consensus" type="data" format="consensusxml" optional="true" label="consensus input file (this is only used for charge state deconvoluted output" help="Use the consensusXML output form the DeCharger) select consensusxml data sets(s)"/> 69 <option value="qcML">qcml</option>
72 <param name="remove_duplicate_features" argument="-remove_duplicate_features" type="boolean" truevalue="true" falsevalue="false" checked="false" label="This flag should be set, if you work with a set of merged features" help=""/> 70 <expand macro="list_string_san" name="out_type"/>
71 </param>
72 <param argument="-label" type="text" optional="true" value="label" label="unique name for the run that can be used in a figure label" help="">
73 <expand macro="list_string_san" name="label"/>
74 </param>
75 <param argument="-name" type="text" optional="true" value="" label="name of the person creating this mzQC file" help="">
76 <expand macro="list_string_san" name="name"/>
77 </param>
78 <param argument="-address" type="text" optional="true" value="" label="contact address (mail/e-mail or phone)" help="">
79 <expand macro="list_string_san" name="address"/>
80 </param>
81 <param argument="-description" type="text" optional="true" value="" label="description and comments about the mzQC file contents" help="">
82 <expand macro="list_string_san" name="description"/>
83 </param>
84 <param argument="-id" type="data" format="idxml" optional="true" label="Input idXML file containing the identifications" help="Your identifications will be exported in an easy-to-read format select idxml data sets(s)"/>
85 <param argument="-feature" type="data" format="featurexml" optional="true" label="feature input file (this is relevant for most QC issues)" help=" select featurexml data sets(s)"/>
86 <param argument="-consensus" type="data" format="consensusxml" optional="true" label="consensus input file (this is only used for charge state deconvoluted output" help="Use the consensusXML output form the DeCharger) select consensusxml data sets(s)"/>
87 <param argument="-remove_duplicate_features" type="boolean" truevalue="true" falsevalue="false" checked="false" label="This flag should be set, if you work with a set of merged features" help=""/>
73 <expand macro="adv_opts_macro"> 88 <expand macro="adv_opts_macro">
74 <param name="force" argument="-force" type="boolean" truevalue="true" falsevalue="false" checked="false" label="Overrides tool-specific checks" help=""/> 89 <param argument="-force" type="boolean" truevalue="true" falsevalue="false" checked="false" label="Overrides tool-specific checks" help=""/>
75 <param name="test" argument="-test" type="hidden" optional="true" value="False" label="Enables the test mode (needed for internal use only)" help=""> 90 <param argument="-test" type="hidden" optional="true" value="False" label="Enables the test mode (needed for internal use only)" help="">
76 <expand macro="list_string_san"/> 91 <expand macro="list_string_san" name="test"/>
77 </param> 92 </param>
78 </expand> 93 </expand>
79 <param name="OPTIONAL_OUTPUTS" type="select" optional="true" multiple="true" label="Optional outputs"> 94 <param name="OPTIONAL_OUTPUTS" type="select" optional="true" multiple="true" label="Optional outputs">
80 <option value="ctd_out_FLAG">Output used ctd (ini) configuration file</option> 95 <option value="ctd_out_FLAG">Output used ctd (ini) configuration file</option>
81 </param> 96 </param>
82 </inputs> 97 </inputs>
83 <outputs> 98 <outputs>
84 <data name="out" label="${tool.name} on ${on_string}: out" format="qcml"/> 99 <data name="out" label="${tool.name} on ${on_string}: out" format="mzqc">
100 <change_format>
101 <when input="out_type" value="qcML" format="qcml"/>
102 </change_format>
103 </data>
85 <data name="ctd_out" format="xml" label="${tool.name} on ${on_string}: ctd"> 104 <data name="ctd_out" format="xml" label="${tool.name} on ${on_string}: ctd">
86 <filter>OPTIONAL_OUTPUTS is not None and "ctd_out_FLAG" in OPTIONAL_OUTPUTS</filter> 105 <filter>OPTIONAL_OUTPUTS is not None and "ctd_out_FLAG" in OPTIONAL_OUTPUTS</filter>
87 </data> 106 </data>
88 </outputs> 107 </outputs>
89 <tests> 108 <tests><!-- UTILS_QCCalculator_1 -->
90 <expand macro="autotest_QCCalculator"/> 109 <test expect_num_outputs="2">
91 <expand macro="manutest_QCCalculator"/> 110 <section name="adv_opts">
92 </tests> 111 <param name="force" value="false"/>
112 <param name="test" value="true"/>
113 </section>
114 <param name="in" value="QCCalculator_input.mzML"/>
115 <output name="out" file="QCCalculator_1.qcML" compare="sim_size" delta_frac="0.7" ftype="qcml"/>
116 <param name="out_type" value="qcML"/>
117 <param name="label" value="label"/>
118 <param name="name" value=""/>
119 <param name="address" value=""/>
120 <param name="description" value=""/>
121 <param name="remove_duplicate_features" value="false"/>
122 <param name="OPTIONAL_OUTPUTS" value="ctd_out_FLAG"/>
123 <output name="ctd_out" ftype="xml">
124 <assert_contents>
125 <is_valid_xml/>
126 </assert_contents>
127 </output>
128 </test>
129 <!-- UTILS_QCCalculator_2 -->
130 <test expect_num_outputs="2">
131 <section name="adv_opts">
132 <param name="force" value="false"/>
133 <param name="test" value="true"/>
134 </section>
135 <param name="in" value="QCCalculator_input.mzML"/>
136 <output name="out" file="QCCalculator_2.mzQC" compare="sim_size" delta_frac="0.7" ftype="mzqc"/>
137 <param name="out_type" value="mzQC"/>
138 <param name="label" value="label"/>
139 <param name="name" value="name"/>
140 <param name="address" value="address"/>
141 <param name="description" value="description"/>
142 <param name="id" value="OpenPepXL_output.idXML"/>
143 <param name="feature" value="FeatureFinderMetaboIdent_1_output.featureXML"/>
144 <param name="remove_duplicate_features" value="false"/>
145 <param name="OPTIONAL_OUTPUTS" value="ctd_out_FLAG"/>
146 <output name="ctd_out" ftype="xml">
147 <assert_contents>
148 <is_valid_xml/>
149 </assert_contents>
150 </output>
151 </test>
152 <test expect_num_outputs="1"><!-- took test data from another test w mzML input -->
153 <param name="adv_opts|test" value="true"/>
154 <param name="in" ftype="mzml" value="OpenPepXL_input.mzML"/>
155 <param name="out_type" value="qcML"/>
156 <output name="out" ftype="qcml" value="QCCalculator1.qcML" compare="sim_size" delta="250"/>
157 </test>
158 <test expect_num_outputs="1"><!-- took test data from another test w mzML,idXML,consensusXML input -->
159 <param name="adv_opts|test" value="true"/>
160 <param name="in" ftype="mzml" value="OpenPepXL_input.mzML"/>
161 <param name="id" ftype="idxml" value="OpenPepXL_output.idXML"/>
162 <param name="consensus" ftype="consensusxml" value="OpenPepXL_input.consensusXML"/>
163 <param name="out_type" value="qcML"/>
164 <output name="out" ftype="qcml" value="QCCalculator2.qcML" compare="sim_size" delta="250"/>
165 </test>
166 <test expect_num_outputs="1"><!-- took test data from another test w mzML,idXML,featureXML input -->
167 <param name="adv_opts|test" value="true"/>
168 <param name="in" ftype="mzml" value="IDMapper_4_input.mzML"/>
169 <param name="id" ftype="idxml" value="IDMapper_4_input.idXML"/>
170 <param name="feature" ftype="featurexml" value="IDMapper_4_input.featureXML"/>
171 <param name="out_type" value="qcML"/>
172 <output name="out" ftype="qcml" value="QCCalculator3.qcML" compare="sim_size" delta="250"/>
173 </test>
174 </tests>
93 <help><![CDATA[Calculates basic quality parameters from MS experiments and subsequent analysis data as identification or feature detection. 175 <help><![CDATA[Calculates basic quality parameters from MS experiments and subsequent analysis data as identification or feature detection.
94 176
95 177
96 For more information, visit http://www.openms.de/doxygen/release/2.6.0/html/UTILS_QCCalculator.html]]></help> 178 For more information, visit http://www.openms.de/doxygen/release/2.8.0/html/UTILS_QCCalculator.html]]></help>
97 <expand macro="references"/> 179 <expand macro="references"/>
98 </tool> 180 </tool>