comparison tools/idpqonvert.xml @ 0:bfb76d543f32 draft

Uploaded
author galaxyp
date Fri, 26 Sep 2014 18:47:40 -0400
parents
children 6cc571c2b3d1
comparison
equal deleted inserted replaced
-1:000000000000 0:bfb76d543f32
1 <tool id="idpqonvert" version="0.1.0" name="idpQonvert" >
2 <requirements>
3 <requirement type="package" version="333">binaries_for_package_idpqonvert</requirement>
4 </requirements>
5
6 <!-- TODO: Set defaults for weights correctly -->
7 <description>
8 Prepare identification results for IDPicker.
9 </description>
10 <command>
11 #set $db_name = $input_database.display_name.replace(".fasta", "") + ".fasta"
12 #set $input_name = $input.display_name
13 #set $output_name = $input_name.split(".")[0] + ".idpDB"
14 ln -s '$input' '${input_name}';
15 ln -s '$input_database' '${db_name}';
16 idpQonvert -DecoyPrefix '${decoy_prefix}' \
17 -WriteQonversionDetails true \
18 -ProteinDatabase '${db_name}' \
19 -MaxFDR $max_fdr \
20 -EmbedSpectrumScanTimes false \
21 -EmbedSpectrumSources false \
22 #if $scoring.override_scoring
23 #set $score_info = []
24 #for $engine in ["myrimatch:mvh", "xcorr", "sequest:xcorr", "sequest:deltacn", "mascot:score", "x!tandem:expect", "x!tandem:hyperscore", "ms-gf:spacevalue"]
25 #set $weight = $getVar("scoring." + $engine.replace(":", "_").replace("!","") + "_weight.value")
26 #set $type = $getVar("scoring." + $engine.replace(":", "_").replace("!","") + "_type.value")
27 #set $score_info = $score_info + [str($weight) + " " + $type + " " + $engine]
28 #continue
29 #end for
30 #set $score_str = "; ".join($score_info)
31 -ScoreInfo '$score_str' \
32 #end if
33 #if $advanced_options.use_advanced_options
34 -MaxImportFDR $advanced_options.max_import_fdr \
35 -MaxResultRank $advanced_options.max_result_rank \
36 -RerankMatches $advanced_options.rerank_matches \
37 -Gamma $advanced_options.gamma \
38 -Nu $advanced_options.nu \
39 -PolynomialDegree $advanced_options.polynomial_degree \
40 -TruePositiveThreshold $advanced_options.true_positive_threshold \
41 -MaxTrainingRank $advanced_options.max_training_rank \
42 -SVMType $advanced_options.svm_type \
43 -Kernel $advanced_options.kernel \
44 -ChargeStateHandling $advanced_options.charge_state_handling \
45 -QonverterMethod $advanced_options.qonverter_method \
46 -MinPartitionSize $advanced_options.min_partition_size \
47 #end if
48 '${input_name}';
49 mv '$output_name' output
50 </command>
51 <!-- idpQonvert needs spectrum available EmbedSpectrumScanTimes or EmbedSpectrumSources is set.
52 -->
53 <stdio>
54 <exit_code range="1:" level="fatal" description="Job Failed" />
55 <regex match="^Could not find the default configuration file.*$"
56 source="both"
57 level="warning" />
58 </stdio>
59 <inputs>
60 <conditional name="type">
61 <param name="input_type" type="select" label="Input Type">
62 <option value="mzid">mzIdentML</option>
63 <option value="pepXML">pepXML</option>
64 </param>
65 <when value="mzid">
66 <param format="mzid" name="input" type="data" label="Input mzIdentML"/>
67 </when>
68 <when value="pepXML">
69 <param format="pepXML" name="input" type="data" label="Input pepXML"/>
70 </when>
71 </conditional>
72 <param format="fasta" name="input_database" type="data" label="Protein Database"/>
73 <param name="decoy_prefix" type="text" label="Decoy Prefix"/>
74 <param name="max_fdr" type="float" label="Max FDR" value="0.05" />
75 <conditional name="advanced_options">
76 <param name="use_advanced_options" type="boolean" truevalue="true" falsevalue="false" label="Set Advanced Options" />
77 <when value="false" />
78 <when value="true">
79 <param name="max_import_fdr" type="float" label="Max Import FDR" value="0.25" />
80 <param name="max_result_rank" type="integer" label="Max Result Rank" value="3" />
81 <param name="max_training_rank" type="integer" label="Max Training Rank" value="1" />
82 <param name="rerank_matches" type="boolean" label="Rerank Matches" checked="false" truevalue="true" falsevalue="false" />
83 <param name="gamma" type="float" label="Gamma" value="5" />
84 <param name="nu" type="float" label="Nu" value="-0.5" />
85 <param name="true_positive_threshold" type="float" label="True Positive Threshold" value="0.01" />
86 <param name="polynomial_degree" type="integer" label="Polynomial Degree" value="3" />
87 <param name="min_partition_size" type="integer" label="Minimum Partition Size" value="10" />
88 <param name="svm_type" label="SVM Type" type="select">
89 <option value="CSVC" selected="true">CSVC</option>
90 <option value="NuSVC">Nu SCV</option>
91 <option value="OneClass">One Class</option>
92 <option value="NuSVR">Nu SVR</option>
93 <option value="EpsilonSVR">Epsilon SVR</option>
94 </param>
95 <param name="kernel" label="Kernel" type="select">
96 <option value="Linear" selected="true">Linear</option>
97 <option value="Polynomial">Polynomial</option>
98 <option value="RBR">Radial Basis Function</option>
99 <option value="Sigmoid">Sigmoid</option>
100 </param>
101 <param name="charge_state_handling" label="Charge State Handling" type="select">
102 <option value="Partition" selected="true">Partition</option>
103 <option value="Ignore">Ignore</option>
104 <option value="Feature">Feature</option>
105 </param>
106 <param name="terminal_specificity_handling" label="Terminal Specificity Handling" type="select">
107 <option value="Partition" selected="true">Partition</option>
108 <option value="Ignore">Ignore</option>
109 <option value="Feature">Feature</option>
110 </param>
111 <param name="missed_cleavages_handling" label="Missed Cleavages Handling" type="select">
112 <option value="Ignore" selected="true">Ignore</option>
113 <option value="Feature">Feature</option>
114 </param>
115 <param name="missed_cleavages_handling" label="Missed Cleavages Handling" type="select">
116 <option value="Ignore" selected="true">Ignore</option>
117 <option value="Feature">Feature</option>
118 </param>
119 <param name="mass_error_handling" label="Mass Error Handling" type="select">
120 <option value="Ignore" selected="true">Ignore</option>
121 <option value="Feature">Feature</option>
122 </param>
123 <param name="qonverter_method" label="Qonverter Method" type="select">
124 <option value="MonteCarlo" selected="true">Monte Carlo</option>
125 <option value="SingleSVM">SVM (single)</option>
126 <option value="PartitionSVM">SVM (parition)</option>
127 <option value="StaticWeighted">Static Weighted</option>
128 </param>
129 </when>
130 </conditional>
131 <conditional name="scoring">
132 <param name="override_scoring" type="boolean" truevalue="true" falsevalue="false" label="Modify Search Application Weights" />
133 <when value="false" />
134 <when value="true">
135 <param name="myrimatch_mvh_weight" label="Myrimatch (mvh) Weight" type="float" value="1" />
136 <param name="myrimatch_mvh_type" label="Myrimatch (mvh) Normalization" type="select">
137 <option value="off" selected="true">None</option>
138 <option value="quantile">Quantile</option>
139 <option value="linear">Linear</option>
140 </param>
141 <param name="xcorr_weight" label="XCorr Weight" type="float" value="1" />
142 <param name="xcorr_type" label="XCorr Normalization" type="select">
143 <option value="off" selected="true">None</option>
144 <option value="quantile">Quantile</option>
145 <option value="linear">Linear</option>
146 </param>
147 <param name="sequest_xcorr_weight" label="Sequest (xcorr) Weight" type="float" value="1" />
148 <param name="sequest_xcorr_type" label="Sequest (xcorr) Normalization" type="select">
149 <option value="off" selected="true">None</option>
150 <option value="quantile">Quantile</option>
151 <option value="linear">Linear</option>
152 </param>
153 <param name="sequest_deltacn_weight" label="Sequest (deltacn) Weight" type="float" value="1" />
154 <param name="sequest_deltacn_type" label="Sequest (deltacn) Normalization" type="select">
155 <option value="off" selected="true">None</option>
156 <option value="quantile">Quantile</option>
157 <option value="linear">Linear</option>
158 </param>
159 <param name="mascot_score_weight" label="Mascot Score Weight" type="float" value="1" />
160 <param name="mascot_score_type" label="Mascot Score Normalization" type="select">
161 <option value="off" selected="true">None</option>
162 <option value="quantile">Quantile</option>
163 <option value="linear">Linear</option>
164 </param>
165 <param name="xtandem_expect_weight" label="X! Tandem (Expectation) Weight" type="float" value="-1" />
166 <param name="xtandem_expect_type" label="X! Tandem (Expectation) Normalization" type="select">
167 <option value="off" selected="true">None</option>
168 <option value="quantile">Quantile</option>
169 <option value="linear">Linear</option>
170 </param>
171 <param name="xtandem_hyperscore_weight" label="X! Tandem (hyperscore) Weight" type="float" value="1" />
172 <param name="xtandem_hyperscore_type" label="X! Tandem (hyperscore)Normalization" type="select">
173 <option value="off" selected="true">None</option>
174 <option value="quantile">Quantile</option>
175 <option value="linear">Linear</option>
176 </param>
177 <param name="ms-gf_spacevalue_weight" label="MS-GF (spacevalue) Weight" type="float" value="-1" />
178 <param name="ms-gf_spacevalue_type" label="MS-GF (spacevalue) Normalization" type="select">
179 <option value="off" selected="true">None</option>
180 <option value="quantile">Quantile</option>
181 <option value="linear">Linear</option>
182 </param>
183 </when>
184 </conditional>
185 </inputs>
186 <outputs>
187 <data format="idpdb" name="output" from_work_dir="output" />
188 </outputs>
189 <help>
190 </help>
191 </tool>
192 <!-- idpQonvert needs spectrum available EmbedSpectrumScanTimes or EmbedSpectrumSources is set.
193
194 idpQonvert -OverwriteExistingFiles true -MaxFDR 0.05 -MaxImportFDR 0.25 -MaxResultRank 3 -RerankMatches false -TruePositiveThreshold 0.01 -MaxTrainingRank 1 -Gamma 5 -Nu -0.5 -PolynomialDegree 3 -ScoreInfo "1 off myrimatch:mvh; 1 off xcorr; 1 off sequest:xcorr; 1 off sequest:deltacn; 1 off mascot:score; -1 off xexpect; 1 off x\!tandem:hyperscore; -1 off ms-gf:specevalue" -SVMType CSVC -Kernel Linear -ChargeStateHandling Partition -QonverterMethod MonteCarlo -MinPartitionSize 10 -DecoyPrefix RRRRRR -ProteinDatabase test2.fasta input.pepXML
195
196
197 ScoreInfo: 1 off myrimatch:mvh; 1 off xcorr; 1 off sequest:xcorr; 1 off sequest:deltacn; 1 off mascot:score; -1 off x!tandem:expect; 1 off x!tandem:hyperscore; -1 off ms-gf:specevalue
198
199 off is normalization: quantile, linear, or off
200
201 SVMType: CSVC, NuSVC, OneClass, EpsilonSVR, NuSVR
202 Kernel: Linear, Polynomial, RBF (radial basis function), Sigmoid
203 ChargeStateHandling: Parition, Ignore, Feature
204 TerminalSpecificityHandling: Partition, Ignore, Feature
205 MissedCleavagesHandling: Ignore, Feature
206 MassErrorHandling: Ignore, Feature
207 QonverterMethod: MonteCarlo, SingleSVM, PartitionedSVM, StaticWeighted
208
209 -->