Skip to content

Commit 94c141a

Browse files
SaimMomin12planemo-autoupdatebgruening
authored
Restructuring and updating test data of locarna tool (#1481)
* Updating tools/rna_tools/locarna from version 1.9.2.3 to 2.0.1 * Restructured locarna_exparnap tool * Updated locarna_multiple and associated test data * Restructured locarna_pairwise_p and related test data * Restructured locarna_pairwise and updated test data * Restructured locarna_reliability_profile and updated test data * Update tools/rna_tools/locarna/macros.xml --------- Co-authored-by: planemo-autoupdate <planemo-autoupdate@users.noreply.github.com> Co-authored-by: Björn Grüning <bjoern@gruenings.eu>
1 parent c2b1677 commit 94c141a

16 files changed

+539
-636
lines changed

tools/rna_tools/locarna/locarna_exparnap.xml

Lines changed: 42 additions & 116 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,18 @@
22
<description>
33
Pairwise Simultaneous Matching and Folding of RNAs (ExpaRNA-P)
44
</description>
5-
65
<macros>
76
<import>macros.xml</import>
87
</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"/>
1611
<command><![CDATA[
1712
exparna_p
18-
1913
'$inputA'
2014
'$inputB'
2115
22-
## -------------------- scoring parameters
23-
#
16+
## -------------------- scoring parameters -------------#
2417
$Scoring.no_stacking
2518
--alpha_1 $Scoring.alpha_1
2619
--alpha_2 $Scoring.alpha_2
@@ -35,8 +28,7 @@
3528
3629
@CONSTRAINT_ARGS@
3730
@FOLDING_ARGS@
38-
## -------------------- other parameters
39-
#
31+
## -------------------- other parameters---------------- #
4032
#if str($Other.subopt.subopt_selector) == "on"
4133
--diff-to-opt-score $Other.subopt.diff_to_opt_score
4234
--number-of-EPMs $Other.subopt.number_of_EPMs
@@ -49,7 +41,7 @@
4941
$Other.no_chaining
5042
--out-min-prob $Other.out_min_prob
5143
52-
## -------------------- output
44+
## -------------------- output ---------------- #
5345
5446
#if 'postscript' in str($outputs).split(",")
5547
--output-ps
@@ -79,7 +71,7 @@
7971
8072
@STDOUT_ARGS@
8173
82-
## -------------------- post processing
74+
## -------------------- post processing --------------#
8375
8476
#if 'anchors-pp' in str($outputs).split(",")
8577
&& mv anchors_pp_A.pp '$anchors_ppA'
@@ -89,161 +81,95 @@
8981
]]></command>
9082

9183
<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>
11091
<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>
11393
</param>
114-
11594
<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>
11896
<option value="" selected="true">Non verbose</option>
11997
<option value="--verbose">Verbose</option>
12098
</param>
121-
12299
<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"/>
143105
</section>
144-
145106
<section name="Folding" title="RNA folding parameters">
146107
<expand macro="common_folding_parameters" />
147108
</section>
148-
149109
<section name="Heuristics" title="Heuristic parameters">
150110
<expand macro="common_heuristic_parameters" />
151111
<expand macro="max_diff_parameters" />
152112
<expand macro="in_loop_ratio_parameters" />
153113
<expand macro="exparnap_in_loop_parameters" />
154114
</section>
155-
156115
<section name="Constraints" title="Constraint parameters">
157116
<expand macro="common_constraint_parameters" />
158117
</section>
159-
160-
161118
<section name="Other" title="Other parameters">
162119
<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>
168122
<option value="on">Perform suboptimal traceback of EPMs</option>
169123
</param>
170124
<when value="off" />
171125
<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" />
178128
</when>
179129
</conditional>
180130

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)"/>
202136
</section>
203137
</inputs>
204138

205139
<outputs>
206140
<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)">
209142
<filter>'postscript' in outputs</filter>
210143
</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)">
213145
<filter>'postscript' in outputs</filter>
214146
</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)">
217148
<filter>'anchors-fasta' in outputs</filter>
218149
</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)">
221151
<filter>'anchors-pp' in outputs</filter>
222152
</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)">
225154
<filter>'anchors-pp' in outputs</filter>
226155
</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)">
229157
<filter>'clustal' in outputs</filter>
230158
</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">
233160
<filter>'epm_list' in outputs</filter>
234161
</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">
237163
<filter>'chained_epm_list' in outputs</filter>
238164
</data>
239165
</outputs>
240166

241167
<tests>
242168
<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"/>
247173
<output name="stdout">
248174
<assert_contents>
249175
<has_text text="LCSEPM preprocessing..."/>

