|
2 | 2 | <description> |
3 | 3 | Pairwise Simultaneous Matching and Folding of RNAs (ExpaRNA-P) |
4 | 4 | </description> |
5 | | - |
6 | 5 | <macros> |
7 | 6 | <import>macros.xml</import> |
8 | 7 | </macros> |
9 | | - |
10 | | - <expand macro="requirements" /> |
11 | | - |
12 | | - <expand macro="stdio" /> |
13 | | - |
14 | | - <expand macro="version" /> |
15 | | - |
| 8 | + <expand macro="requirements"/> |
| 9 | + <expand macro="stdio"/> |
| 10 | + <expand macro="version"/> |
16 | 11 | <command><![CDATA[ |
17 | 12 | exparna_p |
18 | | -
|
19 | 13 | '$inputA' |
20 | 14 | '$inputB' |
21 | 15 |
|
22 | | - ## -------------------- scoring parameters |
23 | | - # |
| 16 | + ## -------------------- scoring parameters -------------# |
24 | 17 | $Scoring.no_stacking |
25 | 18 | --alpha_1 $Scoring.alpha_1 |
26 | 19 | --alpha_2 $Scoring.alpha_2 |
|
35 | 28 |
|
36 | 29 | @CONSTRAINT_ARGS@ |
37 | 30 | @FOLDING_ARGS@ |
38 | | - ## -------------------- other parameters |
39 | | - # |
| 31 | + ## -------------------- other parameters---------------- # |
40 | 32 | #if str($Other.subopt.subopt_selector) == "on" |
41 | 33 | --diff-to-opt-score $Other.subopt.diff_to_opt_score |
42 | 34 | --number-of-EPMs $Other.subopt.number_of_EPMs |
|
49 | 41 | $Other.no_chaining |
50 | 42 | --out-min-prob $Other.out_min_prob |
51 | 43 |
|
52 | | - ## -------------------- output |
| 44 | + ## -------------------- output ---------------- # |
53 | 45 |
|
54 | 46 | #if 'postscript' in str($outputs).split(",") |
55 | 47 | --output-ps |
|
79 | 71 |
|
80 | 72 | @STDOUT_ARGS@ |
81 | 73 |
|
82 | | - ## -------------------- post processing |
| 74 | + ## -------------------- post processing --------------# |
83 | 75 |
|
84 | 76 | #if 'anchors-pp' in str($outputs).split(",") |
85 | 77 | && mv anchors_pp_A.pp '$anchors_ppA' |
|
89 | 81 | ]]></command> |
90 | 82 |
|
91 | 83 | <inputs> |
92 | | - <param name="inputA" type="data" format="fasta,clustal,txt" label="Sequence A" |
93 | | - help="First sequence in fasta, clustal, dp_ps, or PP2.0 format" |
94 | | - /> |
95 | | - <param name="inputB" type="data" format="fasta,clustal,txt" label="Sequence B" |
96 | | - help="Second sequence in fasta, clustal, dp_ps, or PP2.0 format" |
97 | | - /> |
98 | | - |
99 | | - <param name="outputs" type="select" display="checkboxes" multiple="true" |
100 | | - label="Output options"> |
101 | | - <option value="postscript" selected="false">Best EPM chain |
102 | | - as colored postscript</option> |
103 | | - <option value="anchors-fasta" selected="false">Fasta with anchor |
104 | | - constraints from chaining</option> |
105 | | - <option value="anchors-pp" selected="false">LocARNA PP |
106 | | - files merging input PPs and anchor constraints from |
107 | | - chaining</option> |
108 | | - <option value="clustal" selected="false">Chain as |
109 | | - alignment in Clustal format</option> |
| 84 | + <param name="inputA" type="data" format="fasta,clustal,txt" label="Sequence A" help="First sequence in fasta, clustal, dp_ps, or PP2.0 format"/> |
| 85 | + <param name="inputB" type="data" format="fasta,clustal,txt" label="Sequence B" help="Second sequence in fasta, clustal, dp_ps, or PP2.0 format"/> |
| 86 | + <param name="outputs" type="select" display="checkboxes" multiple="true" label="Output options"> |
| 87 | + <option value="postscript" selected="false">Best EPM chain as colored postscript</option> |
| 88 | + <option value="anchors-fasta" selected="false">Fasta with anchor constraints from chaining</option> |
| 89 | + <option value="anchors-pp" selected="false">LocARNA PP files merging input PPs and anchor constraints from chaining</option> |
| 90 | + <option value="clustal" selected="false">Chain as alignment in Clustal format</option> |
110 | 91 | <option value="epm_list" selected="false">List of the found EPMs</option> |
111 | | - <option value="chained_epm_list" selected="false">List of |
112 | | - EPMs in the best chain</option> |
| 92 | + <option value="chained_epm_list" selected="false">List of EPMs in the best chain</option> |
113 | 93 | </param> |
114 | | - |
115 | 94 | <param name="stdout_verbosity" type="select" label="Standard output verbosity"> |
116 | | - <option value="--quiet">Don't report standard |
117 | | - output</option> |
| 95 | + <option value="--quiet">Don't report standard output</option> |
118 | 96 | <option value="" selected="true">Non verbose</option> |
119 | 97 | <option value="--verbose">Verbose</option> |
120 | 98 | </param> |
121 | | - |
122 | 99 | <section name="Scoring" title="Scoring parameters"> |
123 | | - <param argument="--alpha_1" |
124 | | - type="integer" value="1" min="0" max="50" |
125 | | - label="Sequence score factor" |
126 | | - /> |
127 | | - <param argument="--alpha_2" |
128 | | - type="integer" value="5" min="0" max="50" |
129 | | - label="Structure score factor" |
130 | | - /> |
131 | | - <param argument="--no-stacking" type="boolean" |
132 | | - truevalue="" falsevalue="--no-stacking" |
133 | | - label="Add stacking terms" |
134 | | - /> |
135 | | - <param argument="--alpha_3" |
136 | | - type="integer" value="5" min="0" max="50" |
137 | | - label="Stacking score factor" |
138 | | - /> |
139 | | - <param argument="--struct-mismatch-score" |
140 | | - type="integer" value="-10" min="-100" max="0" |
141 | | - label="Score for nucleotide mismatch in base pair match" |
142 | | - /> |
| 100 | + <param argument="--alpha_1" type="integer" value="1" min="0" max="50" label="Sequence score factor"/> |
| 101 | + <param argument="--alpha_2" type="integer" value="5" min="0" max="50" label="Structure score factor"/> |
| 102 | + <param argument="--no-stacking" type="boolean" truevalue="" falsevalue="--no-stacking" label="Add stacking terms"/> |
| 103 | + <param argument="--alpha_3" type="integer" value="5" min="0" max="50" label="Stacking score factor"/> |
| 104 | + <param argument="--struct-mismatch-score" type="integer" value="-10" min="-100" max="0" label="Score for nucleotide mismatch in base pair match"/> |
143 | 105 | </section> |
144 | | - |
145 | 106 | <section name="Folding" title="RNA folding parameters"> |
146 | 107 | <expand macro="common_folding_parameters" /> |
147 | 108 | </section> |
148 | | - |
149 | 109 | <section name="Heuristics" title="Heuristic parameters"> |
150 | 110 | <expand macro="common_heuristic_parameters" /> |
151 | 111 | <expand macro="max_diff_parameters" /> |
152 | 112 | <expand macro="in_loop_ratio_parameters" /> |
153 | 113 | <expand macro="exparnap_in_loop_parameters" /> |
154 | 114 | </section> |
155 | | - |
156 | 115 | <section name="Constraints" title="Constraint parameters"> |
157 | 116 | <expand macro="common_constraint_parameters" /> |
158 | 117 | </section> |
159 | | - |
160 | | - |
161 | 118 | <section name="Other" title="Other parameters"> |
162 | 119 | <conditional name="subopt"> |
163 | | - <param name="subopt_selector" type="select" |
164 | | - label="Suboptimal traceback of EPMs (exact pattern matches)" |
165 | | - help="(--subopt)"> |
166 | | - <option value="off">Enumerate only optimal |
167 | | - EPMs</option> |
| 120 | + <param name="subopt_selector" type="select" label="Suboptimal traceback of EPMs (exact pattern matches)" help="(--subopt)"> |
| 121 | + <option value="off">Enumerate only optimal EPMs</option> |
168 | 122 | <option value="on">Perform suboptimal traceback of EPMs</option> |
169 | 123 | </param> |
170 | 124 | <when value="off" /> |
171 | 125 | <when value="on"> |
172 | | - <param argument="--diff-to-opt-score" |
173 | | - type="integer" value="-1" min="-20" max="0" |
174 | | - label="Maximum score difference to optimum" /> |
175 | | - <param argument="--number-of-EPMs" |
176 | | - type="integer" value="100" min="1" max="10000" |
177 | | - label="Maximal number of EPMs" /> |
| 126 | + <param argument="--diff-to-opt-score" type="integer" value="-1" min="-20" max="0" label="Maximum score difference to optimum" /> |
| 127 | + <param argument="--number-of-EPMs" type="integer" value="100" min="1" max="10000" label="Maximal number of EPMs" /> |
178 | 128 | </when> |
179 | 129 | </conditional> |
180 | 130 |
|
181 | | - <param argument="--min-score" |
182 | | - type="integer" value="30" min="0" max="1000" |
183 | | - label="Minimum score of EPM" /> |
184 | | - |
185 | | - <param argument="--inexact-struct-match" type="boolean" |
186 | | - truevalue="--inexact-struct-match" falsevalue="" |
187 | | - label="Allow inexact structure matches"/> |
188 | | - |
189 | | - <param argument="--add-filter" type="boolean" |
190 | | - truevalue="--add-filter" falsevalue="" checked="false" |
191 | | - label="Apply an additional filter to enumerate only |
192 | | - EPMs that are maximally extended (only inexact)"/> |
193 | | - |
194 | | - <param argument="--no-chaining" type="boolean" |
195 | | - truevalue="" falsevalue="--no-chaining" checked="true" |
196 | | - label="Find best overall chain by chaining"/> |
197 | | - |
198 | | - <param argument="--out-min-prob" |
199 | | - type="float" value="0.0005" min="0" max="1" |
200 | | - label="Minimal probability in output (min-prob overrides if smaller)"/> |
201 | | - |
| 131 | + <param argument="--min-score" type="integer" value="30" min="0" max="1000" label="Minimum score of EPM" /> |
| 132 | + <param argument="--inexact-struct-match" type="boolean" truevalue="--inexact-struct-match" falsevalue="" label="Allow inexact structure matches"/> |
| 133 | + <param argument="--add-filter" type="boolean" truevalue="--add-filter" falsevalue="" checked="false" label="Apply an additional filter to enumerate only EPMs that are maximally extended (only inexact)"/> |
| 134 | + <param argument="--no-chaining" type="boolean" truevalue="" falsevalue="--no-chaining" checked="true" label="Find best overall chain by chaining"/> |
| 135 | + <param argument="--out-min-prob" type="float" value="0.0005" min="0" max="1" label="Minimal probability in output (min-prob overrides if smaller)"/> |
202 | 136 | </section> |
203 | 137 | </inputs> |
204 | 138 |
|
205 | 139 | <outputs> |
206 | 140 | <expand macro="standard_outupt" /> |
207 | | - <data format="ps" name="ps_fileA" |
208 | | - label="${tool.name} on ${on_string}: chain in RNA 1 (postscript)"> |
| 141 | + <data format="ps" name="ps_fileA" label="${tool.name} on ${on_string}: chain in RNA 1 (postscript)"> |
209 | 142 | <filter>'postscript' in outputs</filter> |
210 | 143 | </data> |
211 | | - <data format="ps" name="ps_fileB" |
212 | | - label="${tool.name} on ${on_string}: chain in RNA 2 (postscript)"> |
| 144 | + <data format="ps" name="ps_fileB" label="${tool.name} on ${on_string}: chain in RNA 2 (postscript)"> |
213 | 145 | <filter>'postscript' in outputs</filter> |
214 | 146 | </data> |
215 | | - <data format="txt" name="anchors_fasta" |
216 | | - label="${tool.name} on ${on_string}: anchor constraints from chain (fasta)"> |
| 147 | + <data format="txt" name="anchors_fasta" label="${tool.name} on ${on_string}: anchor constraints from chain (fasta)"> |
217 | 148 | <filter>'anchors-fasta' in outputs</filter> |
218 | 149 | </data> |
219 | | - <data format="txt" name="anchors_ppA" |
220 | | - label="${tool.name} on ${on_string}: anchors for RNA 1 (pp)"> |
| 150 | + <data format="txt" name="anchors_ppA" label="${tool.name} on ${on_string}: anchors for RNA 1 (pp)"> |
221 | 151 | <filter>'anchors-pp' in outputs</filter> |
222 | 152 | </data> |
223 | | - <data format="txt" name="anchors_ppB" |
224 | | - label="${tool.name} on ${on_string}: anchors for RNA 2 (pp)"> |
| 153 | + <data format="txt" name="anchors_ppB" label="${tool.name} on ${on_string}: anchors for RNA 2 (pp)"> |
225 | 154 | <filter>'anchors-pp' in outputs</filter> |
226 | 155 | </data> |
227 | | - <data format="clustal" name="clustal" |
228 | | - label="${tool.name} on ${on_string}: chain as alignment (clustal)"> |
| 156 | + <data format="clustal" name="clustal" label="${tool.name} on ${on_string}: chain as alignment (clustal)"> |
229 | 157 | <filter>'clustal' in outputs</filter> |
230 | 158 | </data> |
231 | | - <data format="tabular" name="epm_list" |
232 | | - label="${tool.name} on ${on_string}: list of epms"> |
| 159 | + <data format="tabular" name="epm_list" label="${tool.name} on ${on_string}: list of epms"> |
233 | 160 | <filter>'epm_list' in outputs</filter> |
234 | 161 | </data> |
235 | | - <data format="tabular" name="chained_epm_list" |
236 | | - label="${tool.name} on ${on_string}: list of epms in chain"> |
| 162 | + <data format="tabular" name="chained_epm_list" label="${tool.name} on ${on_string}: list of epms in chain"> |
237 | 163 | <filter>'chained_epm_list' in outputs</filter> |
238 | 164 | </data> |
239 | 165 | </outputs> |
240 | 166 |
|
241 | 167 | <tests> |
242 | 168 | <test expect_num_outputs="2"> |
243 | | - <param name="inputA" value="tRNA_2-1.fa" /> |
244 | | - <param name="inputB" value="tRNA_2-2.fa" /> |
245 | | - <param name="outputs" value="epm_list" /> |
246 | | - <output name="epm_list" file="tRNA_2.epms" /> |
| 169 | + <param name="inputA" value="tRNA_2-1.fa"/> |
| 170 | + <param name="inputB" value="tRNA_2-2.fa"/> |
| 171 | + <param name="outputs" value="epm_list"/> |
| 172 | + <output name="epm_list" file="tRNA_2.epms"/> |
247 | 173 | <output name="stdout"> |
248 | 174 | <assert_contents> |
249 | 175 | <has_text text="LCSEPM preprocessing..."/> |
|
0 commit comments