Mercurial > repos > yhoogstrate > unafold
comparison unafold.xml @ 1:37198dc9311c draft default tip
planemo upload for repository https://github.com/ErasmusMC-Bioinformatics/unafold_galaxy_wrapper commit 3d01452f19416679047a05e4c0a05c15d11f34ea
author | yhoogstrate |
---|---|
date | Wed, 24 Feb 2016 11:46:54 -0500 |
parents | bf022d3751fa |
children |
comparison
equal
deleted
inserted
replaced
0:bf022d3751fa | 1:37198dc9311c |
---|---|
1 <?xml version="1.0"?> | 1 <?xml version="1.0"?> |
2 <tool id="unafold" name="UNAFold" version="1.0.0"> | 2 <tool id="unafold" name="UNAFold" version="1.1.0"> |
3 <description>UNAFold RNA and DNA structure prediction</description> | 3 <description>UNAFold RNA and DNA structure prediction</description> |
4 | 4 |
5 <requirements> | 5 <requirements> |
6 <requirement type="package" version="3.8">unafold</requirement> | 6 <requirement type="package" version="3.8">unafold</requirement> |
7 </requirements> | 7 </requirements> |
8 | 8 |
9 <stdio> | 9 <stdio> |
10 <regex match="mv: cannot stat ..: No such file or directory" source="stderr" level="fatal" description="Could not find CT output file\n" /> | 10 <regex match="mv: cannot stat ..: No such file or directory" source="stderr" level="fatal" description="Could not find CT output file\n" /> |
11 </stdio> | 11 </stdio> |
12 | 12 |
13 <version_command>UNAFold.pl --version</version_command> | 13 <version_command>UNAFold.pl --version</version_command> |
14 | 14 |
15 <command> | 15 <command><![CDATA[ |
16 #if str($input_source.select_fasta) == "false" | |
17 echo ">Sequence" > "input.fasta" && | |
18 echo "${input_source.input_sequence}" >> "input.fasta" && | |
19 #end if | |
20 | |
16 UNAFold.pl | 21 UNAFold.pl |
17 -n $n.a | 22 -n $n.a |
18 -t $temp | 23 -t $temp |
19 | |
20 #if $n.a == "DNA" | 24 #if $n.a == "DNA" |
21 -N $sodium | 25 -N $sodium |
22 -M $magnesium | 26 -M $magnesium |
23 #end if | 27 #end if |
28 | |
29 #if str($input_source.select_fasta) == "false" | |
30 "input.fasta" | |
31 #else | |
32 "${input_source.input_file}" | |
33 #end if | |
34 && | |
24 | 35 |
25 $input_file && | 36 output=\$(ls | grep \.ct | sort -r | head -n 1) && |
26 output=\$(ls | grep \.ct | sort -r | head -n 1) && | 37 |
27 mv "\$output" "$output_ct" | 38 mv "\$output" "$output_ct" |
28 </command> | 39 ]]></command> |
29 | 40 |
30 <inputs> | 41 <inputs> |
31 <param format="fasta" name="input_file" type="data" label="Input sequence (FASTA)"/> | 42 <conditional name="input_source"> |
43 <param name="select_fasta" type="boolean" truevalue="true" falsevalue="false" label="Input from FASTA file" selected="false" /> | |
44 | |
45 <when value="true"> | |
46 <param format="fasta" name="input_file" type="data" label="Input sequence (FASTA)"/> | |
47 </when> | |
48 <when value="false"> | |
49 <param name="input_sequence" type="text" label="Input sequence"/> | |
50 </when> | |
51 </conditional> | |
32 | 52 |
33 <conditional name="n"> | 53 <conditional name="n"> |
34 <param name="a" type="select" label="Nucleic Acid Type"> | 54 <param name="a" type="select" label="Nucleic Acid Type"> |
35 <option value="RNA" selected="true">RNA</option> | 55 <option value="RNA" selected="true">RNA</option> |
36 <option value="DNA">DNA</option> | 56 <option value="DNA">DNA</option> |
44 </when> | 64 </when> |
45 </conditional> | 65 </conditional> |
46 | 66 |
47 <param name="temp" type="integer" size="3" value="37" min="0" max="100" label="Temperature (°C)"/> | 67 <param name="temp" type="integer" size="3" value="37" min="0" max="100" label="Temperature (°C)"/> |
48 </inputs> | 68 </inputs> |
49 | 69 |
50 <outputs> | 70 <outputs> |
51 <data format="ct" name="output_ct" label="${tool.name} on ${input_file.hid}: ${input_file.name}"/> | 71 <data format="ct" name="output_ct" label="${tool.name}"/> |
52 </outputs> | 72 </outputs> |
53 | 73 |
54 <tests> | 74 <tests> |
55 <test> | 75 <test> |
76 <param name="select_fasta" value="true" /> | |
56 <param name="input_file" value="test1_input.fa" ftype="fasta" /> | 77 <param name="input_file" value="test1_input.fa" ftype="fasta" /> |
57 <param name="temp" value="37" /> | 78 <param name="temp" value="37" /> |
58 | 79 |
59 <output name="output_ct" file="test1_output.ct" /> | 80 <output name="output_ct" file="test1_output.ct" /> |
60 </test> | 81 </test> |
82 <test> | |
83 <param name="select_fasta" value="false" /> | |
84 <param name="input_sequence" value="GGGGGaaaCCCCC" /> | |
85 <param name="temp" value="37" /> | |
86 | |
87 <output name="output_ct" file="test1_output.ct" lines_diff="2" /><!-- Sequence name (header) differs --> | |
88 </test> | |
61 </tests> | 89 </tests> |
62 | 90 |
63 <help> | 91 <help><![CDATA[ |
64 Usage: UNAFold.pl [options] file [file] | 92 ``Usage: UNAFold.pl [options] file [file]`` |
65 | 93 |
66 Options: | 94 ``Options:`` |
67 -V, --version | 95 ``-V, --version`` |
68 -h, --help | |
69 -n, --NA=(RNA | DNA) (defaults to RNA) | |
70 -t, --temp=<temperature> (defaults to 37) | |
71 -N, --sodium=<[Na+] in M> (defaults to 1) | |
72 -M, --magnesium=<[Mg++] in M> (defaults to 0) | |
73 -p, --polymer | |
74 -C, --Ct=<total strand concentration> | |
75 -I, --noisolate | |
76 -m, --maxbp=<maximum basepair distance> | |
77 -c, --constraints=<name of constraints file> (defaults to prefix.aux) | |
78 -P, --percent=<energy increment percent> (defaults to 5) | |
79 -W, --window=<window size> (default set by sequence length) | |
80 -X, --max=<maximum number of foldings> (defaults to 100) | |
81 --ann=(none | p-num | ss-count) (defaults to none) | |
82 --mode=(auto | bases | lines) (defaults to auto) | |
83 --label=<base numbering frequency> | |
84 --rotate=<structure rotation angle> | |
85 --run-type=(text | html) (defaults to text) | |
86 --model=(EM | PF) (defaults to EM) | |
87 --circular | |
88 Obscure options: | |
89 --allpairs | |
90 --maxloop=<maximum bulge/interior loop size> (defaults to 30) | |
91 --nodangle | |
92 --simple | |
93 --prefilter=<filter value> | |
94 | 96 |
95 Report bugs to markhn@rpi.edu | 97 ``-h, --help`` |
96 </help> | 98 |
97 | 99 ``-n, --NA=(RNA | DNA) (defaults to RNA)`` |
100 | |
101 ``-t, --temp=<temperature> (defaults to 37)`` | |
102 | |
103 ``-N, --sodium=<[Na+] in M> (defaults to 1)`` | |
104 | |
105 ``-M, --magnesium=<[Mg++] in M> (defaults to 0)`` | |
106 | |
107 ``-p, --polymer`` | |
108 | |
109 ``-C, --Ct=<total strand concentration>`` | |
110 | |
111 ``-I, --noisolate`` | |
112 | |
113 ``-m, --maxbp=<maximum basepair distance>`` | |
114 | |
115 ``-c, --constraints=<name of constraints file> (defaults to prefix.aux)`` | |
116 | |
117 ``-P, --percent=<energy increment percent> (defaults to 5)`` | |
118 | |
119 ``-W, --window=<window size> (default set by sequence length)`` | |
120 | |
121 ``-X, --max=<maximum number of foldings> (defaults to 100)`` | |
122 | |
123 ``--ann=(none | p-num | ss-count) (defaults to none)`` | |
124 | |
125 ``--mode=(auto | bases | lines) (defaults to auto)`` | |
126 | |
127 ``--label=<base numbering frequency>`` | |
128 | |
129 ``--rotate=<structure rotation angle>`` | |
130 | |
131 ``--run-type=(text | html) (defaults to text)`` | |
132 | |
133 ``--model=(EM | PF) (defaults to EM)`` | |
134 | |
135 ``--circular`` | |
136 | |
137 ``Obscure options:`` | |
138 | |
139 ``--allpairs`` | |
140 | |
141 ``--maxloop=<maximum bulge/interior loop size> (defaults to 30)`` | |
142 | |
143 ``--nodangle`` | |
144 | |
145 ``--simple`` | |
146 | |
147 ``--prefilter=<filter value>`` | |
148 ]]></help> | |
149 | |
98 <citations> | 150 <citations> |
99 <citation type="doi">10.1007/978-1-60327-429-6_1</citation> | 151 <citation type="doi">10.1007/978-1-60327-429-6_1</citation> |
100 </citations> | 152 </citations> |
101 </tool> | 153 </tool> |