ngoto-bio 1.2.9.9501 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +201 -4
- data/KNOWN_ISSUES.rdoc +24 -2
- data/README.rdoc +29 -0
- data/Rakefile +44 -5
- data/bin/br_pmfetch.rb +4 -3
- data/bioruby.gemspec +11 -3
- data/bioruby.gemspec.erb +40 -5
- data/doc/Changes-0.7.rd +7 -0
- data/doc/Changes-1.3.rdoc +17 -0
- data/doc/Tutorial.rd.html +1031 -0
- data/doc/Tutorial.rd.ja +111 -45
- data/doc/Tutorial.rd.ja.html +2225 -0
- data/doc/bioruby.css +281 -0
- data/lib/bio/appl/blast/format0.rb +7 -2
- data/lib/bio/db/gff.rb +2 -2
- data/lib/bio/db/lasergene.rb +3 -3
- data/lib/bio/db/soft.rb +3 -3
- data/lib/bio/io/togows.rb +458 -0
- data/lib/bio/shell/core.rb +2 -2
- data/lib/bio/shell/plugin/entry.rb +27 -4
- data/lib/bio/shell/plugin/ncbirest.rb +27 -29
- data/lib/bio/shell/plugin/togows.rb +40 -0
- data/lib/bio/shell.rb +1 -0
- data/lib/bio/util/color_scheme.rb +2 -2
- data/lib/bio/util/contingency_table.rb +2 -2
- data/lib/bio/util/restriction_enzyme.rb +2 -2
- data/lib/bio/version.rb +25 -0
- data/lib/bio.rb +4 -1
- data/test/functional/bio/io/test_togows.rb +267 -0
- data/test/runner.rb +7 -0
- data/test/unit/bio/db/test_gff.rb +63 -0
- data/test/unit/bio/io/test_togows.rb +161 -0
- metadata +11 -3
data/doc/bioruby.css
ADDED
@@ -0,0 +1,281 @@
|
|
1
|
+
/* body */
|
2
|
+
|
3
|
+
body {
|
4
|
+
color: #000000;
|
5
|
+
background-color: #ffffff;
|
6
|
+
margin-left: 5%;
|
7
|
+
margin-right: 5%;
|
8
|
+
font-family: verdana, arial;
|
9
|
+
}
|
10
|
+
|
11
|
+
em {
|
12
|
+
font-weight: bold;
|
13
|
+
font-style: normal;
|
14
|
+
}
|
15
|
+
|
16
|
+
/* link */
|
17
|
+
|
18
|
+
a:link {
|
19
|
+
color: #00ca65;
|
20
|
+
text-decoration: none;
|
21
|
+
}
|
22
|
+
a:visited {
|
23
|
+
color: #49ba18;
|
24
|
+
text-decoration: none;
|
25
|
+
}
|
26
|
+
a:hover, a:focus {
|
27
|
+
color: #c2fe20;
|
28
|
+
background-color: #ffffff;
|
29
|
+
text-decoration: underline;
|
30
|
+
}
|
31
|
+
|
32
|
+
|
33
|
+
/* header */
|
34
|
+
|
35
|
+
h1 {
|
36
|
+
color: #000000;
|
37
|
+
background-color: transparent;
|
38
|
+
border-color: #49ba18;
|
39
|
+
/* border-width: 1px 0px 1px 0px;*/
|
40
|
+
border-width: 0px 0px 5px 0px;
|
41
|
+
border-style: solid;
|
42
|
+
padding-bottom: 3px;
|
43
|
+
padding-right: 10%;
|
44
|
+
text-align: left;
|
45
|
+
}
|
46
|
+
h2 {
|
47
|
+
color: #000000;
|
48
|
+
/* background-color: transparent;*/
|
49
|
+
background-color: #b0ffb0;
|
50
|
+
border-color: #b0ffb0;
|
51
|
+
border-style: none;
|
52
|
+
border-width: 1px 0px 1px 0px;
|
53
|
+
margin-bottom: 0px;
|
54
|
+
margin-top: 1em;
|
55
|
+
padding: 3px;
|
56
|
+
}
|
57
|
+
h3 {
|
58
|
+
padding-top: 2px;
|
59
|
+
padding-left: 5px;
|
60
|
+
font-weight: bold;
|
61
|
+
border-style: solid;
|
62
|
+
border-color: #d8ffd8;
|
63
|
+
/* border-width: 2px 0px 0px 10px;*/
|
64
|
+
border-width: 2px 0px 0px 2px;
|
65
|
+
}
|
66
|
+
h4 {
|
67
|
+
padding-bottom: 1px;
|
68
|
+
padding-left: 5px;
|
69
|
+
font-weight: bold;
|
70
|
+
font-weight: bold;
|
71
|
+
border-style: solid;
|
72
|
+
border-color: #b0ffb0;
|
73
|
+
border-width: 0px 0px 2px 0px;
|
74
|
+
/* margin: 1.5em 10px 0px*/
|
75
|
+
}
|
76
|
+
h5 {
|
77
|
+
padding-top: 2px;
|
78
|
+
padding-left: 5px;
|
79
|
+
font-weight: bold;
|
80
|
+
border-style: dotted;
|
81
|
+
border-color: #d8ffd8;
|
82
|
+
border-width: 2px 0px 0px 2px;
|
83
|
+
/* margin: 1.5em 20px 0px*/
|
84
|
+
}
|
85
|
+
h6 {
|
86
|
+
padding-left: 5px;
|
87
|
+
font-weight: bold;
|
88
|
+
border-style: solid;
|
89
|
+
border-color: #b0ffb0;
|
90
|
+
border-width: 0px 0px 0px 5px;
|
91
|
+
/* margin: 1.5em 20px 0px*/
|
92
|
+
}
|
93
|
+
|
94
|
+
|
95
|
+
/* paragraph */
|
96
|
+
|
97
|
+
p {
|
98
|
+
margin-left: 0em! important;
|
99
|
+
text-indent: 0em
|
100
|
+
}
|
101
|
+
|
102
|
+
|
103
|
+
/* line */
|
104
|
+
|
105
|
+
hr {
|
106
|
+
border-style: solid;
|
107
|
+
border-color: #00ca65;
|
108
|
+
border-width: 1px;
|
109
|
+
}
|
110
|
+
|
111
|
+
|
112
|
+
/* list */
|
113
|
+
|
114
|
+
dl {
|
115
|
+
}
|
116
|
+
dt {
|
117
|
+
padding-left: 5px;
|
118
|
+
font-size: 110%;
|
119
|
+
border-style: solid;
|
120
|
+
border-color: #B0FFB0;
|
121
|
+
border-width: 0px 0px 0px 5px;
|
122
|
+
font-weight: bold;
|
123
|
+
}
|
124
|
+
dd {
|
125
|
+
}
|
126
|
+
li {
|
127
|
+
/* list-style-type: disc; */
|
128
|
+
}
|
129
|
+
ul,ol{
|
130
|
+
}
|
131
|
+
|
132
|
+
|
133
|
+
/* table */
|
134
|
+
|
135
|
+
th {
|
136
|
+
padding: 5px;
|
137
|
+
text-align: left;
|
138
|
+
}
|
139
|
+
td {
|
140
|
+
padding: 5px;
|
141
|
+
}
|
142
|
+
|
143
|
+
/* quote */
|
144
|
+
|
145
|
+
pre {
|
146
|
+
color: #000000;
|
147
|
+
background-color: #d8ffd8;
|
148
|
+
margin-left: 20px;
|
149
|
+
padding: 8px;
|
150
|
+
border-style: solid;
|
151
|
+
border-color: #b0ffb0;
|
152
|
+
border-width: 1px 5px 1px 5px;
|
153
|
+
white-space: pre;
|
154
|
+
}
|
155
|
+
blockquote {
|
156
|
+
color: #008080;
|
157
|
+
background-color: #ffffff;
|
158
|
+
margin-left: 20px;
|
159
|
+
padding: 8px;
|
160
|
+
border-style: solid;
|
161
|
+
border-color: #38c868;
|
162
|
+
border-width: 3px 1px 3px 1px;
|
163
|
+
}
|
164
|
+
|
165
|
+
|
166
|
+
/* image */
|
167
|
+
|
168
|
+
img {
|
169
|
+
border-width: 0px;
|
170
|
+
}
|
171
|
+
|
172
|
+
|
173
|
+
/* form */
|
174
|
+
|
175
|
+
input, select {
|
176
|
+
color: #000000;
|
177
|
+
background-color: transparent;
|
178
|
+
padding: 2px;
|
179
|
+
border-style: solid;
|
180
|
+
border-color: #71e63e;
|
181
|
+
border-width: 1px;
|
182
|
+
}
|
183
|
+
textarea {
|
184
|
+
color: #000000;
|
185
|
+
background-color: #ffffff;
|
186
|
+
border-style: solid;
|
187
|
+
border-color: #00ca65;
|
188
|
+
border-width: 1px;
|
189
|
+
font-family: monospace;
|
190
|
+
}
|
191
|
+
|
192
|
+
/* reviz */
|
193
|
+
|
194
|
+
table.reviz {
|
195
|
+
width: 100%;
|
196
|
+
}
|
197
|
+
th.file {
|
198
|
+
background-color: #008080;
|
199
|
+
width: 15%;
|
200
|
+
}
|
201
|
+
th.rev, th.age, th.author {
|
202
|
+
background-color: #38c868;
|
203
|
+
width: 10%;
|
204
|
+
}
|
205
|
+
th.log {
|
206
|
+
background-color: #c2fe20;
|
207
|
+
}
|
208
|
+
|
209
|
+
td.dir {
|
210
|
+
background-color: #b0ffb0;
|
211
|
+
background-image: url(reviz/dir.gif);
|
212
|
+
background-position: center left;
|
213
|
+
background-repeat: no-repeat;
|
214
|
+
text-indent: 15px;
|
215
|
+
}
|
216
|
+
td.file {
|
217
|
+
background-color: #b0ffb0;
|
218
|
+
background-image: url(reviz/file.gif);
|
219
|
+
background-position: center left;
|
220
|
+
background-repeat: no-repeat;
|
221
|
+
text-indent: 15px;
|
222
|
+
}
|
223
|
+
td.rev, td.age, td.author, td.log {
|
224
|
+
background-color: #d8ffd8;
|
225
|
+
}
|
226
|
+
|
227
|
+
|
228
|
+
/* rwiki */
|
229
|
+
|
230
|
+
.navi {
|
231
|
+
text-align: right;
|
232
|
+
}
|
233
|
+
.headerURL {
|
234
|
+
text-align: right;
|
235
|
+
font-size: 10pt;
|
236
|
+
}
|
237
|
+
address {
|
238
|
+
color: gray;
|
239
|
+
text-align: right;
|
240
|
+
font-style: normal;
|
241
|
+
font-variant: normal;
|
242
|
+
font-weight: normal;
|
243
|
+
}
|
244
|
+
|
245
|
+
/* hiki */
|
246
|
+
|
247
|
+
ins.added {
|
248
|
+
font-weight: bold;
|
249
|
+
}
|
250
|
+
del.deleted {
|
251
|
+
text-decoration: line-through;
|
252
|
+
}
|
253
|
+
form.update textarea.keyword {
|
254
|
+
width: 15em;
|
255
|
+
height: 3em;
|
256
|
+
}
|
257
|
+
div.adminmenu {
|
258
|
+
text-align: right;
|
259
|
+
}
|
260
|
+
div.caption {
|
261
|
+
text-align: right;
|
262
|
+
}
|
263
|
+
div.footer {
|
264
|
+
text-align: right;
|
265
|
+
}
|
266
|
+
|
267
|
+
|
268
|
+
/* top */
|
269
|
+
|
270
|
+
span.title {
|
271
|
+
font-size: +2
|
272
|
+
}
|
273
|
+
span.lead {
|
274
|
+
text-decoration: underline
|
275
|
+
}
|
276
|
+
span.expire {
|
277
|
+
color: #c04040
|
278
|
+
}
|
279
|
+
span.ruby {
|
280
|
+
font-weight: bold
|
281
|
+
}
|
@@ -292,9 +292,14 @@ module Bio
|
|
292
292
|
@f0references.push data.shift
|
293
293
|
end
|
294
294
|
@f0query = data.shift
|
295
|
+
# In special case, a void line is inserted after query name.
|
296
|
+
if data[0] and /\A +\( *([\,\d]+) *letters *\)\s*\z/ =~ data[0] then
|
297
|
+
@f0query.concat "\n"
|
298
|
+
@f0query.concat data.shift
|
299
|
+
end
|
295
300
|
@f0database = data.shift
|
296
301
|
# In special case, a void line is inserted after database name.
|
297
|
-
if /\A +[\d\,]+ +sequences\; +[\d\,]+ total +letters\s*\z/ =~ data[0] then
|
302
|
+
if data[0] and /\A +[\d\,]+ +sequences\; +[\d\,]+ total +letters\s*\z/ =~ data[0] then
|
298
303
|
@f0database.concat "\n"
|
299
304
|
@f0database.concat data.shift
|
300
305
|
end
|
@@ -866,7 +871,7 @@ module Bio
|
|
866
871
|
d << sc.scan(/.*/)
|
867
872
|
sc.skip(/\s*/)
|
868
873
|
end until !sc.rest? or r = sc.skip(/ *Length *\= *([\,\d]+)\s*\z/)
|
869
|
-
@len = (r ? sc[1].to_i : nil)
|
874
|
+
@len = (r ? sc[1].delete(',').to_i : nil)
|
870
875
|
@definition = d.join(" ")
|
871
876
|
@parse_hitname = true
|
872
877
|
end
|
data/lib/bio/db/gff.rb
CHANGED
@@ -1081,12 +1081,12 @@ module Bio
|
|
1081
1081
|
|
1082
1082
|
# shortcut to the ID attribute
|
1083
1083
|
def id
|
1084
|
-
|
1084
|
+
get_attribute('ID')
|
1085
1085
|
end
|
1086
1086
|
|
1087
1087
|
# set ID attribute
|
1088
1088
|
def id=(str)
|
1089
|
-
|
1089
|
+
set_attribute('ID', str)
|
1090
1090
|
end
|
1091
1091
|
|
1092
1092
|
# aliases for Column 1 (formerly "seqname")
|
data/lib/bio/db/lasergene.rb
CHANGED
@@ -5,10 +5,10 @@
|
|
5
5
|
# Copyright:: Copyright (c) 2007 Center for Biomedical Research Informatics, University of Minnesota (http://cbri.umn.edu)
|
6
6
|
# License:: The Ruby License
|
7
7
|
#
|
8
|
-
# $Id
|
8
|
+
# $Id:$
|
9
9
|
#
|
10
10
|
|
11
|
-
module Bio
|
11
|
+
module Bio
|
12
12
|
|
13
13
|
#
|
14
14
|
# bio/db/lasergene.rb - Interface for DNAStar Lasergene sequence file format
|
@@ -206,4 +206,4 @@ class Lasergene
|
|
206
206
|
@sequence = Bio::Sequence.auto( lines[ (delimiter_2_indices[0] + 1) .. -1 ].join('') )
|
207
207
|
end
|
208
208
|
end # Lasergene
|
209
|
-
end # Bio
|
209
|
+
end # Bio
|
data/lib/bio/db/soft.rb
CHANGED
@@ -5,10 +5,10 @@
|
|
5
5
|
# Copyright:: Copyright (c) 2007 Midwinter Laboratories, LLC (http://midwinterlabs.com)
|
6
6
|
# License:: The Ruby License
|
7
7
|
#
|
8
|
-
# $Id
|
8
|
+
# $Id:$
|
9
9
|
#
|
10
10
|
|
11
|
-
module Bio
|
11
|
+
module Bio
|
12
12
|
|
13
13
|
#
|
14
14
|
# bio/db/soft.rb - Interface for SOFT formatted files
|
@@ -401,4 +401,4 @@ class SOFT
|
|
401
401
|
end
|
402
402
|
|
403
403
|
end # SOFT
|
404
|
-
end # Bio
|
404
|
+
end # Bio
|