comparison mea.xml @ 0:399593f05b4d draft

planemo upload commit 6f0b360c2f718f0d3bd436db0f89af3805d7c332-dirty
author rnateam
date Sat, 01 Aug 2015 04:46:19 -0400
parents
children 9ebd60531aa6
comparison
equal deleted inserted replaced
-1:000000000000 0:399593f05b4d
1 <tool id="mea" name="MEA" version="0.6.4.0">
2 <description>Predict MEA structures and compare structures of RNAs</description>
3 <requirements>
4 <requirement type="package" version="2.22.6">gengetopt</requirement>
5 <requirement type="package" version="0.6.4">mea</requirement>
6 </requirements>
7 <stdio>
8 <exit_code range=":-1"/>
9 <exit_code range="1:" />
10 </stdio>
11 <version_command>mea --version</version_command>
12 <command><![CDATA[
13 mea
14 #if str($predict_mode.predict_selector) == "predict":
15 $predict_mode.dotplot
16 #if str($predict_mode.mea_parameters.mea_parameters_selector) == "no_default"
17 --alpha $predict_mode.mea_parameters.alpha
18 --beta $predict_mode.mea_parameters.beta
19 --gamma $predict_mode.mea_parameters.gamma
20 --delta $predict_mode.mea_parameters.delta
21 #end if
22 #else
23 --structure `cat $predict_mode.structure`
24 #end if
25 #if str($compare_mode.compare_selector) == 'compare':
26 --reference `cat $compare_mode.reference`
27 $compare_mode.slide_rule
28 $compare_mode.conflict_rule
29 #end if
30 > $stdout
31 ]]></command>
32 <inputs>
33 <conditional name="predict_mode">
34 <param name="predict_selector" type="select" label="Predict MEA structure">
35 <option value="predict">Predict MEA structure</option>
36 <option value="compare">Specify structure (for comparison)</option>
37 </param>
38 <when value="predict">
39 <param name="dotplot" type="data" format="rna_eps" label="Dotplot" optional="False"
40 help="Dotplot file (RNA base pair probabilities)"/>
41 <conditional name="mea_parameters">
42 <param name="mea_parameters_selector" type="boolean" label="Use default parameters"
43 truevalue="default" falsevalue="no_default" checked="True"
44 help="The default parameters assign a base pair weight
45 of 0.5 and penalize long base pairs." />
46 <when value="default" />
47 <when value="no_default">
48 <param name="alpha" label="Alpha value" type="float"
49 optional="False" value="0.012"
50 help="Slope of base pair distance penalty. (--alpha)"/>
51 <param name="beta" label="Beta value" type="float"
52 optional="False" value="315"
53 help="Turning point of base pair distance penalty. (--beta)" />
54 <param name="gamma" label="Gamma value" type="float"
55 optional="False" value="0.5"
56 help="Base pair weight factor. (--gamma)" />
57 <param name="delta" label="Delta value" type="float"
58 optional="False" value="0.003"
59 help="Minimum penalty factor for base pairs. (--delta)" />
60 </when>
61 </conditional>
62 </when>
63 <when value="compare">
64 <param name="structure" format="txt" type="data" label="Structure" optional="False"
65 help="(Predicted) RNA secondary structure for comparison to a reference structure. (--structure)" />
66 </when>
67 </conditional>
68 <conditional name="compare_mode">
69 <param name="compare_selector" type="select" label="Compare to a reference structure"
70 help="Whether to compare the predicted (or specified) structure to a reference structure.">
71 <option value="dont_compare">Do not compare</option>
72 <option value="compare">Compare to reference structure</option>
73 </param>
74 <when value="dont_compare" />
75 <when value="compare">
76 <param name="reference"
77 optional="false"
78 format="txt" type="data"
79 label="Reference"
80 help="Reference structure in dot-bracket format"/>
81 <param name="slide_rule" label="Slide Rule" type="boolean"
82 optional="False" checked="True" falsevalue="--no-slide-rule" truevalue="" help="Use slide rule. (--no-slide-rule)" />
83 <param name="conflict_rule" label="Conflict Rule" type="boolean"
84 optional="False" checked="True" falsevalue="--no-conflict-rule" truevalue="" help="Use onflict rule. (--no-conflict-rule)"/>
85 </when>
86 </conditional>
87 </inputs>
88 <outputs>
89 <data format="txt" name="stdout" label="${tool.name} on ${on_string}" />
90 </outputs>
91 <tests>
92 <test>
93 <param name="mea_parameter_selector" value="default" />
94 <param name="predict_selector" value="predict" />
95 <param name="compare_selector" value="compare" />
96 <param name="dotplot" value="test_dp.ps" />
97 <param name="reference" value="test_reference.txt" />
98 <output name="stdout" file="test_predict.out" />
99 </test>
100 <test>
101 <param name="mea_parameter_selector" value="default" />
102 <param name="predict_selector" value="compare" />
103 <param name="compare_selector" value="compare" />
104 <param name="structure" value="test_structure.txt" />
105 <param name="reference" value="test_reference.txt" />
106 <output name="stdout" file="test_compare.out" />
107 </test>
108 </tests>
109 <help><![CDATA[
110 =====
111 MEA
112 =====
113
114 `MEA <http://www.bioinf.uni-leipzig.de/Software/mea/>`_ predicts RNA maximum expected accuracy structures from RNA base pair probabilities and optionally compares them to a reference structure. In a special mode it skips the prediction and compares a
115 given structure to the reference. For the prediction, MEA allows to
116 penalize long base pairs, using parameters alpha, beta, gamma, and
117 delta. For the comparison of secondary structures, several measures
118 are computed from the confusion matrix of the RNA base pairs.
119
120 ------
121 Inputs
122 ------
123
124 The tool accepts dot plot files as generated by RNAfold -p.
125
126 For (predicted) structure and reference, the tool accepts
127 dot-bracket structures with pseudoknots (supporting bracket pairs
128 (),{},[],<>,Aa,Bb,...)
129
130 -------
131 Outputs
132 -------
133
134 If predicting a structure, the tool outputs the sequence and the
135 predicted dot bracket strucuture with computed score in parenthesis
136 following the structure. This mimicks the output of the Vienna
137 tools.
138
139 The result of structure comparison is reported as a line of numbers
140
141 TP FP FN TN SENS PPV F1 MCC
142
143 where
144
145 * TP = # true positives
146
147 * FP = # false positives
148
149 * FN = # false negatives
150
151 * TN = # true negatives
152
153 * SENS = TP/(TP+FN) 'Sensitivity'http://www.bioinf.uni-leipzig.de/Software/mea/
154
155 * PPV = TP/(TP+FP) 'Positive Predictive Value'
156
157 * F1 = PPV*SENS / (PPV+SENS), if PPV+SENS!=0; 0, otherwise 'F1-score'
158
159 * MCC = (TP*TN - FP*FN) / sqrt( (TP+FP)*(TP+FN)*(TN+FP)*(TN+FN) ) 'Mathews correlation coefficient'
160
161
162 Special rules for prediction evaluation:
163 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
164
165 * Slide rule: tolerate shift of one base pair end by one base. This
166 rule directly affects the number of true positives.
167 * Conflict rule: predicted base pairs are false only if they
168 conflict with the reference; two base pair conflict if and only if
169 they share one end This rule directly affects the number of false
170 positives.
171
172 ]]></help>
173 <citations>
174 <citation type="doi">10.1007/978-3-319-02624-4_1</citation>
175 </citations>
176 </tool>