bio 0.7.1 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (142) hide show
  1. data/bin/bioruby +71 -27
  2. data/bin/br_biofetch.rb +5 -17
  3. data/bin/br_bioflat.rb +14 -26
  4. data/bin/br_biogetseq.rb +6 -18
  5. data/bin/br_pmfetch.rb +6 -16
  6. data/doc/Changes-0.7.rd +35 -0
  7. data/doc/KEGG_API.rd +287 -172
  8. data/doc/KEGG_API.rd.ja +273 -160
  9. data/doc/Tutorial.rd +18 -9
  10. data/doc/Tutorial.rd.ja +656 -138
  11. data/lib/bio.rb +6 -24
  12. data/lib/bio/alignment.rb +5 -5
  13. data/lib/bio/appl/blast.rb +132 -98
  14. data/lib/bio/appl/blast/format0.rb +9 -19
  15. data/lib/bio/appl/blast/wublast.rb +5 -18
  16. data/lib/bio/appl/emboss.rb +40 -47
  17. data/lib/bio/appl/hmmer.rb +116 -82
  18. data/lib/bio/appl/hmmer/report.rb +509 -364
  19. data/lib/bio/appl/spidey/report.rb +7 -18
  20. data/lib/bio/data/na.rb +3 -21
  21. data/lib/bio/db.rb +3 -21
  22. data/lib/bio/db/aaindex.rb +147 -52
  23. data/lib/bio/db/embl/common.rb +27 -6
  24. data/lib/bio/db/embl/embl.rb +18 -10
  25. data/lib/bio/db/embl/sptr.rb +87 -67
  26. data/lib/bio/db/embl/swissprot.rb +32 -3
  27. data/lib/bio/db/embl/trembl.rb +32 -3
  28. data/lib/bio/db/embl/uniprot.rb +32 -3
  29. data/lib/bio/db/fasta.rb +327 -289
  30. data/lib/bio/db/medline.rb +25 -4
  31. data/lib/bio/db/nbrf.rb +12 -20
  32. data/lib/bio/db/pdb.rb +4 -1
  33. data/lib/bio/db/pdb/chemicalcomponent.rb +240 -0
  34. data/lib/bio/db/pdb/pdb.rb +13 -8
  35. data/lib/bio/db/rebase.rb +93 -97
  36. data/lib/bio/feature.rb +2 -31
  37. data/lib/bio/io/ddbjxml.rb +167 -139
  38. data/lib/bio/io/fastacmd.rb +89 -56
  39. data/lib/bio/io/flatfile.rb +994 -278
  40. data/lib/bio/io/flatfile/index.rb +257 -194
  41. data/lib/bio/io/flatfile/indexer.rb +37 -29
  42. data/lib/bio/reference.rb +147 -64
  43. data/lib/bio/sequence.rb +57 -417
  44. data/lib/bio/sequence/aa.rb +64 -0
  45. data/lib/bio/sequence/common.rb +175 -0
  46. data/lib/bio/sequence/compat.rb +68 -0
  47. data/lib/bio/sequence/format.rb +134 -0
  48. data/lib/bio/sequence/generic.rb +24 -0
  49. data/lib/bio/sequence/na.rb +189 -0
  50. data/lib/bio/shell.rb +9 -23
  51. data/lib/bio/shell/core.rb +130 -125
  52. data/lib/bio/shell/demo.rb +143 -0
  53. data/lib/bio/shell/{session.rb → interface.rb} +42 -40
  54. data/lib/bio/shell/object.rb +52 -0
  55. data/lib/bio/shell/plugin/codon.rb +4 -22
  56. data/lib/bio/shell/plugin/emboss.rb +23 -0
  57. data/lib/bio/shell/plugin/entry.rb +34 -25
  58. data/lib/bio/shell/plugin/flatfile.rb +5 -23
  59. data/lib/bio/shell/plugin/keggapi.rb +11 -24
  60. data/lib/bio/shell/plugin/midi.rb +5 -23
  61. data/lib/bio/shell/plugin/obda.rb +4 -22
  62. data/lib/bio/shell/plugin/seq.rb +6 -24
  63. data/lib/bio/shell/rails/Rakefile +10 -0
  64. data/lib/bio/shell/rails/app/controllers/application.rb +4 -0
  65. data/lib/bio/shell/rails/app/controllers/shell_controller.rb +94 -0
  66. data/lib/bio/shell/rails/app/helpers/application_helper.rb +3 -0
  67. data/lib/bio/shell/rails/app/models/shell_connection.rb +30 -0
  68. data/lib/bio/shell/rails/app/views/layouts/shell.rhtml +37 -0
  69. data/lib/bio/shell/rails/app/views/shell/history.rhtml +5 -0
  70. data/lib/bio/shell/rails/app/views/shell/index.rhtml +2 -0
  71. data/lib/bio/shell/rails/app/views/shell/show.rhtml +13 -0
  72. data/lib/bio/shell/rails/config/boot.rb +19 -0
  73. data/lib/bio/shell/rails/config/database.yml +85 -0
  74. data/lib/bio/shell/rails/config/environment.rb +53 -0
  75. data/lib/bio/shell/rails/config/environments/development.rb +19 -0
  76. data/lib/bio/shell/rails/config/environments/production.rb +19 -0
  77. data/lib/bio/shell/rails/config/environments/test.rb +19 -0
  78. data/lib/bio/shell/rails/config/routes.rb +19 -0
  79. data/lib/bio/shell/rails/doc/README_FOR_APP +2 -0
  80. data/lib/bio/shell/rails/public/404.html +8 -0
  81. data/lib/bio/shell/rails/public/500.html +8 -0
  82. data/lib/bio/shell/rails/public/dispatch.cgi +10 -0
  83. data/lib/bio/shell/rails/public/dispatch.fcgi +24 -0
  84. data/lib/bio/shell/rails/public/dispatch.rb +10 -0
  85. data/lib/bio/shell/rails/public/favicon.ico +0 -0
  86. data/lib/bio/shell/rails/public/images/icon.png +0 -0
  87. data/lib/bio/shell/rails/public/images/rails.png +0 -0
  88. data/lib/bio/shell/rails/public/index.html +277 -0
  89. data/lib/bio/shell/rails/public/javascripts/controls.js +750 -0
  90. data/lib/bio/shell/rails/public/javascripts/dragdrop.js +584 -0
  91. data/lib/bio/shell/rails/public/javascripts/effects.js +854 -0
  92. data/lib/bio/shell/rails/public/javascripts/prototype.js +1785 -0
  93. data/lib/bio/shell/rails/public/robots.txt +1 -0
  94. data/lib/bio/shell/rails/public/stylesheets/main.css +187 -0
  95. data/lib/bio/shell/rails/script/about +3 -0
  96. data/lib/bio/shell/rails/script/breakpointer +3 -0
  97. data/lib/bio/shell/rails/script/console +3 -0
  98. data/lib/bio/shell/rails/script/destroy +3 -0
  99. data/lib/bio/shell/rails/script/generate +3 -0
  100. data/lib/bio/shell/rails/script/performance/benchmarker +3 -0
  101. data/lib/bio/shell/rails/script/performance/profiler +3 -0
  102. data/lib/bio/shell/rails/script/plugin +3 -0
  103. data/lib/bio/shell/rails/script/process/reaper +3 -0
  104. data/lib/bio/shell/rails/script/process/spawner +3 -0
  105. data/lib/bio/shell/rails/script/process/spinner +3 -0
  106. data/lib/bio/shell/rails/script/runner +3 -0
  107. data/lib/bio/shell/rails/script/server +42 -0
  108. data/lib/bio/shell/rails/test/test_helper.rb +28 -0
  109. data/lib/bio/shell/web.rb +90 -0
  110. data/lib/bio/util/contingency_table.rb +231 -225
  111. data/sample/any2fasta.rb +59 -0
  112. data/test/data/HMMER/hmmpfam.out +64 -0
  113. data/test/data/HMMER/hmmsearch.out +88 -0
  114. data/test/data/aaindex/DAYM780301 +30 -0
  115. data/test/data/aaindex/PRAM900102 +20 -0
  116. data/test/data/bl2seq/cd8a_cd8b_blastp.bl2seq +53 -0
  117. data/test/data/bl2seq/cd8a_p53_e-5blastp.bl2seq +37 -0
  118. data/test/data/blast/{eco:b0002.faa → b0002.faa} +0 -0
  119. data/test/data/blast/{eco:b0002.faa.m0 → b0002.faa.m0} +2 -2
  120. data/test/data/blast/{eco:b0002.faa.m7 → b0002.faa.m7} +1 -1
  121. data/test/data/blast/{eco:b0002.faa.m8 → b0002.faa.m8} +0 -0
  122. data/test/unit/bio/appl/bl2seq/test_report.rb +134 -0
  123. data/test/unit/bio/appl/blast/test_report.rb +15 -12
  124. data/test/unit/bio/appl/blast/test_xmlparser.rb +4 -4
  125. data/test/unit/bio/appl/hmmer/test_report.rb +355 -0
  126. data/test/unit/bio/appl/test_blast.rb +5 -5
  127. data/test/unit/bio/data/test_na.rb +9 -18
  128. data/test/unit/bio/db/pdb/test_pdb.rb +169 -0
  129. data/test/unit/bio/db/test_aaindex.rb +197 -0
  130. data/test/unit/bio/io/test_fastacmd.rb +55 -0
  131. data/test/unit/bio/sequence/test_aa.rb +102 -0
  132. data/test/unit/bio/sequence/test_common.rb +178 -0
  133. data/test/unit/bio/sequence/test_compat.rb +82 -0
  134. data/test/unit/bio/sequence/test_na.rb +242 -0
  135. data/test/unit/bio/shell/plugin/test_seq.rb +29 -19
  136. data/test/unit/bio/test_alignment.rb +15 -7
  137. data/test/unit/bio/test_reference.rb +198 -0
  138. data/test/unit/bio/test_sequence.rb +4 -49
  139. data/test/unit/bio/test_shell.rb +2 -2
  140. metadata +118 -15
  141. data/lib/bio/io/brdb.rb +0 -103
  142. data/lib/bioruby.rb +0 -34