tools/rna_tools/locarna/locarna_multiple.xml

Lines changed: 10 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,14 @@
22
<description>
33
Multiple Alignment and Folding of RNAs (mlocarna)
44
</description>
5-
65
<macros>
76
<import>macros.xml</import>
87
</macros>
9-
10-
<expand macro="requirements" />
11-
12-
<expand macro="stdio" />
13-
8+
<expand macro="requirements"/>
9+
<expand macro="stdio"/>
1410
<expand macro="version" />
15-
1611
<command><![CDATA[
1712
mlocarna
18-
1913
'$input_data'
2014
#if 'stockholm' in str($outputs).split(","):
2115
--stockholm
@@ -25,8 +19,7 @@
2519
## maybe reenable later? see https://github.com/s-will/LocARNA/issues/77
2620
## --width 60
2721
28-
## -------------------- alignment mode and specific options
29-
#
22+
## -------------------- alignment mode and specific option--------- #
3023
#if str($alignment_mode.alignment_mode_selector) == "global_locarna"
3124
$alignment_mode.free_endgaps
3225
#elif str($alignment_mode.alignment_mode_selector) == "local_locarna"
@@ -78,30 +71,21 @@
7871
<option value="text">Fasta-like input with LocARNA constraints</option>
7972
</param>
8073
<when value="fasta">
81-
<param name="input_data" type="data" format="fasta" label="Sequence input"
82-
help="Sequence input in pure fasta format"
83-
/>
74+
<param name="input_data" type="data" format="fasta" label="Sequence input" help="Sequence input in pure fasta format"/>
8475
</when>
8576
<when value="text">
86-
<param name="input_data" type="data" format="text" label="Sequence input"
87-
help="Sequence input in fasta format with locarna-specific extensions"
88-
/>
77+
<param name="input_data" type="data" format="text" label="Sequence input" help="Sequence input in fasta format with locarna-specific extensions"/>
8978
</when>
9079
</conditional>
9180
<conditional name="alignment_mode">
92-
<param name="alignment_mode_selector" type="select" label="Alignment mode"
93-
help="Note that local alignment mode usually requires to turn off
94-
the 'max-diff' heuristic (maximal difference for alignment traces)."
95-
>
81+
<param name="alignment_mode_selector" type="select" label="Alignment mode" help="Note that local alignment mode usually requires to turn off the 'max-diff' heuristic (maximal difference for alignment traces).">
9682
<option value="global_locarna">Global alignment (LocARNA)</option>
9783
<option value="local_locarna">Local alignment (LocARNA)</option>
9884
<option value="probabilistic">Probabilistic alignment (LocARNA-P)</option>
9985
<option value="sparse">Global fast alignment (SPARSE)</option>
10086
</param>
10187
<when value="global_locarna">
102-
<param name="free_endgaps" type="select" label="Free endgaps"
103-
help="Specify whether gaps at the ends (all, 5', or 3' ends)
104-
of the sequences should be penalized or allowed for free.">
88+
<param name="free_endgaps" type="select" label="Free endgaps" help="Specify whether gaps at the ends (all, 5', or 3' ends)of the sequences should be penalized or allowed for free.">
10589
<option value="">No free endgaps</option>
10690
<option value="--free-endgaps">Free endgaps</option>
10791
<option value="--free-endgaps-5">Free endgaps, only 5'</option>
@@ -111,17 +95,9 @@
11195
<when value="local_locarna">
11296
</when>
11397
<when value="probabilistic">
114-
<param name="consistency_transformation" type="boolean"
115-
truevalue="--consistency-transformation" falsevalue=""
116-
checked="true" label="Consistency transformation"
117-
help="--consistency-transformation" />
118-
<param name="iterate" type="boolean"
119-
truevalue="true" falsevalue="false"
120-
checked="false" label="Iterative refinement"
121-
help="--iterate" />
122-
<param name="iterations" type="integer"
123-
value="1" label="Number of refinement iterations"
124-
help="--iterations num" />
98+
<param name="consistency_transformation" type="boolean" truevalue="--consistency-transformation" falsevalue="" checked="true" label="Consistency transformation" help="--consistency-transformation"/>
99+
<param name="iterate" type="boolean" truevalue="true" falsevalue="false" checked="false" label="Iterative refinement" help="--iterate"/>
100+
<param name="iterations" type="integer" value="1" label="Number of refinement iterations" help="--iterations num"/>
125101
</when>
126102
<when value="sparse">
127103
<section name="HeuristicsSparse" title="Heuristic parameters for SPARSE">

0 commit comments

Comments
 (0)