comparison OpenSwathFeatureXMLToTSV.xml @ 13:604c9363dcfd 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:29:01 +0000
parents 844c32358954
children
comparison
equal deleted inserted replaced
12:844c32358954 13:604c9363dcfd
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: [Targeted Experiments]--> 2 <!--Proposed Tool Section: [Targeted Experiments and OpenSWATH]-->
4 <tool id="OpenSwathFeatureXMLToTSV" name="OpenSwathFeatureXMLToTSV" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="21.05"> 3 <tool id="OpenSwathFeatureXMLToTSV" name="OpenSwathFeatureXMLToTSV" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="21.05">
5 <description>Converts a featureXML to a mProphet tsv.</description> 4 <description>Converts a featureXML to a mProphet tsv</description>
6 <macros> 5 <macros>
7 <token name="@EXECUTABLE@">OpenSwathFeatureXMLToTSV</token> 6 <token name="@EXECUTABLE@">OpenSwathFeatureXMLToTSV</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 tr && 23 mkdir tr &&
25 ln -s '$tr' 'tr/${re.sub("[^\w\-_]", "_", $tr.element_identifier)}.$gxy2omsext($tr.ext)' && 24 cp '$tr' 'tr/${re.sub("[^\w\-_]", "_", $tr.element_identifier)}.$gxy2omsext($tr.ext)' &&
26 mkdir out && 25 mkdir out &&
27 26
28 ## Main program call 27 ## Main program call
29 28
30 set -o pipefail && 29 set -o pipefail &&
56 <param name="in_select" type="select" label="Run tool in batch mode for -in"> 55 <param name="in_select" type="select" label="Run tool in batch mode for -in">
57 <option value="no">No: process all datasets jointly</option> 56 <option value="no">No: process all datasets jointly</option>
58 <option value="yes">Yes: process each dataset in an independent job</option> 57 <option value="yes">Yes: process each dataset in an independent job</option>
59 </param> 58 </param>
60 <when value="no"> 59 <when value="no">
61 <param argument="-in" type="data" format="featurexml" multiple="true" optional="false" label="Input files separated by blank" help=" select featurexml data sets(s)"/> 60 <param argument="-in" type="data" format="featurexml" multiple="true" label="Input files separated by blank" help=" select featurexml data sets(s)"/>
62 </when> 61 </when>
63 <when value="yes"> 62 <when value="yes">
64 <param argument="-in" type="data" format="featurexml" multiple="false" optional="false" label="Input files separated by blank" help=" select featurexml data sets(s)"/> 63 <param argument="-in" type="data" format="featurexml" label="Input files separated by blank" help=" select featurexml data sets(s)"/>
65 </when> 64 </when>
66 </conditional> 65 </conditional>
67 <param argument="-tr" type="data" format="traml" optional="false" label="TraML transition file" help=" select traml data sets(s)"/> 66 <param argument="-tr" type="data" format="traml" label="TraML transition file" help=" select traml data sets(s)"/>
68 <param argument="-short_format" type="boolean" truevalue="true" falsevalue="false" checked="false" label="Whether to write short (one peptide per line) or long format (one transition per line)" help=""/> 67 <param argument="-short_format" type="boolean" truevalue="true" falsevalue="false" checked="false" label="Whether to write short (one peptide per line) or long format (one transition per line)" help=""/>
69 <param argument="-best_scoring_peptide" type="text" optional="true" value="" label="If only the best scoring feature per peptide should be printed, give the variable name" help=""> 68 <param argument="-best_scoring_peptide" type="text" optional="true" value="" label="If only the best scoring feature per peptide should be printed, give the variable name" help="">
70 <expand macro="list_string_san" name="best_scoring_peptide"/> 69 <expand macro="list_string_san" name="best_scoring_peptide"/>
71 </param> 70 </param>
72 <expand macro="adv_opts_macro"> 71 <expand macro="adv_opts_macro">
73 <param argument="-force" type="boolean" truevalue="true" falsevalue="false" checked="false" label="Overrides tool-specific checks" help=""/> 72 <param argument="-force" type="boolean" truevalue="true" falsevalue="false" checked="false" label="Overrides tool-specific checks" help=""/>
74 <param argument="-test" type="hidden" optional="true" value="False" label="Enables the test mode (needed for internal use only)" help=""> 73 <param argument="-test" type="hidden" value="False" label="Enables the test mode (needed for internal use only)" help="" optional="true">
75 <expand macro="list_string_san" name="test"/> 74 <expand macro="list_string_san" name="test"/>
76 </param> 75 </param>
77 </expand> 76 </expand>
78 <param name="OPTIONAL_OUTPUTS" type="select" optional="true" multiple="true" label="Optional outputs"> 77 <param name="OPTIONAL_OUTPUTS" type="select" optional="true" multiple="true" label="Optional outputs">
79 <option value="ctd_out_FLAG">Output used ctd (ini) configuration file</option> 78 <option value="ctd_out_FLAG">Output used ctd (ini) configuration file</option>
83 <data name="out" label="${tool.name} on ${on_string}: out" format="csv"/> 82 <data name="out" label="${tool.name} on ${on_string}: out" format="csv"/>
84 <data name="ctd_out" format="xml" label="${tool.name} on ${on_string}: ctd"> 83 <data name="ctd_out" format="xml" label="${tool.name} on ${on_string}: ctd">
85 <filter>OPTIONAL_OUTPUTS is not None and "ctd_out_FLAG" in OPTIONAL_OUTPUTS</filter> 84 <filter>OPTIONAL_OUTPUTS is not None and "ctd_out_FLAG" in OPTIONAL_OUTPUTS</filter>
86 </data> 85 </data>
87 </outputs> 86 </outputs>
88 <tests><!-- TOPP_OpenSwathFeatureXMLToTSV_test_1 --> 87 <tests>
88 <!-- TOPP_OpenSwathFeatureXMLToTSV_test_1 -->
89 <test expect_num_outputs="2"> 89 <test expect_num_outputs="2">
90 <section name="adv_opts"> 90 <section name="adv_opts">
91 <param name="force" value="false"/> 91 <param name="force" value="false"/>
92 <param name="test" value="true"/> 92 <param name="test" value="true"/>
93 </section> 93 </section>
94 <conditional name="in_cond"> 94 <conditional name="in_cond">
95 <param name="in" value="OpenSwathFeatureXMLToTSV_input.featureXML"/> 95 <param name="in" value="OpenSwathFeatureXMLToTSV_input.featureXML"/>
96 </conditional> 96 </conditional>
97 <param name="tr" value="OpenSwathFeatureXMLToTSV_input.TraML"/> 97 <param name="tr" value="OpenSwathFeatureXMLToTSV_input.TraML"/>
98 <output name="out" file="OpenSwathFeatureXMLToTSV_output.short.csv" compare="sim_size" delta_frac="0.7" ftype="csv"/> 98 <output name="out" value="OpenSwathFeatureXMLToTSV_output.short.csv" compare="sim_size" delta_frac="0.7" ftype="csv"/>
99 <param name="short_format" value="true"/> 99 <param name="short_format" value="true"/>
100 <param name="best_scoring_peptide" value=""/> 100 <param name="best_scoring_peptide" value=""/>
101 <param name="OPTIONAL_OUTPUTS" value="ctd_out_FLAG"/> 101 <param name="OPTIONAL_OUTPUTS" value="ctd_out_FLAG"/>
102 <output name="ctd_out" ftype="xml"> 102 <output name="ctd_out" ftype="xml">
103 <assert_contents> 103 <assert_contents>
104 <is_valid_xml/> 104 <is_valid_xml/>
105 </assert_contents> 105 </assert_contents>
106 </output> 106 </output>
107 <assert_stdout>
108 <has_text_matching expression="@EXECUTABLE@ took .* \(wall\), .* \(CPU\), .* \(system\), .* \(user\)(; Peak Memory Usage: 32 MB)?."/>
109 </assert_stdout>
107 </test> 110 </test>
108 <!-- TOPP_OpenSwathFeatureXMLToTSV_test_2 --> 111 <!-- TOPP_OpenSwathFeatureXMLToTSV_test_2 -->
109 <test expect_num_outputs="2"> 112 <test expect_num_outputs="2">
110 <section name="adv_opts"> 113 <section name="adv_opts">
111 <param name="force" value="false"/> 114 <param name="force" value="false"/>
113 </section> 116 </section>
114 <conditional name="in_cond"> 117 <conditional name="in_cond">
115 <param name="in" value="OpenSwathFeatureXMLToTSV_input.featureXML"/> 118 <param name="in" value="OpenSwathFeatureXMLToTSV_input.featureXML"/>
116 </conditional> 119 </conditional>
117 <param name="tr" value="OpenSwathFeatureXMLToTSV_input.TraML"/> 120 <param name="tr" value="OpenSwathFeatureXMLToTSV_input.TraML"/>
118 <output name="out" file="OpenSwathFeatureXMLToTSV_output.long.csv" compare="sim_size" delta_frac="0.7" ftype="csv"/> 121 <output name="out" value="OpenSwathFeatureXMLToTSV_output.long.csv" compare="sim_size" delta_frac="0.7" ftype="csv"/>
119 <param name="short_format" value="false"/> 122 <param name="short_format" value="false"/>
120 <param name="best_scoring_peptide" value=""/> 123 <param name="best_scoring_peptide" value=""/>
121 <param name="OPTIONAL_OUTPUTS" value="ctd_out_FLAG"/> 124 <param name="OPTIONAL_OUTPUTS" value="ctd_out_FLAG"/>
122 <output name="ctd_out" ftype="xml"> 125 <output name="ctd_out" ftype="xml">
123 <assert_contents> 126 <assert_contents>
124 <is_valid_xml/> 127 <is_valid_xml/>
125 </assert_contents> 128 </assert_contents>
126 </output> 129 </output>
130 <assert_stdout>
131 <has_text_matching expression="@EXECUTABLE@ took .* \(wall\), .* \(CPU\), .* \(system\), .* \(user\)(; Peak Memory Usage: 32 MB)?."/>
132 </assert_stdout>
127 </test> 133 </test>
128 <!-- TOPP_OpenSwathFeatureXMLToTSV_test_3 --> 134 <!-- TOPP_OpenSwathFeatureXMLToTSV_test_3 -->
129 <test expect_num_outputs="2"> 135 <test expect_num_outputs="2">
130 <section name="adv_opts"> 136 <section name="adv_opts">
131 <param name="force" value="false"/> 137 <param name="force" value="false"/>
133 </section> 139 </section>
134 <conditional name="in_cond"> 140 <conditional name="in_cond">
135 <param name="in" value="OpenSwathFeatureXMLToTSV_input.featureXML"/> 141 <param name="in" value="OpenSwathFeatureXMLToTSV_input.featureXML"/>
136 </conditional> 142 </conditional>
137 <param name="tr" value="OpenSwathFeatureXMLToTSV_input.TraML"/> 143 <param name="tr" value="OpenSwathFeatureXMLToTSV_input.TraML"/>
138 <output name="out" file="OpenSwathFeatureXMLToTSV_3_output.short.csv" compare="sim_size" delta_frac="0.7" ftype="csv"/> 144 <output name="out" value="OpenSwathFeatureXMLToTSV_3_output.short.csv" compare="sim_size" delta_frac="0.7" ftype="csv"/>
139 <param name="short_format" value="true"/> 145 <param name="short_format" value="true"/>
140 <param name="best_scoring_peptide" value="main_var_xx_lda_prelim_score"/> 146 <param name="best_scoring_peptide" value="main_var_xx_lda_prelim_score"/>
141 <param name="OPTIONAL_OUTPUTS" value="ctd_out_FLAG"/> 147 <param name="OPTIONAL_OUTPUTS" value="ctd_out_FLAG"/>
142 <output name="ctd_out" ftype="xml"> 148 <output name="ctd_out" ftype="xml">
143 <assert_contents> 149 <assert_contents>
144 <is_valid_xml/> 150 <is_valid_xml/>
145 </assert_contents> 151 </assert_contents>
146 </output> 152 </output>
153 <assert_stdout>
154 <has_text_matching expression="@EXECUTABLE@ took .* \(wall\), .* \(CPU\), .* \(system\), .* \(user\)(; Peak Memory Usage: 32 MB)?."/>
155 </assert_stdout>
147 </test> 156 </test>
148 </tests> 157 </tests>
149 <help><![CDATA[Converts a featureXML to a mProphet tsv. 158 <help><![CDATA[Converts a featureXML to a mProphet tsv.
150 159
151 160
152 For more information, visit http://www.openms.de/doxygen/release/2.8.0/html/TOPP_OpenSwathFeatureXMLToTSV.html]]></help> 161 For more information, visit https://openms.de/doxygen/release/3.1.0/html/TOPP_OpenSwathFeatureXMLToTSV.html]]></help>
153 <expand macro="references"/> 162 <expand macro="references"/>
154 </tool> 163 </tool>