@@ -3,14 +3,9 @@
3
3
  #
4
4
  # Copyright:: Copyright (c) 2002, 2005
5
5
  # Toshiaki Katayama <k@bioruby.org>
6
- # License:: LGPL
6
+ # License:: Ruby's
7
7
  #
8
- # $Id: feature.rb,v 1.9 2005/11/30 01:54:38 k Exp $
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
@@ -5,7 +5,7 @@
5
5
  # KATAYAMA Toshiaki <k@bioruby.org>
6
6
  # License:: LGPL
7
7
  #
8
- # $Id: ddbjxml.rb,v 1.9 2005/11/26 09:37:11 nakao Exp $
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 at
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
- # = Blast
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
- # == Examples
55
- #
56
- # serv = Bio::DDBJ::XML::Blast.new
57
- # query = "MSSRIARALALVVTLLHLTRLALSTCPAACHCPLEAPKCAPGVGLVRDGCGCCKVCAKQL"
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
- # report = serv.searchSimple('blastp', 'SWISS', query)
60
- # Bio::Blast::Default::Report.new(report).each_hit do |hit|
61
- # hit.hsps.find_all {|x| x.evalue < 0.1 }.each do |hsp|
62
- # p [hsps.evalue, hsps.identity, hsps.definition]
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
- # == WSDL Methods
73
+ # === WSDL Methods
69
74
  #
