comparison segmentation-fold.xml @ 0:09e921a25c68 draft

planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/segmentation_fold_galaxy_wrapper commit b37cb65736e2a6e76b94a9fa12a5887046437e36
author yhoogstrate
date Mon, 03 Aug 2015 08:28:39 -0400
parents
children 27f670a42ba2
comparison
equal deleted inserted replaced
-1:000000000000 0:09e921a25c68
1 <tool id="segmentation_fold" name="segmentation-fold" version="0.2.0">
2 <description>RNA-Folding including predefined segments including K-turns</description>
3
4 <requirements>
5 <requirement type="package" version="1.0.0">segmentation-fold</requirement>
6 </requirements>
7
8 <stdio></stdio>
9
10 <version_command>segmentation-fold -V | head -n 2 | tail -n 1 | sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//'</version_command>
11
12 <command><![CDATA[
13 segmentation-fold
14
15 #if $input.method == "fasta"
16 -f $input.input_fasta
17 #else
18 -s $input.input_sequence
19 #end if
20
21 -p $predict_segments
22 -h $min_hairpin_size
23
24 #if $parameters.settings == "default"
25 -x "${SEGMENTATION_FOLD_DEFAULT_XML}"
26 #else
27 -x $parameters.input_xml
28 #end if
29
30 -t \${GALAXY_SLOTS:-2}
31 > $output_dbn
32 ]]></command>
33
34 <inputs>
35
36 <conditional name="input">
37 <param name="method" type="select" label="Energy parameters">
38 <option value="fasta" selected="true">As FASTA-file</option>
39 <option value="text">As text</option>
40 </param>
41 <when value="fasta">
42 <param name="input_fasta" type="data" format="fasta" label="Fasta file with RNA-sequece (-f)" />
43 </when>
44 <when value="text">
45 <param name="input_sequence" type="text" label="RNA-sequece (-s)" />
46 </when>
47 </conditional>
48
49 <param name="predict_segments" type="boolean" truevalue="1" falsevalue="0" checked="true" label="Enable segment prediction functionality (-p)" />
50 <param name="min_hairpin_size" type="integer" min="1" value="3" label="Minimum hairpin size (-h)" />
51
52 <conditional name="parameters">
53 <param name="settings" type="select" label="Energy parameters">
54 <option value="default" selected="true">Default</option>
55 <option value="custom">Custom</option>
56 </param>
57 <when value="default" />
58 <when value="custom">
59 <param name="input_xml" type="data" format="xml" multiple="false" label="Use custom 'segments.xml'-syntaxed file (-x)" />
60 </when>
61 </conditional>
62 </inputs>
63
64 <outputs>
65 <data format="dot-bracket" name="output_dbn" label="${tool.name} on ${input.input_fasta.hid + ': ' + input.input_fasta.name if $input.method == 'fasta' else $input.input_sequence.upper() }" />
66 </outputs>
67
68 <tests>
69 <test>
70 <param name="input_fasta" value="test_01.fa" ftype="fasta" />
71 <output name="output_dbn" file="test_01.dbn" />
72 </test>
73 <test>
74 <param name="input_fasta" value="test_02.fa" ftype="fasta" />
75 <output name="output_dbn" file="test_02.dbn" />
76 </test>
77 <test>
78 <param name="input_fasta" value="test_03.fa" ftype="fasta" />
79 <output name="output_dbn" file="test_03.dbn" />
80 </test>
81 <test>
82 <param name="input_fasta" value="test_04.fa" ftype="fasta" />
83 <output name="output_dbn" file="test_04.dbn" />
84 </test>
85 <test>
86 <param name="input_fasta" value="test_05.fa" ftype="fasta" />
87 <output name="output_dbn" file="test_05.dbn" />
88 </test>
89 <test>
90 <param name="input_fasta" value="test_06.fa" ftype="fasta" />
91 <output name="output_dbn" file="test_06.dbn" />
92 </test>
93 <test>
94 <param name="input_fasta" value="test_07.fa" ftype="fasta" />
95 <output name="output_dbn" file="test_07.dbn" />
96 </test>
97 <test>
98 <param name="input_fasta" value="test_08.fa" ftype="fasta" />
99 <output name="output_dbn" file="test_08.dbn" />
100 </test>
101 <test>
102 <param name="input_fasta" value="test_09.fa" ftype="fasta" />
103 <output name="output_dbn" file="test_09.dbn" />
104 </test>
105 <test>
106 <param name="input_fasta" value="test_10.fa" ftype="fasta" />
107 <output name="output_dbn" file="test_10.dbn" />
108 </test>
109 <test>
110 <param name="input_fasta" value="test_11.fa" ftype="fasta" />
111 <output name="output_dbn" file="test_11.dbn" />
112 </test>
113 <test>
114 <param name="input_fasta" value="test_12.fa" ftype="fasta" />
115 <output name="output_dbn" file="test_12.dbn" />
116 </test>
117 <test>
118 <param name="input_fasta" value="test_13.fa" ftype="fasta" />
119 <output name="output_dbn" file="test_13.dbn" />
120 </test>
121 <test>
122 <param name="input_fasta" value="test_14.fa" ftype="fasta" />
123 <output name="output_dbn" file="test_14.dbn" />
124 </test>
125 <test>
126 <param name="input_fasta" value="test_15.fa" ftype="fasta" />
127 <output name="output_dbn" file="test_15.dbn" />
128 </test>
129 <test>
130 <param name="input_fasta" value="test_16.fa" ftype="fasta" />
131 <output name="output_dbn" file="test_16.dbn" />
132 </test>
133 <test>
134 <param name="input_fasta" value="test_17.fa" ftype="fasta" />
135 <output name="output_dbn" file="test_17.dbn" />
136 </test>
137 <test>
138 <param name="input_fasta" value="test_18.fa" ftype="fasta" />
139 <output name="output_dbn" file="test_18.dbn" />
140 </test>
141 <test>
142 <param name="input_fasta" value="test_19.fa" ftype="fasta" />
143 <output name="output_dbn" file="test_19.dbn" />
144 </test>
145 <test>
146 <param name="input_fasta" value="test_20.fa" ftype="fasta" />
147 <output name="output_dbn" file="test_20.dbn" />
148 </test>
149 <test>
150 <param name="input_fasta" value="test_21.fa" ftype="fasta" />
151 <output name="output_dbn" file="test_21.dbn" />
152 </test>
153 <test>
154 <param name="input_fasta" value="test_22.fa" ftype="fasta" />
155 <output name="output_dbn" file="test_22.dbn" />
156 </test>
157 <test>
158 <param name="input_fasta" value="test_23.fa" ftype="fasta" />
159 <output name="output_dbn" file="test_23.dbn" />
160 </test>
161 <test>
162 <param name="input_fasta" value="test_24.fa" ftype="fasta" />
163 <output name="output_dbn" file="test_24.dbn" />
164 </test>
165 <test>
166 <param name="input_fasta" value="test_25.fa" ftype="fasta" />
167 <output name="output_dbn" file="test_25.dbn" />
168 </test>
169 <test>
170 <param name="input_fasta" value="test_26.fa" ftype="fasta" />
171 <output name="output_dbn" file="test_26.dbn" />
172 </test>
173 <test>
174 <param name="input_fasta" value="test_27.fa" ftype="fasta" />
175 <output name="output_dbn" file="test_27.dbn" />
176 </test>
177 <test>
178 <param name="input_fasta" value="test_28.fa" ftype="fasta" />
179 <output name="output_dbn" file="test_28.dbn" />
180 </test>
181 </tests>
182
183 <help><![CDATA[
184 Segmentation-fold is a bioinformatics application that predicts RNA
185 2D-structure with an extended version of the Zuker algorithm. This
186 modification contains a new "structure element" named a segment and is
187 capable of folding a pre-defined substructure with multiple canonical
188 or non-canonical pairings.
189
190 This allows folding of more complex structures like the K-turns, which
191 are also part of the implemented free energy tables. These thermodynamic
192 parameters (free Gibbs energy levels) have been estimated using a
193 computational approach and therefore lack accuracy.
194 ]]></help>
195
196 <citations>
197 <citation type="bibtex">
198 @mastersthesis{mastersthesis,
199 author = {Youri Hoogstrate},
200 title = {An algorithm for predicting RNA 2D structures including K-turns},
201 school = {University of Technology Delft, Leiden University},
202 year = 2012,
203 address = {},
204 month = 11,
205 note = {Research assignment for Master Computer-science},
206 url = { https://yh-kt-fold.googlecode.com/files/Report.pdf }
207 }
208 </citation>
209 </citations>
210 </tool>