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