Mercurial > repos > yhoogstrate > segmentation_fold
comparison energy-estimation-utility.xml @ 2:22d7b6019372 draft
planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/segmentation_fold_galaxy_wrapper commit 7e54643d9af0065268d5cde2f2fc9872d2de8fa9
author | yhoogstrate |
---|---|
date | Thu, 31 Mar 2016 04:16:21 -0400 |
parents | |
children | cd1bba1c66b3 |
comparison
equal
deleted
inserted
replaced
1:27f670a42ba2 | 2:22d7b6019372 |
---|---|
1 <tool id="energy_estimation_utility" name="energy-estimation-utility" version="1.6.3-0"> | |
2 <description>Estimate the maximal energy a segment needs to assign to become part of the optimal structure using segmentation-fold</description> | |
3 | |
4 <requirements> | |
5 <requirement type="package" version="1.6.3">segmentation-fold</requirement> | |
6 <requirement type="package" version="2.7.10">python</requirement> | |
7 </requirements> | |
8 | |
9 <stdio></stdio> | |
10 | |
11 <version_command>segmentation-fold --version | head -n 2 | tail -n 1 | sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//'</version_command> | |
12 | |
13 <command><![CDATA[ | |
14 energy-estimation-utility | |
15 #if $parameters.use_custom_xml == "true" | |
16 -x "${parameters.input_xml}" | |
17 #else | |
18 -x "\$SEGMENTATION_FOLD_DEFAULT_XML" | |
19 #end if | |
20 | |
21 -r ${randomization.shuffle_n_times} | |
22 > "${output_list}" | |
23 ]]></command> | |
24 | |
25 <inputs> | |
26 <conditional name="parameters"> | |
27 <param name="use_custom_xml" | |
28 type="boolean" | |
29 truevalue="true" | |
30 falsevalue="false" | |
31 selected="false" | |
32 label="Use segment definition from history" /> | |
33 | |
34 <when value="false" /> | |
35 <when value="true"> | |
36 <param name="input_xml" | |
37 type="data" | |
38 format="xml" | |
39 multiple="false" | |
40 argument="-x" | |
41 label="Custom 'segments.xml'-syntaxed file" /> | |
42 </when> | |
43 </conditional> | |
44 | |
45 <conditional name="randomization"> | |
46 <param name="do_randomization" | |
47 type="boolean" | |
48 truevalue="true" | |
49 falsevalue="false" | |
50 selected="false" | |
51 label="Randomly shuffle the sequence(s) instead" | |
52 help="This can be helpful in determining a baseline of observing an energy parameter by chance" /> | |
53 | |
54 <when value="false"> | |
55 <param name="shuffle_n_times" | |
56 type="hidden" | |
57 value="0"/> | |
58 </when> | |
59 <when value="true"> | |
60 <param name="shuffle_n_times" | |
61 type="integer" | |
62 min="0" | |
63 value="10" | |
64 argument="-r" | |
65 label="Number of times the sequences have to be shuffled and energy parameters have to be estimated on" /> | |
66 </when> | |
67 </conditional> | |
68 </inputs> | |
69 | |
70 <outputs> | |
71 <data format="text" name="output_list" label="${tool.name}" /> | |
72 </outputs> | |
73 | |
74 <tests> | |
75 <test> | |
76 <param name="use_custom_xml" value="true" /> | |
77 <param name="input_xml" value="segments_truncated.xml" ftype="xml" /> | |
78 <param name="do_randomization" value="false" /> | |
79 <param name="shuffle_n_times" value="0" /> | |
80 | |
81 <output name="output_list" file="segments_truncated.out.txt" lines_diff="2" /><!-- Accept rounding errors by diff CPU's etc. --> | |
82 </test> | |
83 <test> | |
84 <param name="use_custom_xml" value="true" /> | |
85 <param name="input_xml" value="segments_truncated.xml" ftype="xml" /> | |
86 <param name="do_randomization" value="false" /> | |
87 <param name="shuffle_n_times" value="1" /> | |
88 | |
89 <output name="output_list" file="segments_truncated.2.out.txt" lines_diff="10" /> | |
90 </test> | |
91 </tests> | |
92 | |
93 <help><![CDATA[ | |
94 The tool uses the sequences from the xml file. | |
95 ]]></help> | |
96 | |
97 <citations> | |
98 <citation type="bibtex"> | |
99 @mastersthesis{mastersthesis, | |
100 author = {Youri Hoogstrate}, | |
101 title = {An algorithm for predicting RNA 2D structures including K-turns}, | |
102 school = {University of Technology Delft, Leiden University}, | |
103 year = 2012, | |
104 address = {}, | |
105 month = 11, | |
106 note = {Research assignment for Master Computer-science}, | |
107 url = { https://yh-kt-fold.googlecode.com/files/Report.pdf } | |
108 } | |
109 </citation> | |
110 </citations> | |
111 </tool> |