bio 1.5.2 → 1.6.0.pre.20181210
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.travis.yml +12 -11
- data/ChangeLog +14 -3106
- data/{gemfiles/Gemfile.travis-ruby2.2 → Gemfile} +0 -1
- data/KNOWN_ISSUES.rdoc +0 -5
- data/README.rdoc +11 -18
- data/RELEASE_NOTES.rdoc +34 -291
- data/Rakefile +13 -9
- data/appveyor.yml +21 -0
- data/bioruby.gemspec +7 -78
- data/bioruby.gemspec.erb +8 -27
- data/doc/ChangeLog-1.5.0 +2919 -0
- data/doc/RELEASE_NOTES-1.5.0.rdoc +285 -0
- data/doc/Tutorial.rd +6 -108
- data/doc/Tutorial.rd.html +19 -98
- data/gemfiles/Gemfile.travis-jruby1.8 +3 -5
- data/gemfiles/Gemfile.travis-jruby1.9 +0 -3
- data/gemfiles/Gemfile.travis-rbx +0 -1
- data/gemfiles/Gemfile.travis-ruby1.8 +4 -4
- data/gemfiles/Gemfile.travis-ruby1.9 +0 -1
- data/gemfiles/prepare-gemspec.rb +4 -0
- data/lib/bio.rb +0 -10
- data/lib/bio/data/codontable.rb +99 -3
- data/lib/bio/io/togows.rb +5 -5
- data/lib/bio/version.rb +6 -8
- data/sample/test_restriction_enzyme_long.rb +1 -1
- data/test/unit/bio/data/test_codontable.rb +3 -0
- metadata +11 -77
- data/bin/bioruby +0 -47
- data/bin/br_biofetch.rb +0 -71
- data/bin/br_bioflat.rb +0 -293
- data/bin/br_biogetseq.rb +0 -45
- data/bin/br_pmfetch.rb +0 -422
- data/lib/bio/db/biosql/biosql_to_biosequence.rb +0 -78
- data/lib/bio/db/biosql/sequence.rb +0 -444
- data/lib/bio/db/phyloxml/phyloxml.xsd +0 -582
- data/lib/bio/db/phyloxml/phyloxml_elements.rb +0 -1197
- data/lib/bio/db/phyloxml/phyloxml_parser.rb +0 -1001
- data/lib/bio/db/phyloxml/phyloxml_writer.rb +0 -227
- data/lib/bio/io/biosql/ar-biosql.rb +0 -257
- data/lib/bio/io/biosql/biosql.rb +0 -39
- data/lib/bio/io/biosql/config/database.yml +0 -21
- data/lib/bio/io/sql.rb +0 -79
- data/lib/bio/shell.rb +0 -44
- data/lib/bio/shell/core.rb +0 -578
- data/lib/bio/shell/demo.rb +0 -146
- data/lib/bio/shell/interface.rb +0 -217
- data/lib/bio/shell/irb.rb +0 -94
- data/lib/bio/shell/object.rb +0 -71
- data/lib/bio/shell/plugin/blast.rb +0 -42
- data/lib/bio/shell/plugin/codon.rb +0 -218
- data/lib/bio/shell/plugin/das.rb +0 -58
- data/lib/bio/shell/plugin/emboss.rb +0 -23
- data/lib/bio/shell/plugin/entry.rb +0 -137
- data/lib/bio/shell/plugin/flatfile.rb +0 -101
- data/lib/bio/shell/plugin/midi.rb +0 -430
- data/lib/bio/shell/plugin/ncbirest.rb +0 -68
- data/lib/bio/shell/plugin/obda.rb +0 -45
- data/lib/bio/shell/plugin/psort.rb +0 -56
- data/lib/bio/shell/plugin/seq.rb +0 -248
- data/lib/bio/shell/plugin/togows.rb +0 -40
- data/lib/bio/shell/rails/vendor/plugins/bioruby/generators/bioruby/bioruby_generator.rb +0 -29
- data/lib/bio/shell/rails/vendor/plugins/bioruby/generators/bioruby/templates/_classes.rhtml +0 -4
- data/lib/bio/shell/rails/vendor/plugins/bioruby/generators/bioruby/templates/_log.rhtml +0 -27
- data/lib/bio/shell/rails/vendor/plugins/bioruby/generators/bioruby/templates/_methods.rhtml +0 -11
- data/lib/bio/shell/rails/vendor/plugins/bioruby/generators/bioruby/templates/_modules.rhtml +0 -4
- data/lib/bio/shell/rails/vendor/plugins/bioruby/generators/bioruby/templates/_variables.rhtml +0 -7
- data/lib/bio/shell/rails/vendor/plugins/bioruby/generators/bioruby/templates/bioruby-bg.gif +0 -0
- data/lib/bio/shell/rails/vendor/plugins/bioruby/generators/bioruby/templates/bioruby-gem.png +0 -0
- data/lib/bio/shell/rails/vendor/plugins/bioruby/generators/bioruby/templates/bioruby-link.gif +0 -0
- data/lib/bio/shell/rails/vendor/plugins/bioruby/generators/bioruby/templates/bioruby.css +0 -368
- data/lib/bio/shell/rails/vendor/plugins/bioruby/generators/bioruby/templates/bioruby.rhtml +0 -47
- data/lib/bio/shell/rails/vendor/plugins/bioruby/generators/bioruby/templates/bioruby_controller.rb +0 -144
- data/lib/bio/shell/rails/vendor/plugins/bioruby/generators/bioruby/templates/bioruby_helper.rb +0 -47
- data/lib/bio/shell/rails/vendor/plugins/bioruby/generators/bioruby/templates/commands.rhtml +0 -8
- data/lib/bio/shell/rails/vendor/plugins/bioruby/generators/bioruby/templates/history.rhtml +0 -10
- data/lib/bio/shell/rails/vendor/plugins/bioruby/generators/bioruby/templates/index.rhtml +0 -26
- data/lib/bio/shell/rails/vendor/plugins/bioruby/generators/bioruby/templates/spinner.gif +0 -0
- data/lib/bio/shell/script.rb +0 -25
- data/lib/bio/shell/setup.rb +0 -108
- data/lib/bio/shell/web.rb +0 -102
- data/sample/test_phyloxml_big.rb +0 -205
- data/test/data/phyloxml/apaf.xml +0 -666
- data/test/data/phyloxml/bcl_2.xml +0 -2097
- data/test/data/phyloxml/made_up.xml +0 -144
- data/test/data/phyloxml/ncbi_taxonomy_mollusca_short.xml +0 -65
- data/test/data/phyloxml/phyloxml_examples.xml +0 -415
- data/test/unit/bio/db/biosql/tc_biosql.rb +0 -114
- data/test/unit/bio/db/biosql/ts_suite_biosql.rb +0 -8
- data/test/unit/bio/db/test_phyloxml.rb +0 -821
- data/test/unit/bio/db/test_phyloxml_writer.rb +0 -334
- data/test/unit/bio/shell/plugin/test_seq.rb +0 -187
- data/test/unit/bio/test_shell.rb +0 -20
@@ -1,29 +0,0 @@
|
|
1
|
-
class BiorubyGenerator < Rails::Generator::Base
|
2
|
-
def manifest
|
3
|
-
record do |m|
|
4
|
-
m.directory 'app/controllers'
|
5
|
-
m.directory 'app/helpers'
|
6
|
-
m.directory 'app/views/bioruby'
|
7
|
-
m.directory 'app/views/layouts'
|
8
|
-
m.directory 'public/images/bioruby'
|
9
|
-
m.directory 'public/stylesheets'
|
10
|
-
m.file 'bioruby_controller.rb', 'app/controllers/bioruby_controller.rb'
|
11
|
-
m.file 'bioruby_helper.rb', 'app/helpers/bioruby_helper.rb'
|
12
|
-
m.file '_methods.rhtml', 'app/views/bioruby/_methods.rhtml'
|
13
|
-
m.file '_classes.rhtml', 'app/views/bioruby/_classes.rhtml'
|
14
|
-
m.file '_modules.rhtml', 'app/views/bioruby/_modules.rhtml'
|
15
|
-
m.file '_log.rhtml', 'app/views/bioruby/_log.rhtml'
|
16
|
-
m.file '_variables.rhtml', 'app/views/bioruby/_variables.rhtml'
|
17
|
-
m.file 'commands.rhtml', 'app/views/bioruby/commands.rhtml'
|
18
|
-
m.file 'history.rhtml', 'app/views/bioruby/history.rhtml'
|
19
|
-
m.file 'index.rhtml', 'app/views/bioruby/index.rhtml'
|
20
|
-
m.file 'bioruby.rhtml', 'app/views/layouts/bioruby.rhtml'
|
21
|
-
m.file 'spinner.gif', 'public/images/bioruby/spinner.gif'
|
22
|
-
m.file 'bioruby-gem.png', 'public/images/bioruby/gem.png'
|
23
|
-
m.file 'bioruby-link.gif', 'public/images/bioruby/link.gif'
|
24
|
-
m.file 'bioruby-bg.gif', 'public/images/bioruby/bg.gif'
|
25
|
-
m.file 'bioruby.css', 'public/stylesheets/bioruby.css'
|
26
|
-
end
|
27
|
-
end
|
28
|
-
end
|
29
|
-
|
@@ -1,27 +0,0 @@
|
|
1
|
-
<div id="log_<%= @number %>" class="log">
|
2
|
-
<div class="input">
|
3
|
-
Input: [<%= link_to_remote @number, :url => {:action => "reload_script", :number => @number} %>]
|
4
|
-
<pre class="script">
|
5
|
-
<%=h @script %>
|
6
|
-
</pre>
|
7
|
-
<div class="output">
|
8
|
-
Result:
|
9
|
-
[<%= link_to_remote "methods", :url => {:action => "list_methods", :number => @number} %>]
|
10
|
-
[<%= link_to_remote "classes", :url => {:action => "list_classes", :number => @number} %>]
|
11
|
-
[<%= link_to_remote "modules", :url => {:action => "list_modules", :number => @number} %>]
|
12
|
-
<div id="methods_<%= @number %>" class="methods"></div>
|
13
|
-
<div id="classes_<%= @number %>" class="classes"></div>
|
14
|
-
<div id="modules_<%= @number %>" class="modules"></div>
|
15
|
-
<pre class="result">
|
16
|
-
<%=h @result %>
|
17
|
-
</pre>
|
18
|
-
<% if @output %>
|
19
|
-
Output:
|
20
|
-
<pre class="output">
|
21
|
-
<%=h @output %>
|
22
|
-
</pre>
|
23
|
-
<% end %>
|
24
|
-
</div>
|
25
|
-
</div>
|
26
|
-
</div>
|
27
|
-
|
Binary file
|
data/lib/bio/shell/rails/vendor/plugins/bioruby/generators/bioruby/templates/bioruby-gem.png
DELETED
Binary file
|
data/lib/bio/shell/rails/vendor/plugins/bioruby/generators/bioruby/templates/bioruby-link.gif
DELETED
Binary file
|
@@ -1,368 +0,0 @@
|
|
1
|
-
/* body */
|
2
|
-
|
3
|
-
body {
|
4
|
-
margin: 0;
|
5
|
-
color: #555555;
|
6
|
-
background: url("/images/bioruby/bg.gif") repeat-y center;
|
7
|
-
font-family: "trebuchet ms", verdana, arial, helvetica, sans-serif;
|
8
|
-
font-size: 12px;
|
9
|
-
}
|
10
|
-
|
11
|
-
div#content {
|
12
|
-
width: 750px;
|
13
|
-
height: auto;
|
14
|
-
margin: 0 auto 0 auto;
|
15
|
-
text-align: left;
|
16
|
-
}
|
17
|
-
|
18
|
-
/* title */
|
19
|
-
|
20
|
-
div#title {
|
21
|
-
width: 550px;
|
22
|
-
padding-right: 200px;
|
23
|
-
margin-bottom: 20px;
|
24
|
-
text-align: left;
|
25
|
-
background: url("/images/bioruby/gem.png") no-repeat left bottom;
|
26
|
-
}
|
27
|
-
|
28
|
-
div#title .titletop {
|
29
|
-
color: #736451;
|
30
|
-
font-size: 30px;
|
31
|
-
font-weight: normal;
|
32
|
-
text-align: left;
|
33
|
-
text-indent: 70px;
|
34
|
-
margin: 0;
|
35
|
-
padding: 0;
|
36
|
-
padding-top: 20px;
|
37
|
-
margin-bottom: 10px;
|
38
|
-
}
|
39
|
-
|
40
|
-
div#title .titlesub {
|
41
|
-
color: #000000;
|
42
|
-
font-size: 15px;
|
43
|
-
font-weight: normal;
|
44
|
-
text-align: left;
|
45
|
-
text-indent: 70px;
|
46
|
-
margin: 0;
|
47
|
-
padding: 0;
|
48
|
-
border-bottom: 1px solid #eeeeee;
|
49
|
-
}
|
50
|
-
|
51
|
-
/* main */
|
52
|
-
|
53
|
-
div#main {
|
54
|
-
width: 550px;
|
55
|
-
background-color: #ffffff;
|
56
|
-
padding-top: 0px;
|
57
|
-
padding-left: 10px;
|
58
|
-
}
|
59
|
-
|
60
|
-
div#notice {
|
61
|
-
background-color: #fcc;
|
62
|
-
border: 1px solid #f00;
|
63
|
-
}
|
64
|
-
|
65
|
-
div#notice p {
|
66
|
-
margin: 0;
|
67
|
-
padding: 10px;
|
68
|
-
}
|
69
|
-
|
70
|
-
pre {
|
71
|
-
color: #6e8377;
|
72
|
-
background-color: #eaedeb;
|
73
|
-
border-color: #6e8377;
|
74
|
-
border-style: dashed;
|
75
|
-
border-width: 1px;
|
76
|
-
padding: 5px;
|
77
|
-
width: 500px;
|
78
|
-
overflow: auto;
|
79
|
-
}
|
80
|
-
|
81
|
-
div.log {
|
82
|
-
width: 500px;
|
83
|
-
margin-top: 15px;
|
84
|
-
padding-top: 5px;
|
85
|
-
border-top: 1px dotted #333333;
|
86
|
-
}
|
87
|
-
|
88
|
-
div.log div.input pre.script {
|
89
|
-
background-color: #ffffeb;
|
90
|
-
border-style: solid;
|
91
|
-
}
|
92
|
-
|
93
|
-
div.log div.output div.methods {
|
94
|
-
padding: 5px;
|
95
|
-
background-color: #ffffdd;
|
96
|
-
border: 1px solid #ffcc00;
|
97
|
-
}
|
98
|
-
|
99
|
-
div.log div.output div.classes {
|
100
|
-
padding: 5px;
|
101
|
-
background-color: #ccffcc;
|
102
|
-
border: 1px solid #00ff00;
|
103
|
-
}
|
104
|
-
|
105
|
-
div.log div.output div.modules {
|
106
|
-
padding: 5px;
|
107
|
-
background-color: #ffcccc;
|
108
|
-
border: 1px solid #ff0000;
|
109
|
-
}
|
110
|
-
|
111
|
-
div.log div.output pre.result {
|
112
|
-
border-style: dashed;
|
113
|
-
}
|
114
|
-
|
115
|
-
div.log div.output pre.output {
|
116
|
-
border-style: dashed;
|
117
|
-
}
|
118
|
-
|
119
|
-
div.log hr.log {
|
120
|
-
border-style: dotted none none none;
|
121
|
-
border-top-width: 1px;
|
122
|
-
border-color: #6e8377;
|
123
|
-
width: 200px;
|
124
|
-
height: 1px;
|
125
|
-
}
|
126
|
-
|
127
|
-
/* side */
|
128
|
-
|
129
|
-
div#side {
|
130
|
-
width: 150px;
|
131
|
-
float: right;
|
132
|
-
margin-top: 20px;
|
133
|
-
text-align: left;
|
134
|
-
font-size: 12px;
|
135
|
-
color: #e44268;
|
136
|
-
}
|
137
|
-
|
138
|
-
div#side div.title {
|
139
|
-
font-weight: normal;
|
140
|
-
color: #e44268;
|
141
|
-
text-align: left;
|
142
|
-
border-width: 0px 0px 1px 0px;
|
143
|
-
border-bottom: 1px solid #e44268;
|
144
|
-
}
|
145
|
-
|
146
|
-
div#side a:link {
|
147
|
-
color: #ffffff;
|
148
|
-
text-decoration: none;
|
149
|
-
}
|
150
|
-
|
151
|
-
div#side a:visited {
|
152
|
-
color: #ffffff;
|
153
|
-
text-decoration: none;
|
154
|
-
}
|
155
|
-
|
156
|
-
div#side a:hover {
|
157
|
-
color: #cccccc;
|
158
|
-
text-decoration: underline;
|
159
|
-
}
|
160
|
-
|
161
|
-
div#side ol,ul {
|
162
|
-
margin: 10px;
|
163
|
-
padding-left: 10px;
|
164
|
-
}
|
165
|
-
|
166
|
-
div#side li {
|
167
|
-
color: #e44268;
|
168
|
-
}
|
169
|
-
|
170
|
-
div#side img {
|
171
|
-
padding: 5px;
|
172
|
-
/* centering */
|
173
|
-
display: block;
|
174
|
-
margin-left: auto;
|
175
|
-
margin-right: auto;
|
176
|
-
border: 0px;
|
177
|
-
}
|
178
|
-
|
179
|
-
/* history */
|
180
|
-
|
181
|
-
div#history {
|
182
|
-
width: 500px;
|
183
|
-
}
|
184
|
-
|
185
|
-
div#history div.histtime {
|
186
|
-
background-color: #eaedeb;
|
187
|
-
padding: 5px;
|
188
|
-
}
|
189
|
-
|
190
|
-
div#history div.histline {
|
191
|
-
background-color: #ffffeb;
|
192
|
-
padding: 5px;
|
193
|
-
font-family: monospace;
|
194
|
-
white-space: pre;
|
195
|
-
}
|
196
|
-
|
197
|
-
/* command */
|
198
|
-
|
199
|
-
div#command {
|
200
|
-
width: 500px;
|
201
|
-
}
|
202
|
-
|
203
|
-
/* image */
|
204
|
-
|
205
|
-
img {
|
206
|
-
}
|
207
|
-
|
208
|
-
/* em */
|
209
|
-
|
210
|
-
em {
|
211
|
-
color: #6e8377;
|
212
|
-
font-style: normal;
|
213
|
-
}
|
214
|
-
|
215
|
-
/* link */
|
216
|
-
|
217
|
-
a {
|
218
|
-
text-decoration: none;
|
219
|
-
}
|
220
|
-
|
221
|
-
a:link {
|
222
|
-
color: #669933;
|
223
|
-
}
|
224
|
-
|
225
|
-
a:visited {
|
226
|
-
color: #669933;
|
227
|
-
}
|
228
|
-
|
229
|
-
a:hover {
|
230
|
-
text-decoration: underline;
|
231
|
-
}
|
232
|
-
|
233
|
-
/* header */
|
234
|
-
|
235
|
-
h1 {
|
236
|
-
font-size: 180%;
|
237
|
-
color: #ffffff;
|
238
|
-
background-color: #6e8377;
|
239
|
-
line-height: 64px;
|
240
|
-
text-align: left;
|
241
|
-
padding-left: 20px;
|
242
|
-
}
|
243
|
-
|
244
|
-
h2 {
|
245
|
-
font-size: 160%;
|
246
|
-
color: #6e8377;
|
247
|
-
border-color: #b9c3be;
|
248
|
-
border-style: dashed;
|
249
|
-
border-width: 0px 0px 1px 0px;
|
250
|
-
}
|
251
|
-
|
252
|
-
h3 {
|
253
|
-
font-size: 140%;
|
254
|
-
color: #6e8377;
|
255
|
-
border-color: #b9c3be;
|
256
|
-
border-style: dotted;
|
257
|
-
border-width: 0px 0px 1px 0px;
|
258
|
-
}
|
259
|
-
|
260
|
-
h4 {
|
261
|
-
font-size: 130%;
|
262
|
-
color: #6e8377;
|
263
|
-
border-color: #b9c3be;
|
264
|
-
border-style: solid;
|
265
|
-
border-width: 0px 0px 1px 0px;
|
266
|
-
}
|
267
|
-
|
268
|
-
h5 {
|
269
|
-
font-size: 120%;
|
270
|
-
color: #6e8377;
|
271
|
-
}
|
272
|
-
|
273
|
-
h6 {
|
274
|
-
font-size: 110%;
|
275
|
-
color: #6e8377;
|
276
|
-
}
|
277
|
-
|
278
|
-
/* list */
|
279
|
-
|
280
|
-
dt {
|
281
|
-
color: #6e8377;
|
282
|
-
border-color: #b9c3be;
|
283
|
-
border-style: dashed;
|
284
|
-
border-width: 1px;
|
285
|
-
padding: 5px;
|
286
|
-
}
|
287
|
-
|
288
|
-
ul {
|
289
|
-
color: #6e8377;
|
290
|
-
}
|
291
|
-
|
292
|
-
/* table */
|
293
|
-
|
294
|
-
table {
|
295
|
-
border: 1px solid #cccccc;
|
296
|
-
border-collapse: collapse;
|
297
|
-
}
|
298
|
-
|
299
|
-
th {
|
300
|
-
vertical-align: top;
|
301
|
-
padding: 5px;
|
302
|
-
}
|
303
|
-
|
304
|
-
td {
|
305
|
-
vertical-align: top;
|
306
|
-
padding: 5px;
|
307
|
-
}
|
308
|
-
|
309
|
-
div#method_list table {
|
310
|
-
border: none;
|
311
|
-
}
|
312
|
-
|
313
|
-
|
314
|
-
/* form */
|
315
|
-
|
316
|
-
input {
|
317
|
-
background-color: #FFFFFF;
|
318
|
-
padding: 2px;
|
319
|
-
font-size: 10px;
|
320
|
-
color: #666666;
|
321
|
-
border: 1px solid #611022;
|
322
|
-
margin-bottom: 2px;
|
323
|
-
}
|
324
|
-
|
325
|
-
input[type=submit] {
|
326
|
-
background-color: #FFFFFF;
|
327
|
-
padding: 2px;
|
328
|
-
font-size: 10px;
|
329
|
-
color: #ffffff;
|
330
|
-
border: 1px solid #611022;
|
331
|
-
background-color: #E44268;
|
332
|
-
margin-bottom: 2px;
|
333
|
-
}
|
334
|
-
|
335
|
-
/* textarea */
|
336
|
-
|
337
|
-
textarea {
|
338
|
-
background-color: #eaedeb;
|
339
|
-
font-family: monospace;
|
340
|
-
font-size: 12px;
|
341
|
-
overflow: auto;
|
342
|
-
width: 500px;
|
343
|
-
padding: 5px;
|
344
|
-
}
|
345
|
-
|
346
|
-
|
347
|
-
/* blockquote */
|
348
|
-
|
349
|
-
blockquote {
|
350
|
-
color: #6e8377;
|
351
|
-
background-color: #eaedeb;
|
352
|
-
border-color: #6e8377;
|
353
|
-
border-style: dashed;
|
354
|
-
border-width: 1px;
|
355
|
-
}
|
356
|
-
|
357
|
-
/* media */
|
358
|
-
|
359
|
-
@media print {
|
360
|
-
div#main { margin-left: 0px; }
|
361
|
-
div#side { display: none; }
|
362
|
-
}
|
363
|
-
|
364
|
-
@media screen {
|
365
|
-
div#main { margin-left: 0px; }
|
366
|
-
div#side { display: block; }
|
367
|
-
}
|
368
|
-
|