70
- # * searchSimple(program, database, query)
75
+ # ==== searchSimple(program, database, query)
76
+ #
71
77
  # Returns a blast report in the default format.
72
- # * searchParam(program, database, query, param)
78
+ #
79
+ # ==== searchParam(program, database, query, param)
80
+ #
73
81
  # Blasts with param and returns a blast report.
74
82
  #
75
- # == References
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
- # == ClustalW
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
- # == Examples
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
- # == WSDL Methods
124
+ # === WSDL Methods
115
125
  #
116
- # * analyzeSimple(query)
117
- # * analyzeParam(query, param)
126
+ # ==== analyzeSimple(query)
127
+ # ==== analyzeParam(query, param)
118
128
  #
119
- # == References
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
- # = DDBJ
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
- # == Examples
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
- # == WSDL Methods
159
+ # === WSDL Methods
148
160
  #
149
- # * getFFEntry(accession)
150
- # * getXMLEntry(accession)
151
- # * getFeatureInfo(accession, feature)
152
- # * getAllFeatures(accession)
153
- # * getRelatedFeatures(accession, start, stop)
154
- # * getRelatedFeaturesSeq(accession, start, stop)
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
- # == References
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
- # = Fasta
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
- # == Examples
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
- # == WSDL Methods
197
+ # === WSDL Methods
184
198
  #
