Mercurial > repos > galaxyp > openms_ptmodel
comparison PTModel.xml @ 8:039029f54c89 draft
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit ddf41e8bda1ba065f5cdec98e93dee8165ffc1b9"
author | galaxyp |
---|---|
date | Thu, 03 Sep 2020 16:19:44 +0000 |
parents | 88bd406e3b22 |
children | b6db68398c9e |
comparison
equal
deleted
inserted
replaced
7:88bd406e3b22 | 8:039029f54c89 |
---|---|
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: [Peptide property prediction]--> | 3 <!--Proposed Tool Section: [Peptide property prediction]--> |
4 <tool id="PTModel" name="PTModel" version="2.3.0"> | 4 <tool id="PTModel" name="PTModel" version="@TOOL_VERSION@+galaxy@GALAXY_VERSION@" profile="20.05"> |
5 <description>Trains a model for the prediction of proteotypic peptides from a training set.</description> | 5 <description>Trains a model for the prediction of proteotypic peptides from a training set.</description> |
6 <macros> | 6 <macros> |
7 <token name="@EXECUTABLE@">PTModel</token> | 7 <token name="@EXECUTABLE@">PTModel</token> |
8 <import>macros.xml</import> | 8 <import>macros.xml</import> |
9 <import>macros_autotest.xml</import> | |
10 <import>macros_test.xml</import> | |
9 </macros> | 11 </macros> |
10 <expand macro="references"/> | 12 <expand macro="requirements"/> |
11 <expand macro="stdio"/> | 13 <expand macro="stdio"/> |
12 <expand macro="requirements"/> | 14 <command detect_errors="exit_code"><![CDATA[@QUOTE_FOO@ |
13 <command detect_errors="aggressive"><![CDATA[PTModel | 15 @EXT_FOO@ |
16 #import re | |
14 | 17 |
15 #if $param_in_positive: | 18 ## Preprocessing |
16 -in_positive $param_in_positive | 19 mkdir in_positive && |
17 #end if | 20 ln -s '$in_positive' 'in_positive/${re.sub("[^\w\-_]", "_", $in_positive.element_identifier)}.$gxy2omsext($in_positive.ext)' && |
18 #if $param_in_negative: | 21 mkdir in_negative && |
19 -in_negative $param_in_negative | 22 ln -s '$in_negative' 'in_negative/${re.sub("[^\w\-_]", "_", $in_negative.element_identifier)}.$gxy2omsext($in_negative.ext)' && |
20 #end if | 23 mkdir out && |
21 #if $param_out: | 24 |
22 -out $param_out | 25 ## Main program call |
23 #end if | 26 |
24 #if $param_c: | 27 set -o pipefail && |
25 -c $param_c | 28 @EXECUTABLE@ -write_ctd ./ && |
26 #end if | 29 python3 '$__tool_directory__/fill_ctd.py' '@EXECUTABLE@.ctd' '$args_json' '$hardcoded_json' && |
27 #if $param_svm_type: | 30 @EXECUTABLE@ -ini @EXECUTABLE@.ctd |
28 -svm_type | 31 -in_positive |
29 #if " " in str($param_svm_type): | 32 'in_positive/${re.sub("[^\w\-_]", "_", $in_positive.element_identifier)}.$gxy2omsext($in_positive.ext)' |
30 "$param_svm_type" | 33 -in_negative |
31 #else | 34 'in_negative/${re.sub("[^\w\-_]", "_", $in_negative.element_identifier)}.$gxy2omsext($in_negative.ext)' |
32 $param_svm_type | 35 -out |
33 #end if | 36 'out/output.${gxy2omsext("txt")}' |
34 #end if | 37 |
35 #if $param_nu: | 38 ## Postprocessing |
36 -nu $param_nu | 39 && mv 'out/output.${gxy2omsext("txt")}' '$out' |
37 #end if | 40 #if "ctd_out_FLAG" in $OPTIONAL_OUTPUTS |
38 #if $param_kernel_type: | 41 && mv '@EXECUTABLE@.ctd' '$ctd_out' |
39 -kernel_type | 42 #end if]]></command> |
40 #if " " in str($param_kernel_type): | 43 <configfiles> |
41 "$param_kernel_type" | 44 <inputs name="args_json" data_style="paths"/> |
42 #else | 45 <configfile name="hardcoded_json"><![CDATA[{"log": "log.txt", "threads": "\${GALAXY_SLOTS:-1}", "no_progress": true}]]></configfile> |
43 $param_kernel_type | 46 </configfiles> |
44 #end if | |
45 #end if | |
46 #if $param_degree: | |
47 -degree $param_degree | |
48 #end if | |
49 #if $param_border_length: | |
50 -border_length $param_border_length | |
51 #end if | |
52 #if $param_k_mer_length: | |
53 -k_mer_length $param_k_mer_length | |
54 #end if | |
55 #if $param_sigma: | |
56 -sigma $param_sigma | |
57 #end if | |
58 #if $param_max_positive_count: | |
59 -max_positive_count $param_max_positive_count | |
60 #end if | |
61 #if $param_max_negative_count: | |
62 -max_negative_count $param_max_negative_count | |
63 #end if | |
64 #if $param_redundant: | |
65 -redundant | |
66 #end if | |
67 #if $param_additive_cv: | |
68 -additive_cv | |
69 #end if | |
70 #if $param_cv_skip_cv: | |
71 -cv:skip_cv | |
72 #end if | |
73 #if $param_cv_number_of_runs: | |
74 -cv:number_of_runs $param_cv_number_of_runs | |
75 #end if | |
76 #if $param_cv_number_of_partitions: | |
77 -cv:number_of_partitions $param_cv_number_of_partitions | |
78 #end if | |
79 #if $param_cv_degree_start: | |
80 -cv:degree_start $param_cv_degree_start | |
81 #end if | |
82 #if $param_cv_degree_step_size: | |
83 -cv:degree_step_size $param_cv_degree_step_size | |
84 #end if | |
85 #if $param_cv_degree_stop: | |
86 -cv:degree_stop $param_cv_degree_stop | |
87 #end if | |
88 #if $param_cv_c_start: | |
89 -cv:c_start $param_cv_c_start | |
90 #end if | |
91 #if $param_cv_c_step_size: | |
92 -cv:c_step_size $param_cv_c_step_size | |
93 #end if | |
94 #if $param_cv_c_stop: | |
95 -cv:c_stop $param_cv_c_stop | |
96 #end if | |
97 #if $param_cv_nu_start: | |
98 -cv:nu_start $param_cv_nu_start | |
99 #end if | |
100 #if $param_cv_nu_step_size: | |
101 -cv:nu_step_size $param_cv_nu_step_size | |
102 #end if | |
103 #if $param_cv_nu_stop: | |
104 -cv:nu_stop $param_cv_nu_stop | |
105 #end if | |
106 #if $param_cv_sigma_start: | |
107 -cv:sigma_start $param_cv_sigma_start | |
108 #end if | |
109 #if $param_cv_sigma_step_size: | |
110 -cv:sigma_step_size $param_cv_sigma_step_size | |
111 #end if | |
112 #if $param_cv_sigma_stop: | |
113 -cv:sigma_stop $param_cv_sigma_stop | |
114 #end if | |
115 #if $adv_opts.adv_opts_selector=='advanced': | |
116 #if $adv_opts.param_force: | |
117 -force | |
118 #end if | |
119 #end if | |
120 ]]></command> | |
121 <inputs> | 47 <inputs> |
122 <param name="param_in_positive" type="data" format="idxml" optional="False" label="input file with positive examples" help="(-in_positive) "/> | 48 <param name="in_positive" argument="-in_positive" type="data" format="idxml" optional="false" label="input file with positive examples" help=" select idxml data sets(s)"/> |
123 <param name="param_in_negative" type="data" format="idxml" optional="False" label="input file with negative examples" help="(-in_negative) "/> | 49 <param name="in_negative" argument="-in_negative" type="data" format="idxml" optional="false" label="input file with negative examples" help=" select idxml data sets(s)"/> |
124 <param name="param_c" type="float" value="1.0" label="the penalty parameter of the svm" help="(-c) "/> | 50 <param name="c" argument="-c" type="float" optional="true" value="1.0" label="the penalty parameter of the svm" help=""/> |
125 <param name="param_svm_type" display="radio" type="select" optional="False" value="C_SVC" label="the type of the svm (NU_SVC or C_SVC)" help="(-svm_type) "> | 51 <param name="svm_type" argument="-svm_type" display="radio" type="select" optional="false" label="the type of the svm (NU_SVC or C_SVC)" help=""> |
126 <option value="NU_SVC">NU_SVC</option> | 52 <option value="NU_SVC">NU_SVC</option> |
127 <option value="C_SVC" selected="true">C_SVC</option> | 53 <option value="C_SVC" selected="true">C_SVC</option> |
54 <expand macro="list_string_san"/> | |
128 </param> | 55 </param> |
129 <param name="param_nu" type="float" min="0.0" max="1.0" optional="True" value="0.5" label="the nu parameter [0..1] of the svm (for nu-SVR)" help="(-nu) "/> | 56 <param name="nu" argument="-nu" type="float" optional="true" min="0.0" max="1.0" value="0.5" label="the nu parameter [0..1] of the svm (for nu-SVR)" help=""/> |
130 <param name="param_kernel_type" display="radio" type="select" optional="False" value="OLIGO" label="the kernel type of the svm" help="(-kernel_type) "> | 57 <param name="kernel_type" argument="-kernel_type" display="radio" type="select" optional="false" label="the kernel type of the svm" help=""> |
131 <option value="LINEAR">LINEAR</option> | 58 <option value="LINEAR">LINEAR</option> |
132 <option value="RBF">RBF</option> | 59 <option value="RBF">RBF</option> |
133 <option value="POLY">POLY</option> | 60 <option value="POLY">POLY</option> |
134 <option value="OLIGO" selected="true">OLIGO</option> | 61 <option value="OLIGO" selected="true">OLIGO</option> |
62 <expand macro="list_string_san"/> | |
135 </param> | 63 </param> |
136 <param name="param_degree" type="integer" min="1" optional="True" value="1" label="the degree parameter of the kernel function of the svm (POLY kernel)" help="(-degree) "/> | 64 <param name="degree" argument="-degree" type="integer" optional="true" min="1" value="1" label="the degree parameter of the kernel function of the svm (POLY kernel)" help=""/> |
137 <param name="param_border_length" type="integer" min="1" optional="True" value="22" label="length of the POBK" help="(-border_length) "/> | 65 <param name="border_length" argument="-border_length" type="integer" optional="true" min="1" value="22" label="length of the POBK" help=""/> |
138 <param name="param_k_mer_length" type="integer" min="1" optional="True" value="1" label="k_mer length of the POBK" help="(-k_mer_length) "/> | 66 <param name="k_mer_length" argument="-k_mer_length" type="integer" optional="true" min="1" value="1" label="k_mer length of the POBK" help=""/> |
139 <param name="param_sigma" type="float" value="5.0" label="sigma of the POBK" help="(-sigma) "/> | 67 <param name="sigma" argument="-sigma" type="float" optional="true" value="5.0" label="sigma of the POBK" help=""/> |
140 <param name="param_max_positive_count" type="integer" min="1" optional="True" value="1000" label="quantity of positive samples for training (randomly chosen if smaller than available quantity)" help="(-max_positive_count) "/> | 68 <param name="max_positive_count" argument="-max_positive_count" type="integer" optional="true" min="1" value="1000" label="quantity of positive samples for training (randomly chosen if smaller than available quantity)" help=""/> |
141 <param name="param_max_negative_count" type="integer" min="1" optional="True" value="1000" label="quantity of positive samples for training (randomly chosen if smaller than available quantity)" help="(-max_negative_count) "/> | 69 <param name="max_negative_count" argument="-max_negative_count" type="integer" optional="true" min="1" value="1000" label="quantity of positive samples for training (randomly chosen if smaller than available quantity)" help=""/> |
142 <param name="param_redundant" display="radio" type="boolean" truevalue="-redundant" falsevalue="" checked="false" optional="True" label="if the input sets are redundant and the redundant peptides should occur more than once in the training set, this flag has to be set" help="(-redundant) "/> | 70 <param name="redundant" argument="-redundant" type="boolean" truevalue="true" falsevalue="false" checked="false" label="if the input sets are redundant and the redundant peptides should occur more than once in the training set, this flag has to be set" help=""/> |
143 <param name="param_additive_cv" display="radio" type="boolean" truevalue="-additive_cv" falsevalue="" checked="false" optional="True" label="if the step sizes should be interpreted additively (otherwise the actual value is multiplied with the step size to get the new value" help="(-additive_cv) "/> | 71 <param name="additive_cv" argument="-additive_cv" type="boolean" truevalue="true" falsevalue="false" checked="false" label="if the step sizes should be interpreted additively (otherwise the actual value is multiplied with the step size to get the new value" help=""/> |
144 <param name="param_cv_skip_cv" display="radio" type="boolean" truevalue="-cv:skip_cv" falsevalue="" checked="false" optional="True" label="Has to be set if the cv should be skipped and the model should just be trained with the specified parameters" help="(-skip_cv) "/> | 72 <section name="cv" title="Parameters for the grid search / cross validation:" help="" expanded="false"> |
145 <param name="param_cv_number_of_runs" type="integer" min="1" optional="True" value="10" label="number of runs for the CV" help="(-number_of_runs) "/> | 73 <param name="skip_cv" argument="-cv:skip_cv" type="boolean" truevalue="true" falsevalue="false" checked="false" label="Has to be set if the cv should be skipped and the model should just be trained with the specified parameters" help=""/> |
146 <param name="param_cv_number_of_partitions" type="integer" min="2" optional="True" value="10" label="number of CV partitions" help="(-number_of_partitions) "/> | 74 <param name="number_of_runs" argument="-cv:number_of_runs" type="integer" optional="true" min="1" value="10" label="number of runs for the CV" help=""/> |
147 <param name="param_cv_degree_start" type="integer" min="1" optional="True" value="1" label="starting point of degree" help="(-degree_start) "/> | 75 <param name="number_of_partitions" argument="-cv:number_of_partitions" type="integer" optional="true" min="2" value="10" label="number of CV partitions" help=""/> |
148 <param name="param_cv_degree_step_size" type="integer" value="2" label="step size point of degree" help="(-degree_step_size) "/> | 76 <param name="degree_start" argument="-cv:degree_start" type="integer" optional="true" min="1" value="1" label="starting point of degree" help=""/> |
149 <param name="param_cv_degree_stop" type="integer" value="4" label="stopping point of degree" help="(-degree_stop) "/> | 77 <param name="degree_step_size" argument="-cv:degree_step_size" type="integer" optional="true" value="2" label="step size point of degree" help=""/> |
150 <param name="param_cv_c_start" type="float" value="1.0" label="starting point of c" help="(-c_start) "/> | 78 <param name="degree_stop" argument="-cv:degree_stop" type="integer" optional="true" value="4" label="stopping point of degree" help=""/> |
151 <param name="param_cv_c_step_size" type="float" value="100.0" label="step size of c" help="(-c_step_size) "/> | 79 <param name="c_start" argument="-cv:c_start" type="float" optional="true" value="1.0" label="starting point of c" help=""/> |
152 <param name="param_cv_c_stop" type="float" value="1000.0" label="stopping point of c" help="(-c_stop) "/> | 80 <param name="c_step_size" argument="-cv:c_step_size" type="float" optional="true" value="100.0" label="step size of c" help=""/> |
153 <param name="param_cv_nu_start" type="float" min="0.0" max="1.0" optional="True" value="0.1" label="starting point of nu" help="(-nu_start) "/> | 81 <param name="c_stop" argument="-cv:c_stop" type="float" optional="true" value="1000.0" label="stopping point of c" help=""/> |
154 <param name="param_cv_nu_step_size" type="float" value="1.3" label="step size of nu" help="(-nu_step_size) "/> | 82 <param name="nu_start" argument="-cv:nu_start" type="float" optional="true" min="0.0" max="1.0" value="0.1" label="starting point of nu" help=""/> |
155 <param name="param_cv_nu_stop" type="float" min="0.0" max="1.0" optional="True" value="0.9" label="stopping point of nu" help="(-nu_stop) "/> | 83 <param name="nu_step_size" argument="-cv:nu_step_size" type="float" optional="true" value="1.3" label="step size of nu" help=""/> |
156 <param name="param_cv_sigma_start" type="float" value="1.0" label="starting point of sigma" help="(-sigma_start) "/> | 84 <param name="nu_stop" argument="-cv:nu_stop" type="float" optional="true" min="0.0" max="1.0" value="0.9" label="stopping point of nu" help=""/> |
157 <param name="param_cv_sigma_step_size" type="float" value="1.3" label="step size of sigma" help="(-sigma_step_size) "/> | 85 <param name="sigma_start" argument="-cv:sigma_start" type="float" optional="true" value="1.0" label="starting point of sigma" help=""/> |
158 <param name="param_cv_sigma_stop" type="float" value="15.0" label="stopping point of sigma" help="(-sigma_stop) "/> | 86 <param name="sigma_step_size" argument="-cv:sigma_step_size" type="float" optional="true" value="1.3" label="step size of sigma" help=""/> |
159 <expand macro="advanced_options"> | 87 <param name="sigma_stop" argument="-cv:sigma_stop" type="float" optional="true" value="15.0" label="stopping point of sigma" help=""/> |
160 <param name="param_force" display="radio" type="boolean" truevalue="-force" falsevalue="" checked="false" optional="True" label="Overwrite tool specific checks" help="(-force) "/> | 88 </section> |
89 <expand macro="adv_opts_macro"> | |
90 <param name="force" argument="-force" type="boolean" truevalue="true" falsevalue="false" checked="false" label="Overwrite tool specific checks" help=""/> | |
91 <param name="test" argument="-test" type="hidden" optional="true" value="False" label="Enables the test mode (needed for internal use only)" help=""> | |
92 <expand macro="list_string_san"/> | |
93 </param> | |
161 </expand> | 94 </expand> |
95 <param name="OPTIONAL_OUTPUTS" type="select" multiple="true" label="Optional outputs" optional="true"> | |
96 <option value="ctd_out_FLAG">Output used ctd (ini) configuration file</option> | |
97 </param> | |
162 </inputs> | 98 </inputs> |
163 <outputs> | 99 <outputs> |
164 <data name="param_out" format="txt"/> | 100 <data name="out" label="${tool.name} on ${on_string}: out" format="txt"/> |
101 <data name="ctd_out" format="xml" label="${tool.name} on ${on_string}: ctd"> | |
102 <filter>OPTIONAL_OUTPUTS is not None and "ctd_out_FLAG" in OPTIONAL_OUTPUTS</filter> | |
103 </data> | |
165 </outputs> | 104 </outputs> |
166 <help>Trains a model for the prediction of proteotypic peptides from a training set. | 105 <tests> |
106 <expand macro="autotest_PTModel"/> | |
107 <expand macro="manutest_PTModel"/> | |
108 </tests> | |
109 <help><![CDATA[Trains a model for the prediction of proteotypic peptides from a training set. | |
167 | 110 |
168 | 111 |
169 For more information, visit https://abibuilder.informatik.uni-tuebingen.de/archive/openms/Documentation/release/2.3.0/html/TOPP_PTModel.html</help> | 112 For more information, visit http://www.openms.de/documentation/TOPP_PTModel.html]]></help> |
113 <expand macro="references"/> | |
170 </tool> | 114 </tool> |