bio 0.7.1 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/bioruby +71 -27
- data/bin/br_biofetch.rb +5 -17
- data/bin/br_bioflat.rb +14 -26
- data/bin/br_biogetseq.rb +6 -18
- data/bin/br_pmfetch.rb +6 -16
- data/doc/Changes-0.7.rd +35 -0
- data/doc/KEGG_API.rd +287 -172
- data/doc/KEGG_API.rd.ja +273 -160
- data/doc/Tutorial.rd +18 -9
- data/doc/Tutorial.rd.ja +656 -138
- data/lib/bio.rb +6 -24
- data/lib/bio/alignment.rb +5 -5
- data/lib/bio/appl/blast.rb +132 -98
- data/lib/bio/appl/blast/format0.rb +9 -19
- data/lib/bio/appl/blast/wublast.rb +5 -18
- data/lib/bio/appl/emboss.rb +40 -47
- data/lib/bio/appl/hmmer.rb +116 -82
- data/lib/bio/appl/hmmer/report.rb +509 -364
- data/lib/bio/appl/spidey/report.rb +7 -18
- data/lib/bio/data/na.rb +3 -21
- data/lib/bio/db.rb +3 -21
- data/lib/bio/db/aaindex.rb +147 -52
- data/lib/bio/db/embl/common.rb +27 -6
- data/lib/bio/db/embl/embl.rb +18 -10
- data/lib/bio/db/embl/sptr.rb +87 -67
- data/lib/bio/db/embl/swissprot.rb +32 -3
- data/lib/bio/db/embl/trembl.rb +32 -3
- data/lib/bio/db/embl/uniprot.rb +32 -3
- data/lib/bio/db/fasta.rb +327 -289
- data/lib/bio/db/medline.rb +25 -4
- data/lib/bio/db/nbrf.rb +12 -20
- data/lib/bio/db/pdb.rb +4 -1
- data/lib/bio/db/pdb/chemicalcomponent.rb +240 -0
- data/lib/bio/db/pdb/pdb.rb +13 -8
- data/lib/bio/db/rebase.rb +93 -97
- data/lib/bio/feature.rb +2 -31
- data/lib/bio/io/ddbjxml.rb +167 -139
- data/lib/bio/io/fastacmd.rb +89 -56
- data/lib/bio/io/flatfile.rb +994 -278
- data/lib/bio/io/flatfile/index.rb +257 -194
- data/lib/bio/io/flatfile/indexer.rb +37 -29
- data/lib/bio/reference.rb +147 -64
- data/lib/bio/sequence.rb +57 -417
- data/lib/bio/sequence/aa.rb +64 -0
- data/lib/bio/sequence/common.rb +175 -0
- data/lib/bio/sequence/compat.rb +68 -0
- data/lib/bio/sequence/format.rb +134 -0
- data/lib/bio/sequence/generic.rb +24 -0
- data/lib/bio/sequence/na.rb +189 -0
- data/lib/bio/shell.rb +9 -23
- data/lib/bio/shell/core.rb +130 -125
- data/lib/bio/shell/demo.rb +143 -0
- data/lib/bio/shell/{session.rb → interface.rb} +42 -40
- data/lib/bio/shell/object.rb +52 -0
- data/lib/bio/shell/plugin/codon.rb +4 -22
- data/lib/bio/shell/plugin/emboss.rb +23 -0
- data/lib/bio/shell/plugin/entry.rb +34 -25
- data/lib/bio/shell/plugin/flatfile.rb +5 -23
- data/lib/bio/shell/plugin/keggapi.rb +11 -24
- data/lib/bio/shell/plugin/midi.rb +5 -23
- data/lib/bio/shell/plugin/obda.rb +4 -22
- data/lib/bio/shell/plugin/seq.rb +6 -24
- data/lib/bio/shell/rails/Rakefile +10 -0
- data/lib/bio/shell/rails/app/controllers/application.rb +4 -0
- data/lib/bio/shell/rails/app/controllers/shell_controller.rb +94 -0
- data/lib/bio/shell/rails/app/helpers/application_helper.rb +3 -0
- data/lib/bio/shell/rails/app/models/shell_connection.rb +30 -0
- data/lib/bio/shell/rails/app/views/layouts/shell.rhtml +37 -0
- data/lib/bio/shell/rails/app/views/shell/history.rhtml +5 -0
- data/lib/bio/shell/rails/app/views/shell/index.rhtml +2 -0
- data/lib/bio/shell/rails/app/views/shell/show.rhtml +13 -0
- data/lib/bio/shell/rails/config/boot.rb +19 -0
- data/lib/bio/shell/rails/config/database.yml +85 -0
- data/lib/bio/shell/rails/config/environment.rb +53 -0
- data/lib/bio/shell/rails/config/environments/development.rb +19 -0
- data/lib/bio/shell/rails/config/environments/production.rb +19 -0
- data/lib/bio/shell/rails/config/environments/test.rb +19 -0
- data/lib/bio/shell/rails/config/routes.rb +19 -0
- data/lib/bio/shell/rails/doc/README_FOR_APP +2 -0
- data/lib/bio/shell/rails/public/404.html +8 -0
- data/lib/bio/shell/rails/public/500.html +8 -0
- data/lib/bio/shell/rails/public/dispatch.cgi +10 -0
- data/lib/bio/shell/rails/public/dispatch.fcgi +24 -0
- data/lib/bio/shell/rails/public/dispatch.rb +10 -0
- data/lib/bio/shell/rails/public/favicon.ico +0 -0
- data/lib/bio/shell/rails/public/images/icon.png +0 -0
- data/lib/bio/shell/rails/public/images/rails.png +0 -0
- data/lib/bio/shell/rails/public/index.html +277 -0
- data/lib/bio/shell/rails/public/javascripts/controls.js +750 -0
- data/lib/bio/shell/rails/public/javascripts/dragdrop.js +584 -0
- data/lib/bio/shell/rails/public/javascripts/effects.js +854 -0
- data/lib/bio/shell/rails/public/javascripts/prototype.js +1785 -0
- data/lib/bio/shell/rails/public/robots.txt +1 -0
- data/lib/bio/shell/rails/public/stylesheets/main.css +187 -0
- data/lib/bio/shell/rails/script/about +3 -0
- data/lib/bio/shell/rails/script/breakpointer +3 -0
- data/lib/bio/shell/rails/script/console +3 -0
- data/lib/bio/shell/rails/script/destroy +3 -0
- data/lib/bio/shell/rails/script/generate +3 -0
- data/lib/bio/shell/rails/script/performance/benchmarker +3 -0
- data/lib/bio/shell/rails/script/performance/profiler +3 -0
- data/lib/bio/shell/rails/script/plugin +3 -0
- data/lib/bio/shell/rails/script/process/reaper +3 -0
- data/lib/bio/shell/rails/script/process/spawner +3 -0
- data/lib/bio/shell/rails/script/process/spinner +3 -0
- data/lib/bio/shell/rails/script/runner +3 -0
- data/lib/bio/shell/rails/script/server +42 -0
- data/lib/bio/shell/rails/test/test_helper.rb +28 -0
- data/lib/bio/shell/web.rb +90 -0
- data/lib/bio/util/contingency_table.rb +231 -225
- data/sample/any2fasta.rb +59 -0
- data/test/data/HMMER/hmmpfam.out +64 -0
- data/test/data/HMMER/hmmsearch.out +88 -0
- data/test/data/aaindex/DAYM780301 +30 -0
- data/test/data/aaindex/PRAM900102 +20 -0
- data/test/data/bl2seq/cd8a_cd8b_blastp.bl2seq +53 -0
- data/test/data/bl2seq/cd8a_p53_e-5blastp.bl2seq +37 -0
- data/test/data/blast/{eco:b0002.faa → b0002.faa} +0 -0
- data/test/data/blast/{eco:b0002.faa.m0 → b0002.faa.m0} +2 -2
- data/test/data/blast/{eco:b0002.faa.m7 → b0002.faa.m7} +1 -1
- data/test/data/blast/{eco:b0002.faa.m8 → b0002.faa.m8} +0 -0
- data/test/unit/bio/appl/bl2seq/test_report.rb +134 -0
- data/test/unit/bio/appl/blast/test_report.rb +15 -12
- data/test/unit/bio/appl/blast/test_xmlparser.rb +4 -4
- data/test/unit/bio/appl/hmmer/test_report.rb +355 -0
- data/test/unit/bio/appl/test_blast.rb +5 -5
- data/test/unit/bio/data/test_na.rb +9 -18
- data/test/unit/bio/db/pdb/test_pdb.rb +169 -0
- data/test/unit/bio/db/test_aaindex.rb +197 -0
- data/test/unit/bio/io/test_fastacmd.rb +55 -0
- data/test/unit/bio/sequence/test_aa.rb +102 -0
- data/test/unit/bio/sequence/test_common.rb +178 -0
- data/test/unit/bio/sequence/test_compat.rb +82 -0
- data/test/unit/bio/sequence/test_na.rb +242 -0
- data/test/unit/bio/shell/plugin/test_seq.rb +29 -19
- data/test/unit/bio/test_alignment.rb +15 -7
- data/test/unit/bio/test_reference.rb +198 -0
- data/test/unit/bio/test_sequence.rb +4 -49
- data/test/unit/bio/test_shell.rb +2 -2
- metadata +118 -15
- data/lib/bio/io/brdb.rb +0 -103
- data/lib/bioruby.rb +0 -34
data/lib/bio/feature.rb
CHANGED
@@ -3,14 +3,9 @@
|
|
3
3
|
#
|
4
4
|
# Copyright:: Copyright (c) 2002, 2005
|
5
5
|
# Toshiaki Katayama <k@bioruby.org>
|
6
|
-
# License::
|
6
|
+
# License:: Ruby's
|
7
7
|
#
|
8
|
-
# $Id: feature.rb,v 1.
|
9
|
-
#
|
10
|
-
#--
|
11
|
-
# *TODO*
|
12
|
-
# add to_gff method
|
13
|
-
#++
|
8
|
+
# $Id: feature.rb,v 1.10 2006/02/27 09:13:46 k Exp $
|
14
9
|
#
|
15
10
|
# == INSD Feature table definition
|
16
11
|
#
|
@@ -43,24 +38,6 @@
|
|
43
38
|
# end
|
44
39
|
# end
|
45
40
|
#
|
46
|
-
#--
|
47
|
-
#
|
48
|
-
# This library is free software; you can redistribute it and/or
|
49
|
-
# modify it under the terms of the GNU Lesser General Public
|
50
|
-
# License as published by the Free Software Foundation; either
|
51
|
-
# version 2 of the License, or (at your option) any later version.
|
52
|
-
#
|
53
|
-
# This library is distributed in the hope that it will be useful,
|
54
|
-
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
55
|
-
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
56
|
-
# Lesser General Public License for more details.
|
57
|
-
#
|
58
|
-
# You should have received a copy of the GNU Lesser General Public
|
59
|
-
# License along with this library; if not, write to the Free Software
|
60
|
-
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
61
|
-
#
|
62
|
-
#++
|
63
|
-
#
|
64
41
|
|
65
42
|
require 'bio/location'
|
66
43
|
|
@@ -158,12 +135,6 @@ class Features
|
|
158
135
|
# Returns an Array of Feature objects.
|
159
136
|
attr_accessor :features
|
160
137
|
|
161
|
-
def to_gff
|
162
|
-
# *TODO*
|
163
|
-
# to generate Bio::GFF object and implement Bio::GFF#to_s or
|
164
|
-
# to generate GFF string in this method?
|
165
|
-
end
|
166
|
-
|
167
138
|
# Appends a Feature object to Features.
|
168
139
|
def append(a)
|
169
140
|
@features.push(a) if a.is_a? Feature
|
data/lib/bio/io/ddbjxml.rb
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
# KATAYAMA Toshiaki <k@bioruby.org>
|
6
6
|
# License:: LGPL
|
7
7
|
#
|
8
|
-
# $Id: ddbjxml.rb,v 1.
|
8
|
+
# $Id: ddbjxml.rb,v 1.10 2006/02/02 16:30:29 nakao Exp $
|
9
9
|
#
|
10
10
|
#--
|
11
11
|
#
|
@@ -36,7 +36,7 @@ class DDBJ
|
|
36
36
|
|
37
37
|
# = Bio::DDBJ::XML
|
38
38
|
#
|
39
|
-
# Accessing the DDBJ web services
|
39
|
+
# Accessing the DDBJ web services.
|
40
40
|
#
|
41
41
|
# * http://xml.nig.ac.jp/
|
42
42
|
# * http://xml.nig.ac.jp/wsdl/index.jsp
|
@@ -45,52 +45,62 @@ class XML < Bio::SOAPWSDL
|
|
45
45
|
|
46
46
|
BASE_URI = "http://xml.nig.ac.jp/wsdl/"
|
47
47
|
|
48
|
-
#
|
48
|
+
# === Description
|
49
49
|
#
|
50
|
-
# BLAST Database Search
|
50
|
+
# DDBJ XML BLAST Database Search
|
51
51
|
#
|
52
52
|
# * http://xml.nig.ac.jp/doc/Blast.txt
|
53
53
|
#
|
54
|
-
#
|
55
|
-
#
|
56
|
-
#
|
57
|
-
#
|
54
|
+
# === Examples
|
55
|
+
#
|
56
|
+
# serv = Bio::DDBJ::XML::Blast.new
|
57
|
+
# program = 'blastp'
|
58
|
+
# database = 'SWISS'
|
59
|
+
# query = "MSSRIARALALVVTLLHLTRLALSTCPAACHCPLEAPKCAPGVGLVRDGCGCCKVCAKQL"
|
60
|
+
#
|
61
|
+
# report = serv.searchSimple(program, database, query)
|
62
|
+
# Bio::Blast::Default::Report.new(report).each_hit do |hit|
|
63
|
+
# hit.hsps.find_all {|x| x.evalue < 0.1 }.each do |hsp|
|
64
|
+
# p [hsps.evalue, hsps.identity, hsps.definition]
|
65
|
+
# end
|
66
|
+
# end
|
58
67
|
#
|
59
|
-
#
|
60
|
-
#
|
61
|
-
#
|
62
|
-
#
|
63
|
-
# end
|
64
|
-
# end
|
65
|
-
#
|
66
|
-
# puts serv.searchParam('tblastn', 'ddbjvrl', query, '-m 8')
|
68
|
+
# program = 'tblastn'
|
69
|
+
# database = 'ddbjvrl'
|
70
|
+
# param = '-m 8 -e 0.001'
|
71
|
+
# puts serv.searchParam(program, database, query, param)
|
67
72
|
#
|
68
|
-
#
|
73
|
+
# === WSDL Methods
|
69
74
|
#
|
70
|
-
#
|
75
|
+
# ==== searchSimple(program, database, query)
|
76
|
+
#
|
71
77
|
# Returns a blast report in the default format.
|
72
|
-
#
|
78
|
+
#
|
79
|
+
# ==== searchParam(program, database, query, param)
|
80
|
+
#
|
73
81
|
# Blasts with param and returns a blast report.
|
74
82
|
#
|
75
|
-
#
|
83
|
+
# === References
|
76
84
|
#
|
77
85
|
# * http://xml.nig.ac.jp/doc/Blast.txt
|
78
86
|
#
|
79
87
|
class Blast < XML
|
80
88
|
SERVER_URI = BASE_URI + "Blast.wsdl"
|
89
|
+
|
90
|
+
# returns a Bio::DDBJ::XML::Blast object.
|
81
91
|
def initialize(wsdl = nil)
|
82
92
|
super(wsdl || SERVER_URI)
|
83
93
|
end
|
84
94
|
end
|
85
95
|
|
86
96
|
|
87
|
-
#
|
97
|
+
# === ClustalW
|
88
98
|
#
|
89
99
|
# Multiple seaquece alignment using ClustalW.
|
90
100
|
#
|
91
101
|
# * http://xml.nig.ac.jp/doc/ClustalW.txt
|
92
102
|
#
|
93
|
-
#
|
103
|
+
# === Examples
|
94
104
|
#
|
95
105
|
# serv = Bio::DDBJ::XML::ClustalW.new
|
96
106
|
#
|
@@ -111,30 +121,32 @@ class XML < Bio::SOAPWSDL
|
|
111
121
|
# puts serv.analyzeSimple(query)
|
112
122
|
# puts serv.analyzeParam(query, '-align -matrix=blosum')
|
113
123
|
#
|
114
|
-
#
|
124
|
+
# === WSDL Methods
|
115
125
|
#
|
116
|
-
#
|
117
|
-
#
|
126
|
+
# ==== analyzeSimple(query)
|
127
|
+
# ==== analyzeParam(query, param)
|
118
128
|
#
|
119
|
-
#
|
129
|
+
# === References
|
120
130
|
#
|
121
131
|
# * http://xml.nig.ac.jp/doc/ClustalW.txt
|
122
132
|
#
|
123
133
|
class ClustalW < XML
|
124
134
|
SERVER_URI = BASE_URI + "ClustalW.wsdl"
|
135
|
+
|
136
|
+
# returns a Bio::DDBJ::XML::ClustalW object.
|
125
137
|
def initialize(wsdl = nil)
|
126
138
|
super(wsdl || SERVER_URI)
|
127
139
|
end
|
128
140
|
end
|
129
141
|
|
130
142
|
|
131
|
-
#
|
143
|
+
# == DDBJ
|
132
144
|
#
|
133
145
|
# Retrieves a sequence entry from the DDBJ DNA Data Bank Japan.
|
134
146
|
#
|
135
147
|
# * http://xml.nig.ac.jp/doc/DDBJ.txt
|
136
148
|
#
|
137
|
-
#
|
149
|
+
# === Examples
|
138
150
|
#
|
139
151
|
# serv = Bio::DDBJ::XML::DDBJ.new
|
140
152
|
# puts serv.getFFEntry('AB000050')
|
@@ -144,34 +156,36 @@ class XML < Bio::SOAPWSDL
|
|
144
156
|
# puts serv.getRelatedFeatures('AL121903', '59000', '64000')
|
145
157
|
# puts serv.getRelatedFeaturesSeq('AL121903', '59000', '64000')
|
146
158
|
#
|
147
|
-
#
|
159
|
+
# === WSDL Methods
|
148
160
|
#
|
149
|
-
#
|
150
|
-
#
|
151
|
-
#
|
152
|
-
#
|
153
|
-
#
|
154
|
-
#
|
161
|
+
# ==== getFFEntry(accession)
|
162
|
+
# ==== getXMLEntry(accession)
|
163
|
+
# ==== getFeatureInfo(accession, feature)
|
164
|
+
# ==== getAllFeatures(accession)
|
165
|
+
# ==== getRelatedFeatures(accession, start, stop)
|
166
|
+
# ==== getRelatedFeaturesSeq(accession, start, stop)
|
155
167
|
#
|
156
|
-
#
|
168
|
+
# === References
|
157
169
|
#
|
158
170
|
# * http://xml.nig.ac.jp/doc/DDBJ.txt
|
159
171
|
#
|
160
172
|
class DDBJ < XML
|
161
173
|
SERVER_URI = BASE_URI + "DDBJ.wsdl"
|
174
|
+
|
175
|
+
# returns a Bio::DDBJ::XML::DDBJ object.
|
162
176
|
def initialize(wsdl = nil)
|
163
177
|
super(wsdl || SERVER_URI)
|
164
178
|
end
|
165
179
|
end
|
166
180
|
|
167
181
|
|
168
|
-
#
|
182
|
+
# == Fasta
|
169
183
|
#
|
170
184
|
# Searching database using the Fasta package.
|
171
185
|
#
|
172
186
|
# * http://xml.nig.ac.jp/doc/Fasta.txt
|
173
187
|
#
|
174
|
-
#
|
188
|
+
# === Examples
|
175
189
|
#
|
176
190
|
# serv = Bio::DDBJ::XML::Fasta.new
|
177
191
|
# query = ">Test\nMSDGAVQPDG GQPAVRNERA TGSGNGSGGG GGGGSGGVGI"
|
@@ -180,86 +194,90 @@ class XML < Bio::SOAPWSDL
|
|
180
194
|
# query = ">Test\nAGCTTTTCATTCTGACTGCAACGGGCAATATGTCTCTGTGTGGATTAAAAAAAGAGTGTCTGATAGCAGC"
|
181
195
|
# puts serv.searchParam('fastx34_t', 'PDB', query, '-n')
|
182
196
|
#
|
183
|
-
#
|
197
|
+
# === WSDL Methods
|
184
198
|
#
|
185
|
-
#
|
186
|
-
#
|
199
|
+
# ==== searchSimple(program, database, query)
|
200
|
+
# ==== searchParam(program, database, query, param)
|
187
201
|
#
|
188
|
-
#
|
202
|
+
# === References
|
189
203
|
#
|
190
204
|
# * http://xml.nig.ac.jp/doc/Fasta.txt
|
191
205
|
#
|
192
206
|
class Fasta < XML
|
193
207
|
SERVER_URI = BASE_URI + "Fasta.wsdl"
|
208
|
+
|
209
|
+
# returns a Bio::DDBJ::XML::Fasta object.
|
194
210
|
def initialize(wsdl = nil)
|
195
211
|
super(wsdl || SERVER_URI)
|
196
212
|
end
|
197
213
|
end
|
198
214
|
|
199
215
|
|
200
|
-
#
|
216
|
+
# == GetEntry
|
201
217
|
#
|
202
218
|
# Retrieves database entries.
|
203
219
|
#
|
204
220
|
# * http://xml.nig.ac.jp/doc/GetEntry.txt
|
205
221
|
#
|
206
|
-
#
|
222
|
+
# === Examples
|
207
223
|
#
|
208
224
|
# serv = Bio::DDBJ::XML::GetEntry.new
|
209
225
|
# puts serv.getDDBJEntry('AB000050')
|
210
226
|
# puts serv. getPDBEntry('1AAR')
|
211
227
|
#
|
212
|
-
#
|
213
|
-
#
|
214
|
-
#
|
215
|
-
#
|
216
|
-
#
|
217
|
-
#
|
218
|
-
#
|
219
|
-
#
|
220
|
-
#
|
221
|
-
#
|
222
|
-
#
|
223
|
-
#
|
224
|
-
#
|
225
|
-
#
|
226
|
-
#
|
227
|
-
#
|
228
|
-
#
|
229
|
-
#
|
230
|
-
#
|
231
|
-
#
|
232
|
-
#
|
233
|
-
#
|
234
|
-
#
|
235
|
-
#
|
236
|
-
#
|
237
|
-
#
|
238
|
-
#
|
239
|
-
#
|
240
|
-
#
|
241
|
-
#
|
242
|
-
#
|
243
|
-
#
|
244
|
-
#
|
228
|
+
# === WSDL Methods
|
229
|
+
#
|
230
|
+
# ==== getEntry(database, var, param1, param2)
|
231
|
+
# ==== getEntry(database, var)
|
232
|
+
# ==== getDDBJEntry(accession)
|
233
|
+
# ==== getDDBJCONEntry(accession)
|
234
|
+
# ==== getDDBJVerEntry(accession)
|
235
|
+
# ==== getLocus_DDBJEntry(locus)
|
236
|
+
# ==== getGene_DDBJEntry(gene)
|
237
|
+
# ==== getProd_DDBJEntry(products)
|
238
|
+
# ==== getPID_DDBJEntry(pid)
|
239
|
+
# ==== getClone_DDBJEntry(clone)
|
240
|
+
# ==== getXML_DDBJEntry(accession)
|
241
|
+
# ==== getEMBLEntry(accession)
|
242
|
+
# ==== getSWISSEntry(accession)
|
243
|
+
# ==== getPIREntry(accession)
|
244
|
+
# ==== getPRFEntry(accession)
|
245
|
+
# ==== getPDBEntry(accession)
|
246
|
+
# ==== getQVEntry(accession)
|
247
|
+
# ==== getDADEntry(accession)
|
248
|
+
# ==== getPID_DADEntry(pid)
|
249
|
+
# ==== getFASTA_DDBJEntry(accession)
|
250
|
+
# ==== getFASTA_DDBJCONEntry(accession)
|
251
|
+
# ==== getFASTA_DDBJVerEntry(accession)
|
252
|
+
# ==== getFASTA_DDBJSeqEntry(accession, start, end)
|
253
|
+
# ==== getFASTA_DADEntry(accession)
|
254
|
+
# ==== getFASTA_PIREntry(accession)
|
255
|
+
# ==== getFASTA_SWISSEntry(accession)
|
256
|
+
# ==== getFASTA_PDBEntry(accession)
|
257
|
+
# ==== getFASTA_PRFEntry(accession)
|
258
|
+
# ==== getFASTA_CDSEntry(accession)
|
259
|
+
#
|
260
|
+
# === References
|
245
261
|
#
|
246
262
|
# * http://xml.nig.ac.jp/doc/GetEntry.txt
|
247
263
|
#
|
248
264
|
class GetEntry < XML
|
249
265
|
SERVER_URI = BASE_URI + "GetEntry.wsdl"
|
266
|
+
|
267
|
+
# returns a Bio::DDBJ::XML::GetEntry object.
|
250
268
|
def initialize(wsdl = nil)
|
251
269
|
super(wsdl || SERVER_URI)
|
252
270
|
end
|
253
271
|
end
|
254
272
|
|
255
273
|
|
256
|
-
#
|
274
|
+
# === Gib
|
257
275
|
#
|
258
276
|
# Genome Information broker
|
259
277
|
#
|
260
278
|
# * http://xml.nig.ac.jp/doc/Gib.txt
|
261
279
|
#
|
262
|
-
#
|
280
|
+
# === Examples
|
263
281
|
#
|
264
282
|
# serv = Bio::DDBJ::XML::Gib.new
|
265
283
|
# puts serv.getOrganismList
|
@@ -274,154 +292,164 @@ class XML < Bio::SOAPWSDL
|
|
274
292
|
# puts serv.getFlatFile('Nost_PCC7120:pCC7120zeta')
|
275
293
|
# puts serv.getFastaFile('Nost_PCC7120:pCC7120zeta', 'cdsaa')
|
276
294
|
#
|
277
|
-
#
|
295
|
+
# === WSDL Methods
|
278
296
|
#
|
279
|
-
#
|
280
|
-
#
|
281
|
-
#
|
282
|
-
#
|
283
|
-
#
|
284
|
-
#
|
285
|
-
#
|
286
|
-
#
|
287
|
-
#
|
288
|
-
#
|
289
|
-
#
|
297
|
+
# ==== getOrganismList
|
298
|
+
# ==== getChIDList
|
299
|
+
# ==== getOrganismNameFromChid(chid)
|
300
|
+
# ==== getChIDFromOrganismName(orgName)
|
301
|
+
# ==== getAccession(chid)
|
302
|
+
# ==== getPieceNumber(chid)
|
303
|
+
# ==== getDivision(chid)
|
304
|
+
# ==== getType(chid)
|
305
|
+
# ==== getFlatFile(chid)
|
306
|
+
# ==== getFastaFile(chid, type)
|
307
|
+
# ==== getCDS(chid)
|
290
308
|
#
|
291
|
-
#
|
309
|
+
# === References
|
292
310
|
#
|
293
311
|
# * http://xml.nig.ac.jp/doc/Gib.txt
|
294
312
|
#
|
295
313
|
class Gib < XML
|
296
314
|
SERVER_URI = BASE_URI + "Gib.wsdl"
|
315
|
+
|
316
|
+
# returns a Bio::DDBJ::XML::Gib object.
|
297
317
|
def initialize(wsdl = nil)
|
298
318
|
super(wsdl || SERVER_URI)
|
299
319
|
end
|
300
320
|
end
|
301
321
|
|
302
322
|
|
303
|
-
#
|
323
|
+
# === Gtop
|
304
324
|
#
|
305
325
|
# GTOP: Gene to protein.
|
306
326
|
#
|
307
327
|
# * http://xml.nig.ac.jp/doc/Gtop.txt
|
308
328
|
#
|
309
|
-
#
|
329
|
+
# === Examples
|
310
330
|
#
|
311
|
-
#
|
312
|
-
#
|
313
|
-
#
|
331
|
+
# serv = Bio::DDBJ::XML::Gtop.new
|
332
|
+
# puts serv.getOrganismList
|
333
|
+
# puts serv.getMasterInfo('thrA', 'ecol0')
|
314
334
|
#
|
315
|
-
#
|
335
|
+
# === WSDL Methods
|
316
336
|
#
|
317
|
-
#
|
318
|
-
#
|
337
|
+
# ==== getOrganismList
|
338
|
+
# ==== getMasterInfo(orfID, organism)
|
319
339
|
#
|
320
|
-
#
|
340
|
+
# === References
|
321
341
|
#
|
322
342
|
# * http://xml.nig.ac.jp/doc/Gtop.txt
|
323
343
|
#
|
324
344
|
class Gtop < XML
|
325
345
|
SERVER_URI = BASE_URI + "Gtop.wsdl"
|
346
|
+
|
347
|
+
# returns a Bio::DDBJ::XML::Gtop object.
|
326
348
|
def initialize(wsdl = nil)
|
327
349
|
super(wsdl || SERVER_URI)
|
328
350
|
end
|
329
351
|
end
|
330
352
|
|
331
353
|
|
332
|
-
#
|
354
|
+
# === PML
|
333
355
|
#
|
334
356
|
# Variation database
|
335
357
|
#
|
336
358
|
# * http://xml.nig.ac.jp/doc/PML.txt
|
337
359
|
#
|
338
|
-
#
|
360
|
+
# === Examples
|
339
361
|
#
|
340
|
-
#
|
341
|
-
#
|
362
|
+
# serv = Bio::DDBJ::XML::PML.new
|
363
|
+
# puts serv.getVariation('1')
|
342
364
|
#
|
343
|
-
#
|
365
|
+
# === WSDL Methods
|
344
366
|
#
|
345
|
-
#
|
346
|
-
#
|
347
|
-
#
|
348
|
-
#
|
349
|
-
#
|
350
|
-
#
|
367
|
+
# ==== searchVariation(field, query, order)
|
368
|
+
# ==== searchVariationSimple(field, query)
|
369
|
+
# ==== searchFrequency(field, query, order)
|
370
|
+
# ==== searchFrequencySimple(field, query)
|
371
|
+
# ==== getVariation(variation_id)
|
372
|
+
# ==== getFrequency(variation_id, population_id)
|
351
373
|
#
|
352
|
-
#
|
374
|
+
# === References
|
353
375
|
#
|
354
376
|
# * http://xml.nig.ac.jp/doc/PML.txt
|
355
377
|
#
|
356
378
|
class PML < XML
|
357
379
|
SERVER_URI = BASE_URI + "PML.wsdl"
|
380
|
+
|
381
|
+
# returns a Bio::DDBJ::XML::PML object.
|
358
382
|
def initialize(wsdl = nil)
|
359
383
|
super(wsdl || SERVER_URI)
|
360
384
|
end
|
361
385
|
end
|
362
386
|
|
363
387
|
|
364
|
-
#
|
388
|
+
# === SRS
|
365
389
|
#
|
366
390
|
# Sequence Retrieving System
|
367
391
|
#
|
368
392
|
# * http://xml.nig.ac.jp/doc/SRS.txt
|
369
393
|
#
|
370
|
-
#
|
394
|
+
# === Examples
|
371
395
|
#
|
372
|
-
#
|
373
|
-
#
|
374
|
-
#
|
396
|
+
# serv = Bio::DDBJ::XML::SRS.new
|
397
|
+
# puts serv.searchSimple('[pathway-des:sugar]')
|
398
|
+
# puts serv.searchParam('[swissprot-des:cohesin]', '-f seq -sf fasta')
|
375
399
|
#
|
376
|
-
#
|
400
|
+
# === WSDL Methods
|
377
401
|
#
|
378
|
-
#
|
379
|
-
#
|
402
|
+
# ==== searchSimple(query)
|
403
|
+
# ==== searchParam(query, param)
|
380
404
|
#
|
381
|
-
#
|
405
|
+
# === Examples
|
382
406
|
#
|
383
407
|
# * http://xml.nig.ac.jp/doc/SRS.txt
|
384
408
|
#
|
385
409
|
class SRS < XML
|
386
410
|
SERVER_URI = BASE_URI + "SRS.wsdl"
|
411
|
+
|
412
|
+
# returns a Bio::DDBJ::XML::SRS object.
|
387
413
|
def initialize(wsdl = nil)
|
388
414
|
super(wsdl || SERVER_URI)
|
389
415
|
end
|
390
416
|
end
|
391
417
|
|
392
418
|
|
393
|
-
#
|
419
|
+
# === TxSearch
|
394
420
|
#
|
395
421
|
# Searching taxonomy information.
|
396
422
|
#
|
397
423
|
# * http://xml.nig.ac.jp/doc/TxSearch.txt
|
398
424
|
#
|
399
|
-
#
|
425
|
+
# === Examples
|
400
426
|
#
|
401
|
-
#
|
402
|
-
#
|
403
|
-
#
|
404
|
-
#
|
405
|
-
#
|
427
|
+
# serv = Bio::DDBJ::XML::TxSearch.new
|
428
|
+
# puts serv.searchSimple('*coli')
|
429
|
+
# puts serv.searchSimple('*tardigrada*')
|
430
|
+
# puts serv.getTxId('Escherichia coli')
|
431
|
+
# puts serv.getTxName('562')
|
406
432
|
#
|
407
|
-
#
|
408
|
-
#
|
409
|
-
#
|
433
|
+
# query = ["Campylobacter coli", "Escherichia coli"].join("\n")
|
434
|
+
# rank = ["family", "genus"].join("\n")
|
435
|
+
# puts serv.searchLineage(query, rank, 'Bacteria')
|
410
436
|
#
|
411
|
-
#
|
437
|
+
# === WSDL Methdos
|
412
438
|
#
|
413
|
-
#
|
414
|
-
#
|
415
|
-
#
|
416
|
-
#
|
417
|
-
#
|
439
|
+
# ==== searchSimple(tx_Name)
|
440
|
+
# ==== searchParam(tx_Name, tx_Clas, tx_Rank, tx_Rmax, tx_Dcls)
|
441
|
+
# ==== getTxId(tx_Name)
|
442
|
+
# ==== getTxName(tx_Id)
|
443
|
+
# ==== searchLineage(query, ranks, superkingdom)
|
418
444
|
#
|
419
|
-
#
|
445
|
+
# === References
|
420
446
|
#
|
421
447
|
# * http://xml.nig.ac.jp/doc/TxSearch.txt
|
422
448
|
#
|
423
449
|
class TxSearch < XML
|
424
450
|
SERVER_URI = BASE_URI + "TxSearch.wsdl"
|
451
|
+
|
452
|
+
# returns a Bio::DDBJ::XML::TxSearch object.
|
425
453
|
def initialize(wsdl = nil)
|
426
454
|
super(wsdl || SERVER_URI)
|
427
455
|
end
|