185
- # * searchSimple(program, database, query)
186
- # * searchParam(program, database, query, param)
199
+ # ==== searchSimple(program, database, query)
200
+ # ==== searchParam(program, database, query, param)
187
201
  #
188
- # == References
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
- # = GetEntry
216
+ # == GetEntry
201
217
  #
202
218
  # Retrieves database entries.
203
219
  #
204
220
  # * http://xml.nig.ac.jp/doc/GetEntry.txt
205
221
  #
206
- # == Examples
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
- # == WSDL Methods
213
- #
214
- # * getEntry(database, var, param1, param2)
215
- # * getEntry(database, var)
216
- # * getDDBJEntry(accession)
217
- # * getDDBJCONEntry(accession)
218
- # * getDDBJVerEntry(accession)
219
- # * getLocus_DDBJEntry(locus)
220
- # * getGene_DDBJEntry(gene)
221
- # * getProd_DDBJEntry(products)
222
- # * getPID_DDBJEntry(pid)
223
- # * getClone_DDBJEntry(clone)
224
- # * getXML_DDBJEntry(accession)
225
- # * getEMBLEntry(accession)
226
- # * getSWISSEntry(accession)
227
- # * getPIREntry(accession)
228
- # * getPRFEntry(accession)
229
- # * getPDBEntry(accession)
230
- # * getQVEntry(accession)
231
- # * getDADEntry(accession)
232
- # * getPID_DADEntry(pid)
233
- # * getFASTA_DDBJEntry(accession)
234
- # * getFASTA_DDBJCONEntry(accession)
235
- # * getFASTA_DDBJVerEntry(accession)
236
- # * getFASTA_DDBJSeqEntry(accession, start, end)
237
- # * getFASTA_DADEntry(accession)
238
- # * getFASTA_PIREntry(accession)
239
- # * getFASTA_SWISSEntry(accession)
240
- # * getFASTA_PDBEntry(accession)
241
- # * getFASTA_PRFEntry(accession)
242
- # * getFASTA_CDSEntry(accession)
243
- #
244
- # == References
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
- # = Gib
274
+ # === Gib
257
275
  #
258
276
  # Genome Information broker
259
277
  #
260
278
  # * http://xml.nig.ac.jp/doc/Gib.txt
261
279
  #
262
- # == Examples
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
- # == WSDL Methods
295
+ # === WSDL Methods
278
296
  #
279
- # * getOrganismList
280
- # * getChIDList
281
- # * getOrganismNameFromChid(chid)
282
- # * getChIDFromOrganismName(orgName)
283
- # * getAccession(chid)
284
- # * getPieceNumber(chid)
285
- # * getDivision(chid)
286
- # * getType(chid)
287
- # * getFlatFile(chid)
288
- # * getFastaFile(chid, type)
289
- # * getCDS(chid)
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
- # == References
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
- # = Gtop
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
- # == Examples
329
+ # === Examples
310
330
  #
311
- # serv = Bio::DDBJ::XML::Gtop.new
312
- # puts serv.getOrganismList
313
- # puts serv.getMasterInfo('thrA', 'ecol0')
331
+ # serv = Bio::DDBJ::XML::Gtop.new
332
+ # puts serv.getOrganismList
333
+ # puts serv.getMasterInfo('thrA', 'ecol0')
314
334
  #
315
- # == WSDL Methods
335
+ # === WSDL Methods
316
336
  #
317
- # * getOrganismList
318
- # * getMasterInfo(orfID, organism)
337
+ # ==== getOrganismList
338
+ # ==== getMasterInfo(orfID, organism)
319
339
  #
320
- # == References
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
- # == PML
354
+ # === PML
333
355
  #
334
356
  # Variation database
335
357
  #
336
358
  # * http://xml.nig.ac.jp/doc/PML.txt
337
359
  #
338
- # == Examples
360
+ # === Examples
339
361
  #
340
- # serv = Bio::DDBJ::XML::PML.new
341
- # puts serv.getVariation('1')
362
+ # serv = Bio::DDBJ::XML::PML.new
363
+ # puts serv.getVariation('1')
342
364
  #
343
- # == WSDL Methods
365
+ # === WSDL Methods
344
366
  #
345
- # * searchVariation(field, query, order)
346
- # * searchVariationSimple(field, query)
347
- # * searchFrequency(field, query, order)
348
- # * searchFrequencySimple(field, query)
349
- # * getVariation(variation_id)
350
- # * getFrequency(variation_id, population_id)
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
- # == References
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
- # = SRS
388
+ # === SRS
365
389
  #
366
390
  # Sequence Retrieving System
367
391
  #
368
392
  # * http://xml.nig.ac.jp/doc/SRS.txt
369
393
  #
370
- # == Examples
394
+ # === Examples
371
395
  #
372
- # serv = Bio::DDBJ::XML::SRS.new
373
- # puts serv.searchSimple('[pathway-des:sugar]')
374
- # puts serv.searchParam('[swissprot-des:cohesin]', '-f seq -sf fasta')
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
- # == WSDL Methods
400
+ # === WSDL Methods
377
401
  #
378
- # * searchSimple(query)
379
- # * searchParam(query, param)
402
+ # ==== searchSimple(query)
403
+ # ==== searchParam(query, param)
380
404
  #
381
- # == Examples
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
- # = TxSearch
419
+ # === TxSearch
394
420
  #
395
421
  # Searching taxonomy information.
396
422
  #
397
423
  # * http://xml.nig.ac.jp/doc/TxSearch.txt
398
424
  #
399
- # == Examples
425
+ # === Examples
400
426
  #
401
- # serv = Bio::DDBJ::XML::TxSearch.new
402
- # puts serv.searchSimple('*coli')
403
- # puts serv.searchSimple('*tardigrada*')
404
- # puts serv.getTxId('Escherichia coli')
405
- # puts serv.getTxName('562')
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
- # query = ["Campylobacter coli", "Escherichia coli"].join("\n")
408
- # rank = ["family", "genus"].join("\n")
409
- # puts serv.searchLineage(query, rank, 'Bacteria')
433
+ # query = ["Campylobacter coli", "Escherichia coli"].join("\n")
434
+ # rank = ["family", "genus"].join("\n")
435
+ # puts serv.searchLineage(query, rank, 'Bacteria')
410
436
  #
411
- # == WSDL Methdos
437
+ # === WSDL Methdos
412
438
  #
413
- # * searchSimple(tx_Name)
414
- # * searchParam(tx_Name, tx_Clas, tx_Rank, tx_Rmax, tx_Dcls)
415
- # * getTxId(tx_Name)
416
- # * getTxName(tx_Id)
417
- # * searchLineage(query, ranks, superkingdom)
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
- # == References
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