bio 1.5.1 → 2.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (128) hide show
  1. checksums.yaml +5 -5
  2. data/.travis.yml +35 -36
  3. data/ChangeLog +911 -2554
  4. data/{gemfiles/Gemfile.travis-ruby2.2 → Gemfile} +0 -3
  5. data/KNOWN_ISSUES.rdoc +10 -13
  6. data/LEGAL +0 -10
  7. data/README.rdoc +40 -96
  8. data/README_DEV.rdoc +5 -5
  9. data/RELEASE_NOTES.rdoc +118 -234
  10. data/Rakefile +13 -43
  11. data/appveyor.yml +29 -0
  12. data/bioruby.gemspec +18 -81
  13. data/bioruby.gemspec.erb +8 -28
  14. data/doc/ChangeLog-1.5.0 +2919 -0
  15. data/doc/RELEASE_NOTES-1.5.0.rdoc +285 -0
  16. data/doc/Tutorial.rd +6 -108
  17. data/doc/Tutorial.rd.html +19 -98
  18. data/gemfiles/Gemfile.travis-jruby1.8 +3 -5
  19. data/gemfiles/Gemfile.travis-jruby1.9 +0 -3
  20. data/gemfiles/Gemfile.travis-rbx +0 -3
  21. data/gemfiles/Gemfile.travis-ruby1.8 +3 -5
  22. data/gemfiles/Gemfile.travis-ruby1.9 +0 -3
  23. data/gemfiles/Gemfile.windows +6 -0
  24. data/gemfiles/prepare-gemspec.rb +4 -0
  25. data/lib/bio.rb +0 -10
  26. data/lib/bio/appl/blast/genomenet.rb +4 -4
  27. data/lib/bio/appl/blast/report.rb +40 -8
  28. data/lib/bio/appl/fasta/format10.rb +2 -1
  29. data/lib/bio/command.rb +10 -0
  30. data/lib/bio/data/codontable.rb +99 -3
  31. data/lib/bio/db/aaindex.rb +74 -5
  32. data/lib/bio/db/gff.rb +3 -1
  33. data/lib/bio/db/kegg/common.rb +14 -0
  34. data/lib/bio/db/kegg/genes.rb +26 -0
  35. data/lib/bio/db/kegg/pathway.rb +5 -11
  36. data/lib/bio/db/soft.rb +2 -2
  37. data/lib/bio/io/flatfile/autodetection.rb +5 -0
  38. data/lib/bio/io/togows.rb +5 -5
  39. data/lib/bio/map.rb +4 -4
  40. data/lib/bio/sequence/format.rb +1 -0
  41. data/lib/bio/util/restriction_enzyme/range/sequence_range/calculated_cuts.rb +1 -1
  42. data/lib/bio/util/sirna.rb +2 -0
  43. data/lib/bio/version.rb +6 -8
  44. data/sample/color_scheme_aa.rb +82 -0
  45. data/sample/color_scheme_na.rb +5 -6
  46. data/sample/fastq2html.cwl +23 -0
  47. data/sample/fastq2html.rb +94 -0
  48. data/sample/fastq2html.testdata.yaml +5 -0
  49. data/sample/na2aa.cwl +23 -0
  50. data/sample/na2aa.rb +11 -25
  51. data/sample/na2aa.testdata.yaml +7 -0
  52. data/sample/rev_comp.cwl +23 -0
  53. data/sample/rev_comp.rb +20 -0
  54. data/sample/rev_comp.testdata.yaml +7 -0
  55. data/sample/test_restriction_enzyme_long.rb +1 -1
  56. data/test/network/bio/db/kegg/test_genes_hsa7422.rb +91 -0
  57. data/test/unit/bio/appl/blast/test_report.rb +4 -4
  58. data/test/unit/bio/data/test_codontable.rb +3 -0
  59. data/test/unit/bio/db/test_gff.rb +5 -0
  60. data/test/unit/bio/test_alignment.rb +2 -2
  61. metadata +20 -77
  62. data/bin/bioruby +0 -47
  63. data/bin/br_biofetch.rb +0 -71
  64. data/bin/br_bioflat.rb +0 -293
  65. data/bin/br_biogetseq.rb +0 -45
  66. data/bin/br_pmfetch.rb +0 -422
  67. data/lib/bio/appl/blast/xmlparser.rb +0 -236
  68. data/lib/bio/db/biosql/biosql_to_biosequence.rb +0 -78
  69. data/lib/bio/db/biosql/sequence.rb +0 -444
  70. data/lib/bio/db/phyloxml/phyloxml.xsd +0 -582
  71. data/lib/bio/db/phyloxml/phyloxml_elements.rb +0 -1197
  72. data/lib/bio/db/phyloxml/phyloxml_parser.rb +0 -1001
  73. data/lib/bio/db/phyloxml/phyloxml_writer.rb +0 -227
  74. data/lib/bio/io/biosql/ar-biosql.rb +0 -257
  75. data/lib/bio/io/biosql/biosql.rb +0 -39
  76. data/lib/bio/io/biosql/config/database.yml +0 -21
  77. data/lib/bio/io/sql.rb +0 -79
  78. data/lib/bio/shell.rb +0 -44
  79. data/lib/bio/shell/core.rb +0 -578
  80. data/lib/bio/shell/demo.rb +0 -146
  81. data/lib/bio/shell/interface.rb +0 -217
  82. data/lib/bio/shell/irb.rb +0 -94
  83. data/lib/bio/shell/object.rb +0 -71
  84. data/lib/bio/shell/plugin/blast.rb +0 -42
  85. data/lib/bio/shell/plugin/codon.rb +0 -218
  86. data/lib/bio/shell/plugin/das.rb +0 -58
  87. data/lib/bio/shell/plugin/emboss.rb +0 -23
  88. data/lib/bio/shell/plugin/entry.rb +0 -137
  89. data/lib/bio/shell/plugin/flatfile.rb +0 -101
  90. data/lib/bio/shell/plugin/midi.rb +0 -430
  91. data/lib/bio/shell/plugin/ncbirest.rb +0 -68
  92. data/lib/bio/shell/plugin/obda.rb +0 -45
  93. data/lib/bio/shell/plugin/psort.rb +0 -56
  94. data/lib/bio/shell/plugin/seq.rb +0 -248
  95. data/lib/bio/shell/plugin/togows.rb +0 -40
  96. data/lib/bio/shell/rails/vendor/plugins/bioruby/generators/bioruby/bioruby_generator.rb +0 -29
  97. data/lib/bio/shell/rails/vendor/plugins/bioruby/generators/bioruby/templates/_classes.rhtml +0 -4
  98. data/lib/bio/shell/rails/vendor/plugins/bioruby/generators/bioruby/templates/_log.rhtml +0 -27
  99. data/lib/bio/shell/rails/vendor/plugins/bioruby/generators/bioruby/templates/_methods.rhtml +0 -11
  100. data/lib/bio/shell/rails/vendor/plugins/bioruby/generators/bioruby/templates/_modules.rhtml +0 -4
  101. data/lib/bio/shell/rails/vendor/plugins/bioruby/generators/bioruby/templates/_variables.rhtml +0 -7
  102. data/lib/bio/shell/rails/vendor/plugins/bioruby/generators/bioruby/templates/bioruby-bg.gif +0 -0
  103. data/lib/bio/shell/rails/vendor/plugins/bioruby/generators/bioruby/templates/bioruby-gem.png +0 -0
  104. data/lib/bio/shell/rails/vendor/plugins/bioruby/generators/bioruby/templates/bioruby-link.gif +0 -0
  105. data/lib/bio/shell/rails/vendor/plugins/bioruby/generators/bioruby/templates/bioruby.css +0 -368
  106. data/lib/bio/shell/rails/vendor/plugins/bioruby/generators/bioruby/templates/bioruby.rhtml +0 -47
  107. data/lib/bio/shell/rails/vendor/plugins/bioruby/generators/bioruby/templates/bioruby_controller.rb +0 -144
  108. data/lib/bio/shell/rails/vendor/plugins/bioruby/generators/bioruby/templates/bioruby_helper.rb +0 -47
  109. data/lib/bio/shell/rails/vendor/plugins/bioruby/generators/bioruby/templates/commands.rhtml +0 -8
  110. data/lib/bio/shell/rails/vendor/plugins/bioruby/generators/bioruby/templates/history.rhtml +0 -10
  111. data/lib/bio/shell/rails/vendor/plugins/bioruby/generators/bioruby/templates/index.rhtml +0 -26
  112. data/lib/bio/shell/rails/vendor/plugins/bioruby/generators/bioruby/templates/spinner.gif +0 -0
  113. data/lib/bio/shell/script.rb +0 -25
  114. data/lib/bio/shell/setup.rb +0 -108
  115. data/lib/bio/shell/web.rb +0 -102
  116. data/sample/test_phyloxml_big.rb +0 -205
  117. data/setup.rb +0 -1600
  118. data/test/data/phyloxml/apaf.xml +0 -666
  119. data/test/data/phyloxml/bcl_2.xml +0 -2097
  120. data/test/data/phyloxml/made_up.xml +0 -144
  121. data/test/data/phyloxml/ncbi_taxonomy_mollusca_short.xml +0 -65
  122. data/test/data/phyloxml/phyloxml_examples.xml +0 -415
  123. data/test/unit/bio/db/biosql/tc_biosql.rb +0 -114
  124. data/test/unit/bio/db/biosql/ts_suite_biosql.rb +0 -8
  125. data/test/unit/bio/db/test_phyloxml.rb +0 -821
  126. data/test/unit/bio/db/test_phyloxml_writer.rb +0 -334
  127. data/test/unit/bio/shell/plugin/test_seq.rb +0 -187
  128. data/test/unit/bio/test_shell.rb +0 -20
@@ -4,6 +4,3 @@ gem "rake"
4
4
  gem "rdoc"
5
5
  gem "test-unit"
6
6
 
7
- gem "xmlparser"
8
- gem "libxml-ruby"
9
-
@@ -1,5 +1,5 @@
1
1
  = KNOWN_ISSUES.rdoc - Known issues and bugs in BioRuby
2
- Copyright:: Copyright (C) 2009-2012 Naohisa Goto <ng@bioruby.org>
2
+ Copyright:: Copyright (C) 2009-2020 Naohisa Goto <ng@bioruby.org>
3
3
  License:: The Ruby License
4
4
 
5
5
  = Known issues and bugs in BioRuby
@@ -12,10 +12,13 @@ they are not BioRuby's issues and/or it is very difficult to fix them.
12
12
 
13
13
  == 1. Ruby version specific issues
14
14
 
15
- === Ruby 1.9.1 or later
15
+ ==== Ruby 3.0
16
16
 
17
- Some classes/modules/methods still may not work or may return incorrect
18
- results in Ruby 1.9.X, especially those not covered by the unit tests.
17
+ Since Ruby 3.0, internal inplementation of String methods are changed and
18
+ methods in a subclass of String return String instead of the subclass
19
+ instance. Bio::Sequence::NA, AA, and Generic inherit String and are severely
20
+ affected by this change.
21
+ See GitHub issue https://github.com/bioruby/bioruby/issues/137 .
19
22
 
20
23
  ==== String encodings
21
24
 
@@ -28,12 +31,11 @@ Encoding::CompatibilityError or "ArgumentError: invalid byte sequence in
28
31
  ==== Ruby 1.9.0
29
32
 
30
33
  (WONT_FIX) Ruby 1.9.0 is NOT supported because it isn't a stable release.
31
- Use Ruby 1.9.1 or later.
32
34
 
33
- ==== Ruby 1.8.6 or earlier
35
+ ==== Ruby 1.9.1 or earlier (including Ruby 1.8.7)
34
36
 
35
- (WONT_FIX) Problems observed only with Ruby 1.8.6 or earlier will not be
36
- fixed. Note that Ruby 1.8.6 or earlier is no longer supported, as described
37
+ (WONT_FIX) Problems observed only with Ruby 1.9.1 or earlier will not be
38
+ fixed. Note that Ruby 1.9.1 or earlier is no longer supported, as described
37
39
  in README.rdoc.
38
40
 
39
41
  ==== Ruby 1.8.2 or earlier
@@ -162,11 +164,6 @@ do not recommend to do so because the format is unstable.
162
164
 
163
165
  == 4. Compatibility issues with other libraries/extensions
164
166
 
165
- === ActiveRecord
166
-
167
- BioSQL support uses ActiveRecord, but the author of the document does not
168
- know which version is suitable.
169
-
170
167
  === Ruby on Rails
171
168
 
172
169
  BioRuby Shell on Web uses Ruby on Rails, but the author of the document does
data/LEGAL CHANGED
@@ -6,15 +6,6 @@ license (see the file COPYING) or public-domain except some files
6
6
  mentioned below.
7
7
 
8
8
 
9
- setup.rb:
10
-
11
- Copyright (c) 2000-2006 Minero Aoki
12
-
13
- This program is free software.
14
- You can distribute/modify this program under the terms of
15
- the GNU LGPL, Lesser General Public License version 2.1.
16
-
17
-
18
9
  sample/any2fasta.rb:
19
10
 
20
11
  Copyright (C) 2006 Pjotr Prins <p@bioruby.org>
@@ -68,7 +59,6 @@ sample/vs-genes.rb:
68
59
 
69
60
  sample/fastagrep.rb:
70
61
  sample/fastasort.rb:
71
- sample/na2aa.rb:
72
62
 
73
63
  Copyright (C) 2008 KATAYAMA Toshiaki <k@bioruby.org> & Pjotr Prins
74
64
 
@@ -2,7 +2,7 @@
2
2
  = README.rdoc - README for BioRuby
3
3
  Copyright:: Copyright (C) 2001-2007 Toshiaki Katayama <k@bioruby.org>,
4
4
  Copyright (C) 2008 Jan Aerts <jandot@bioruby.org>
5
- Copyright (C) 2011-2015 Naohisa Goto <ng@bioruby.org>
5
+ Copyright (C) 2011-2019 Naohisa Goto <ng@bioruby.org>
6
6
  License:: The Ruby License
7
7
  * The above statement is limited to this file. See below about BioRuby's
8
8
  copyright and license.
@@ -10,7 +10,7 @@ License:: The Ruby License
10
10
 
11
11
  = BioRuby
12
12
 
13
- Copyright (C) 2001-2012 Toshiaki Katayama <k@bioruby.org>
13
+ Copyright (C) 2001-2019 Toshiaki Katayama <k@bioruby.org>
14
14
 
15
15
  BioRuby is an open source Ruby library for developing bioinformatics
16
16
  software. Object oriented scripting language Ruby has many features
@@ -30,7 +30,7 @@ Blast, Fasta, Hmmer and many other software packages for biological
30
30
  analysis can be executed within the BioRuby script, and the results
31
31
  can be fully parsed to extract the portion you need. BioRuby supports
32
32
  major biological database formats and provides many ways for accessing
33
- them through flatfile indexing, SQL, web services etc. Various web
33
+ them through flatfile indexing, web services etc. Various web
34
34
  services can be easily utilized by BioRuby.
35
35
 
36
36
 
@@ -45,10 +45,7 @@ See RELEASE_NOTES.rdoc for news and important changes in this version.
45
45
  README.rdoc:: This file. General information and installation procedure.
46
46
  RELEASE_NOTES.rdoc:: News and important changes in this release.
47
47
  KNOWN_ISSUES.rdoc:: Known issues and bugs in BioRuby.
48
- doc/RELEASE_NOTES-1.4.3.rdoc:: News and incompatible changes from 1.4.2 to 1.4.3.
49
- doc/RELEASE_NOTES-1.4.2.rdoc:: News and incompatible changes from 1.4.1 to 1.4.2.
50
- doc/RELEASE_NOTES-1.4.1.rdoc:: News and incompatible changes from 1.4.0 to 1.4.1.
51
- doc/RELEASE_NOTES-1.4.0.rdoc:: News and incompatible changes from 1.3.1 to 1.4.0.
48
+ doc/RELEASE_NOTES-*.rdoc:: Release notes for old versions.
52
49
  doc/Changes-1.3.rdoc:: News and incompatible changes from 1.2.1 to 1.3.0.
53
50
  doc/Changes-0.7.rd:: News and incompatible changes from 0.6.4 to 1.2.1.
54
51
 
@@ -60,7 +57,7 @@ doc/Tutorial.rd.html:: HTML version of Tutorial.rd.
60
57
  ==== BioRuby development
61
58
 
62
59
  ChangeLog:: History of changes.
63
- doc/ChangeLog-1.4.3:: changes from 1.4.2 to 1.4.3.
60
+ doc/ChangeLog-*:: ChangeLog for old versions.
64
61
  doc/ChangeLog-before-1.4.2:: changes before 1.4.2.
65
62
  doc/ChangeLog-before-1.3.1:: changes before 1.3.1.
66
63
  README_DEV.rdoc:: Describes ways to contribute to the BioRuby project, including coding styles and documentation guidelines.
@@ -114,9 +111,8 @@ and can be obtained by the following procedure:
114
111
 
115
112
  == REQUIREMENTS
116
113
 
117
- * Ruby 1.8.7 or later (except Ruby 1.9.0) -- http://www.ruby-lang.org/
118
- * Ruby 2.1.6 or later, or Ruby 2.2.2 or later is recommended.
119
- * This is the final version running on Ruby 1.8, tested with Ruby1.8.7-p374.
114
+ * Ruby 2.0.0 or later -- http://www.ruby-lang.org/
115
+ * Ruby 2.4.6, 2.5.5, 2.6.3 or later is recommended.
120
116
  * See KNOWN_ISSUES.rdoc for Ruby version specific problems.
121
117
 
122
118
 
@@ -126,37 +122,12 @@ Some optional libraries can be utilized to extend BioRuby's functionality.
126
122
  If your needs meets the following conditions, install them by using RubyGems,
127
123
  or download and install from the following web sites.
128
124
 
129
- For faster parsing of the BLAST XML output format:
130
-
131
- * {xmlparser}[https://rubygems.org/gems/xmlparser]
132
- * For Ruby 1.8: {gem install xmlparser}[http://rubygems.org/gems/xmlparser]
133
- * For Ruby 1.9 or later: http://www.yoshidam.net/Ruby.html#xmlparser
134
- * In both cases, {The Expat XML Parser}[http://expat.sourceforge.net/]
135
- and C compiler will be required.
136
-
137
125
  Creating faster flatfile index using Berkley DB:
138
126
 
139
127
  * {GitHub:ruby-bdb}[https://github.com/knu/ruby-bdb]
140
128
  (which took over {bdb}[https://github.com/ruby-bdb/bdb])
141
129
  (No RubyGems available)
142
130
  * {Oracle Berkeley DB}[http://www.oracle.com/technetwork/database/berkeleydb/index.html] and C compiler will be required.
143
-
144
- Accessing BioSQL database created by other Open Bio* libraries:
145
-
146
- * {gem install activerecord}[http://rubygems.org/gems/activerecord]
147
- and at least one driver (or adapter):
148
- * {gem install mysql}[http://rubygems.org/gems/mysql] or
149
- {gem install mysql2}[http://rubygems.org/gems/mysql2]
150
- * {gem install pg}[http://rubygems.org/gems/pg]
151
- * {gem install sqlite-ruby}[http://rubygems.org/gems/sqlite-ruby] or
152
- {gem install sqlite3}[http://rubygems.org/gems/sqlite3]
153
- * {gem install activerecord-oracle_enhanced-adapter}[http://rubygems.org/gems/activerecord-oracle_enhanced-adapter]
154
-
155
- For parsing PhyloXML format files:
156
-
157
- * {gem install libxml-ruby}[http://rubygems.org/gems/libxml-ruby]
158
- * {GNOME Libxml2 XML toolkit}[http://xmlsoft.org/] and C compiler will be
159
- required.
160
131
 
161
132
 
162
133
  == INSTALL
@@ -170,40 +141,6 @@ If you are using RubyGems, just type
170
141
  Alternatively, manually download bio-X.X.X.gem from
171
142
  http://bioruby.org/archive/ and install it by using gems command.
172
143
 
173
- RubyGems is bundled with Ruby 1.9.1 or later. For Ruby 1.8.7 or earlier,
174
- download and install RubyGems from http://rubygems.org/ .
175
-
176
- === INSTALL without RubyGems
177
-
178
- In the bioruby source directory (such as bioruby-x.x.x/), run setup.rb
179
- as follows:
180
-
181
- % su
182
- # ruby setup.rb
183
-
184
- These simple step installs this program under the default location of
185
- Ruby libraries. You can also install files into your favorite directory
186
- by supplying setup.rb some options. Try "ruby setup.rb --help".
187
-
188
- If your operating system supports 'sudo' command (such as Mac OS X),
189
- try the following procedure instead of the above.
190
-
191
- % sudo ruby setup.rb
192
-
193
- For older version users: "install.rb" is now renamed to "setup.rb".
194
- The options "config", "setup", and "install" are still available.
195
-
196
- % ruby setup.rb config
197
- % ruby setup.rb setup
198
- % su
199
- # ruby setup.rb install
200
-
201
- You can run
202
-
203
- % ruby setup.rb --help
204
-
205
- for more details.
206
-
207
144
 
208
145
  === Running self-test
209
146
 
@@ -214,19 +151,6 @@ To run tests,
214
151
 
215
152
  % ruby test/runner.rb
216
153
 
217
- If you are using Ruby 1.8.x and you want to use components installed by using
218
- RubyGems, explicit loading of RubyGems may be needed.
219
-
220
- % ruby -rubygems test/runner.rb
221
-
222
- Alternatively, testrb, the test runner command of ruby, can be used.
223
-
224
- % testrb test/
225
-
226
- With testrb, you can select tests to run, for example,
227
-
228
- % testrb test/unit
229
-
230
154
  For those familiar with Rake,
231
155
 
232
156
  % rake test
@@ -270,15 +194,6 @@ You can also read other documentation in the 'doc' directory.
270
194
 
271
195
  bioruby-x.x.x/doc/
272
196
 
273
- === RubyGems on Ruby 1.8.x
274
-
275
- With RubyGems on Ruby 1.8.x, you may need to load 'rubygems' library before
276
- using 'bio'. This may not be needed, depending on settings of Ruby.
277
-
278
- #!/usr/bin/env ruby
279
- require 'rubygems'
280
- require 'bio'
281
-
282
197
 
283
198
  == PLUGIN (Biogem)
284
199
 
@@ -287,20 +202,49 @@ for list of plugins and related software utilizing BioRuby.
287
202
 
288
203
  * http://biogems.info/
289
204
 
205
+ Plugins (Biogems) listed below had been included in BioRuby in former days,
206
+ and were split to separate packages to reduce complexity and external
207
+ dependencies.
208
+
209
+ * {bio-shell}[https://rubygems.org/gems/bio-shell]
210
+ * {bio-executables}[https://rubygems.org/gems/bio-executables]
211
+ * {bio-blast-xmlparser}[https://rubygems.org/gems/bio-blast-xmlparser]
212
+ * {bioruby-phyloxml}[https://rubygems.org/gems/bioruby-phyloxml]
213
+ * NOTE: Please uninstall bio-phyloxml, that have been created as a
214
+ preliminary trial of splitting a module in 2012 and have not been
215
+ maintained after that.
216
+ * {bio-biosql}[https://rubygems.org/gems/bio-biosql]
217
+
218
+ Plugins (Biogems) listed below may be useful for running existing codes.
219
+
220
+ * {bio-old-biofetch-emulator}[https://rubygems.org/gems/bio-old-biofetch-emulator] -- Emulates deprecated BioRuby's BioFetch server by using other existing web services.
221
+
290
222
  To develop your own plugin, see "Plugins" pages of BioRuby Wiki.
291
223
 
292
224
  * http://bioruby.open-bio.org/wiki/Plugins
293
225
 
226
+ === Recommended Plugins (gems)
227
+
228
+ For existing BioRuby users, it is recommended to install the following gems:
229
+
230
+ bio-shell :: If you use the BioRuby Shell.
231
+ bio-executables :: If you use br_bio* commands.
232
+ bio-old-biofetch-emulator :: If you run existing codes using BioFetch, including sample and demo codes in sample/.
233
+ bio-blast-xmlparser :: If you treat BLAST XML result files and Expat XML parser (with development files) is installed in your system.
234
+ bioruby-phyloxml :: If you use Bio::PhyloXML and Libxml2 (with developemnt files) is installed in your system.
235
+
236
+ Note that it is NOT recommended to install bio-biosql unless you have
237
+ really used Bio::SQL, because it depends on older version of ActiveRecords
238
+ and ActiveSupport that may not be run on recent Ruby versions.
239
+
240
+
294
241
  == LICENSE
295
242
 
296
243
  BioRuby can be freely distributed under the same terms as Ruby.
297
244
  See the file COPYING (or COPYING.ja written in Japanese).
298
245
 
299
246
  As written in the file COPYING, see the file LEGAL for files distributed
300
- under different license. For example, setup.rb which comes from "setup"
301
- developed by Minero Aoki (http://i.loveruby.net/en/projects/setup/) is
302
- licensed under LGPL 2.1.
303
-
247
+ under different license.
304
248
 
305
249
  == REFERENCE
306
250
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Copyright:: Copyright (C) 2005, 2006 Toshiaki Katayama <k@bioruby.org>
4
4
  Copyright:: Copyright (C) 2006, 2008 Jan Aerts <jandot@bioruby.org>
5
- Copyright:: Copyright (C) 2011 Naohisa Goto <ng@bioruby.org>
5
+ Copyright:: Copyright (C) 2011, 2019 Naohisa Goto <ng@bioruby.org>
6
6
 
7
7
  = HOW TO CONTRIBUTE TO THE BIORUBY PROJECT?
8
8
 
@@ -360,16 +360,16 @@ We are mainly using Ruby MRI (Matz' Ruby Implementation, or Matz' Ruby
360
360
  Interpreter). Please confirm that your code is running on current stable
361
361
  release versions of Ruby MRI.
362
362
 
363
- We are very happy if your code can run on both Ruby 1.8.x and 1.9.x.
364
- Note that Ruby 1.9.0 should be ignored because it was discontinued.
365
- Ruby 1.8.5 or earlier versions can also be ignored. See README.rdoc and
366
- RELEASE_NOTES.rdoc for recommended Ruby versions.
363
+ See README.rdoc and RELEASE_NOTES.rdoc for recommended Ruby versions.
367
364
 
368
365
  It is welcome to support JRuby, Rubinius, etc, in addition to Ruby MRI.
369
366
 
370
367
  Of course, it is strongly encouraged to write code that is not affected by
371
368
  differences between Ruby versions and/or implementations, as far as possible.
372
369
 
370
+ Although we no longer support Ruby 1.8, it might be useful if your code
371
+ could also run on Ruby 1.8.7 in addition to supported Ruby versions.
372
+
373
373
  = OS and ARCHITECTURE
374
374
 
375
375
  We hope BioRuby can be run on both UNIX (and UNIX-like OS) and Microsoft
@@ -1,311 +1,195 @@
1
- = BioRuby 1.5.1 RELEASE NOTES
2
-
3
- Few changes have been made to the BioRuby 1.5.1 after the version 1.5.0 is
4
- released.
5
-
6
- == NEWS
7
-
8
- === HTTPS is used to access NCBI web services
9
-
10
- As you may know, NCBI announced that all HTTP resources will be switched
11
- to HTTPS on September 30, 2016. To follow the transition, all URLs for
12
- accessing NCBI E-utilities in BioRuby are changed to use HTTPS.
13
-
14
- In BioRuby, the following classes/modules are affected.
15
-
16
- * Bio::NCBI::REST and descending classes
17
- * Bio::PubMed
18
-
19
- In some rare cases (especially when building Ruby and/or OpenSSL by yourself
20
- from source code), Ruby does not include SSL/TLS support, or Ruby fails to
21
- detect SSL root certificates. In such cases, you may need to reinstall or
22
- upgrade Ruby, OpenSSL (or alternatives), and/or SSL root certificates with
23
- appropriate configuration options. Alternatively, installing binary packages
24
- is generally a good idea.
25
-
26
-
27
- = BioRuby 1.5.0 RELEASE NOTES
28
-
29
- A lot of changes have been made to the BioRuby 1.5.0 after the version 1.4.3
30
- is released. This document describes important and/or incompatible changes
31
- since the BioRuby 1.4.3 release.
32
-
33
- For known problems, see KNOWN_ISSUES.rdoc.
34
-
35
- == NEWS
36
-
37
- === Full support of Ruby 2.0.0, 2.1, and 2.2
38
-
39
- Ruby 2.0.0, 2.1, and 2.2 are now recommended Ruby versions for running
40
- BioRuby codes.
41
-
42
- === Support of Ruby 1.8 will be stopped
43
-
44
- This release is the final BioRuby version that can be run on Ruby 1.8.
45
-
46
- === License is updated to the new Ruby's License
47
-
48
- BioRuby is distributed under the same license as Ruby's. In October 2011,
49
- Ruby's License was changed from a dual license with GPLv2 to a dual license
50
- with 2-clause BSDL. Since BioRuby 1.5.0, we have updated to the
51
- new version of Ruby's License. For details about the license, see COPYING
52
- or COPYING.ja and BSDL. In addition, please do not forget to see LEGAL for
53
- exception files that are subjected to different licenses.
54
-
55
- === Semantic Versioning will be introduced
56
-
57
- We will adopt the Semantic Versioning since the next release version, which
58
- will be BioRuby 1.5.1. This means that BioRuby 1.5.0 is NOT subject to the
59
- Semantic Versioning.
60
-
61
-
62
- == New features and improvements
63
-
64
- === New method Bio::FastaFormat#first_name
65
-
66
- Bio::FastaFormat#first_name method is added to get the first word in the
67
- definition line. This method was proposed by Ben J. Woodcroft.
68
-
69
- === Accuracy of Bio::SiRNA
70
-
71
- Accuracy of siRNA designing algorithms in Bio::SiRNA is improved,
72
- contributed by meso_cacase.
73
-
74
- === Speed up of Bio::ClustalW::Report
75
-
76
- Running speed of Bio::ClustalW::Report is optimized, contributed by
77
- Andrew Grimm.
78
-
79
- === Many warning messages are squashed
80
-
81
- Most warning messages when running ruby with "-w" option, e.g. "assigned
82
- but unused variable", "instance variable @xxx not initialized", are
83
- suppressed. Fixes are contributed by Kenichi Kamiya, Andrew Grimm, and
84
- BioRuby core members.
85
-
86
- === Refactoring of codes
87
-
88
- Many existing codes are reviewed and refactored. Patches are contributed
89
- by Iain Barnett, Kenichi Kamiya, and BioRuby core members.
1
+ = BioRuby 2.0.2 RELEASE NOTES
90
2
 
3
+ Some bugs fixes have been made in BioRuby 2.0.2 after the release of 2.0.1.
91
4
 
92
5
  == Bug fixes
93
6
 
94
- === Bugs due to remote server changes
7
+ * Fix NameError in Bio::Sequence#output(:embl)
8
+ (https://github.com/bioruby/bioruby/issues/135 )
9
+ * Suppress warning: Gem::Specification#has_rdoc= is deprecated
10
+ (https://github.com/bioruby/bioruby/issues/138 )
11
+ * Fix misspelling URL in README.rdoc
95
12
 
96
- ==== Bio::PubMed
13
+ == Known issues
97
14
 
98
- Bio::PubMed#search, query, and pmfetch are re-implemented by using NCBI
99
- E-Utilities. They were broken because unofficial API was used.
100
- Paul Leader reported the bug and gave discussion.
15
+ A known issue about Ruby 3.0 is added to KNOWN_ISSUES.rdoc.
16
+ The issue will be fixed in the near future.
101
17
 
102
- ==== Bio::Hinv
103
18
 
104
- Bio::Hinv did not work because of the API server URL is changed.
105
19
 
106
- ==== Bio::TogoWS::REST
20
+ = BioRuby 2.0.1 RELEASE NOTES
107
21
 
108
- * Bio::TogoWS::REST#search with offset and limit did not work due to
109
- TogoWS server spec change about URI escape.
110
- * Bio::TogoWS::REST#convert did not work because of the spec change of
111
- TogoWS REST API.
22
+ Some bug fixes and improvements have been made to the BioRuby 2.0.1 after
23
+ the version 2.0.0 is released.
112
24
 
113
- === Bio::Fetch
25
+ == Bug fixes
114
26
 
115
- Bio::Fetch with default parameters did not work because BioRuby's default
116
- BioFetch server had been down. We have decided not to restore the service.
117
- For smooth migration of codes using BioRuby's BioFetch server, we provide
118
- "bio-old-biofetch-emulator" gem. See below "Imcompatible changes" for details.
27
+ * Bio::GFF::GFF2::Record.parse did not return correct object.
119
28
 
120
- The bug was reported and discussed by Jose Irizarry, Robert A. Heiler, and
121
- others.
29
+ == Improvement of sample scripts
122
30
 
123
- === BioSQL
31
+ The following scripts in the sample/ directiry are newly added.
124
32
 
125
- * Only do gsub on bio_ref.reference.authors if it exists.
126
- * Missing require when generating genbank output for BioSQL sequence.
33
+ * color_scheme_aa.rb: Example of Bio::ColorScheme for an amino acid sequence.
34
+ * fastq2html.rb: Visualization of FASTQ sequences, colored by quality scores.
35
+ * rev_comp.rb: Shows reverse-complement sequences of the given sequences.
127
36
 
128
- Contributed by Brynjar Smari Bjarnason.
37
+ The floowing scripts are modified to fix bug and/or to improve features.
129
38
 
130
- === Bugs found in data format parsers
39
+ * na2aa.rb: Completely rewritten to fix bug. Shows translated sequences.
40
+ * color_scheme_na.rb: Added support for various sequence formats.
131
41
 
132
- * Bio::PDB#seqres SEQRES serNum digits were extended in PDB v3.2 (2008).
133
- Thanks to a researcher who sent the patch.
134
- * Bio::Blast::Default::Report parse error when subject sequence contains
135
- spaces. Edward Rice reported the bug.
136
- * Bio::UniProtKB#gene_name raised NoMethodError when gene_names method
137
- returns nil. It should return nil. Candidate fix sent by Jose Irizarry.
138
- * Bio::PhyloXML::Parser.open_uri did not return block return value when
139
- giving a block.
42
+ === CWL (Common Workflow Language) workflow files are added
140
43
 
141
- === Other bugs
44
+ CWL (Common Workflow Language) workflow files are added for some sample
45
+ scripts. The usage of each sample script will be clarified with the CWL
46
+ workflow files.
142
47
 
143
- * lib/bio/shell/plugin/seq.rb: String#step and #skip (extended by bioruby
144
- shell) did not yield the last part of the string due to a change from
145
- Ruby 1.8 to 1.9.
146
- * Documentation and typo fixes. Contributed by many persons, including
147
- Iain Barnett and ctSkennerton.
48
+ Two type of files are prepared for CWL workflow engine. *.cwl is a workflow
49
+ definition file for each sample script. *.testdata.yaml describes sample
50
+ input data for each CWL workflow.
148
51
 
52
+ In this version, cwl files for the 3 sample scripts are added.
149
53
 
150
- == Renamed features
54
+ * fastq2html.rb: fastq2html.cwl with fastq2html.testdata.yaml
55
+ * na2aa.rb: na2aa.cwl with na2aa.testdata.yaml
56
+ * rev_comp.rb: rev_comp.cwl with rev_comp.testdata.yaml
151
57
 
152
- === Bio::SPTR, Bio::UniProt, Bio::SwissProt, and Bio::TrEMBL => Bio::UniProtKB
153
58
 
154
- The classes for parsing UniProtKB (former SwissProt and TrEMBL) data,
155
- Bio::SPTR, Bio::UniProt, Bio::SwissProt, and Bio::TrEMBL, are unified into
156
- the new class name Bio::UniProtKB, and old names are deprecated.
157
59
 
158
- For keeping backward compatibility, old class names Bio::SPTR, Bio::UniProt,
159
- Bio::SwissProt, and Bio::TrEMBL are still available, but warning message
160
- will be shown when using the old class names. These old class names will be
161
- deleted in the future.
60
+ = BioRuby 2.0.0 RELEASE NOTES
162
61
 
163
- The file contatining Bio::UniProtKB class definition is also changed to
164
- lib/bio/db/embl/uniprotkb.rb. For keeping backward compatibility, old
165
- files sptr.rb, uniprot.rb, tremble.rb are still kept, but they will be
166
- removed in the future.
62
+ A lot of changes have been made to the BioRuby 2.0.0 after the version 1.5.x
63
+ is released. This document describes important and/or incompatible changes
64
+ since the BioRuby 1.5.0 release.
167
65
 
66
+ For known problems, see KNOWN_ISSUES.rdoc.
168
67
 
169
- == Deprecated features
68
+ == Features moved to separete gems
170
69
 
171
- === Bio::RefSeq, Bio::DDBJ
70
+ Some features are moved to separate gems because of reducing complexity
71
+ and/or to avoid external library dependency of BioRuby core.
172
72
 
173
- Bio::RefSeq and Bio::DDBJ are deprecated because they are only an alias of
174
- Bio::GenBank. Warning message will be shown when loading the classes and
175
- initializing new instances. Please use Bio::GenBank instead.
73
+ === BioRuby Shell is moved to "bio-shell"
176
74
 
177
- lib/bio/db/genbank/ddbj.rb and lib/bio/db/genbank/refseq.rb which contain
178
- Bio::DDBJ and Bio::RefSeq, respectively, are also deprecated. For keeping
179
- backward compatibility, old file are still kept, but they will be removed
180
- in the future.
75
+ BioRuby Shell is split to "bio-shell" gem.
181
76
 
77
+ === Executable files are moved to "bio-executables"
182
78
 
183
- == Removed features
79
+ To avoid unexpected loading of executable files by some Rails software,
80
+ all executable commands are moved to "bio-executables" gem
81
+ (except the "bioruby" command that is included in the above "bio-shell" gem).
184
82
 
185
- === Bio::SOAPWSDL
83
+ === Fast BLAST XML result parser by using Expat XML Parser is moved to "bio-blast-xmlparser"
186
84
 
187
- Bio::SOAPWSDL (lib/bio/io/soapwsdl.rb) is removed because SOAP4R
188
- (SOAP/WSDL library in Ruby) is no longer bundled with Ruby since Ruby 1.9.
189
- For Ruby 1.9 or later, some gems of SOAP4R are available, but we think they
190
- are not well-maintained. Moreover, many SOAP servers have been retired
191
- (see below). So, we give up maintaining Bio::SOAPWSDL and all SOAP client
192
- classes in BioRuby.
85
+ Fast BLAST XML result parser by using Expat XML Parser is split to
86
+ "bio-blast-xmlparser" gem, because of external C library dependency.
87
+ Please install "bio-blast-xmlparser" gem if possible.
88
+ If it is installed, BioRuby automatically use it.
193
89
 
194
- === Bio::EBI::SOAP
90
+ === Bio::PhyloXML is moved to "bioruby-phyloxml"
195
91
 
196
- Bio::EBI::SOAP (lib/bio/io/ebisoap.rb) is removed because Bio::SOAPWSDL
197
- is removed.
92
+ Bio::PhyloXML is split to "bioruby-phyloxml" gem.
198
93
 
199
- === Bio::KEGG::API
94
+ NOTE: Please uninstall "bio-phyloxml" gem, that have been created as a
95
+ preliminary trial of splitting a module in 2012 and have not been
96
+ maintained after that.
200
97
 
201
- Bio::KEGG::API is removed because KEGG API SOAP service was discontinued in
202
- December 31, 2012. See http://www.kegg.jp/kegg/rest/ for the announcement
203
- of service discontinuation.
98
+ === Bio::SQL is moved to "bio-biosql"
204
99
 
205
- === Bio::DBGET
100
+ Bio::SQL is split to "bio-biosql" gem.
206
101
 
207
- Bio::DBGET is removed because it only supports old original DBGET protocols
208
- that was discontinued in 2004. Note that the DBGET is still available via
209
- the web. See http://www.genome.jp/en/gn_dbget.html for details.
210
102
 
211
- === Bio::Ensembl
103
+ == New features and improvements
212
104
 
213
- Bio::Ensembl is removed because it does not work after the renewal of Ensembl
214
- web site in 2008. Instead, bio-ensembl gem which supports recent ensembl API
215
- is available.
105
+ === HTTPS is used to access NCBI web services
216
106
 
217
- === Bio::DDBJ::XML, Bio::DDBJ::REST
107
+ As you may know, NCBI announced that all HTTP resources will be switched
108
+ to HTTPS on September 30, 2016. To follow the transition, all URLs for
109
+ accessing NCBI E-utilities in BioRuby are changed to use HTTPS.
218
110
 
219
- Bio::DDBJ::XML and Bio::DDBJ::REST are removed because DDBJ Web API (WABI)
220
- web services were suspended in 2012 and then they were completely renewed
221
- with incompatible APIs in 2013.
111
+ In BioRuby, the following classes/modules are affected.
222
112
 
223
- === Bio::HGC::HiGet
113
+ * Bio::NCBI::REST and descending classes
114
+ * Bio::PubMed
224
115
 
225
- Bio::HGC::HiGet (lib/bio/io/higet.rb) is removed because the HiGet web server
226
- http://higet.hgc.jp/ have been down since 2011, and we think that the server
227
- will not be restored again.
116
+ In some rare cases (especially when building Ruby and/or OpenSSL by yourself
117
+ from source code), Ruby does not include SSL/TLS support, or Ruby fails to
118
+ detect SSL root certificates. In such cases, you may need to reinstall or
119
+ upgrade Ruby, OpenSSL (or alternatives), and/or SSL root certificates with
120
+ appropriate configuration options. Alternatively, installing binary packages
121
+ is generally a good idea.
228
122
 
229
- === Bio::NCBI::SOAP
123
+ === KEGG::GENES#diseases and related methods are added
230
124
 
231
- Bio::NCBI::SOAP is removed because it always raises error during the parsing
232
- of WSDL files provided by NCBI. In addition, NCBI announced that the SOAP
233
- web service for the E-utilities will be terminated on July 1, 2015. Instead,
234
- Bio::NCBI::REST, REST client for the NCBI E-utility web service, is available.
125
+ The following methods are added to KEGG::GENES, contributed by @kojix2.
235
126
 
236
- === Bio::KEGG::Taxonomy
127
+ * networks_as_strings
128
+ * diseases_as_strings
129
+ * diseases_as_hash
130
+ * diseases
131
+ * drug_targets_as_strings
237
132
 
238
- Bio::KEGG::Taxonomy is removed because it does not work correctly. It raises
239
- error, it falls into infinite loop, or it returns apparently broken data.
240
- Moreover, KEGG closed public FTP site and the file "taxonomy" could only be
241
- obtained by paid subscribers.
133
+ === Pre-calculated ambiguity codon tables in Bio::CodonTable
242
134
 
243
- === Bio.method_missing
135
+ Pre-calculated ambiguity codon tables are added, contributed by
136
+ Tomoaki NISHIYAMA.
244
137
 
245
- Bio.method_missing, that aims to provide shortcuts of Bio::Shell methods
246
- with shorter name without typing "Shell", is removed because most of the
247
- methods raises error mainly due to bypassing of initialization procedure.
248
- In addition, we now think that the use of method_missing should generally
249
- be avoid unless it is really necessary.
250
138
 
251
- === extconf.rb
139
+ == Bug fixes
252
140
 
253
- extconf.rb, an alternative way to install BioRuby to the system, is removed
254
- because of avoiding potential confusions. Nowadays, extconf.rb is usually
255
- only used for building native extensions, but no native extensions are
256
- included in this release. Use gem or setup.rb to install BioRuby.
141
+ * Fixed a parser bug in Bio::Fasta::Report, FASTA output (-m 10) parser,
142
+ contributed by William Van Etten and Mark Wilkinson via GitHub.
143
+ * HTTPS is used to access GenomeNet BLAST web service, contributed
144
+ by @ramadis via GitHub.
145
+ * Bio::AAindex documentation fix, suggested by @kojix2 via GitHub.
146
+ * Suppress warning messages in Ruby 2.4 and later.
257
147
 
258
148
 
259
149
  == Incompatible changes
260
150
 
261
- Also see the above "Renamed features", "Deprecated features", and
262
- "Removed features" sections.
263
-
264
- === Bio::Fetch
151
+ === Bio::Taxonomy is removed and merged to Bio::PhyloXML::Taxonomy
265
152
 
266
- The BioRuby default BioFetch server http://bioruby.org/cgi-bin/biofetch.rb,
267
- that was the default server for Bio::Fetch before BioRuby 1.4, is deprecated.
268
- Due to the service stop, default server URL in Bio::Fetch is removed, and
269
- we decide not to give any server URL by default for Bio::Fetch.
153
+ Bio::Taxonomy in lib/bio/db/phyloxml/phyloxml_elements.rb was written for
154
+ PhyloXML in 2009. It was intended to become general taxonomy data class in
155
+ BioRuby in these days. However, no efforts have been made to improve the
156
+ Bio::Taxonomy class, and it still remains to be a PhyloXML specific class.
157
+ Because Bio::PhyloXML is split as a different Gem (Biogem) package, we now
158
+ decide to remove Bio::Taxonomy and merge it to Bio::PhyloXML::Taxonomy.
270
159
 
271
- As an alternative, new class Bio::Fetch::EBI which uses the EBI Dbfetch
272
- server is added. When changing codes form Bio::Fetch to Bio::Fetch::EBI,
273
- be careful of the differences of database names, default and available
274
- data formats between the former BioRuby BioFetch server and the EBI Dbfetch
275
- server.
160
+ In the codes using Bio::Taxonomy directly, changing Bio::Taxonomy to
161
+ Bio::PhyloXML::Taxonomy or adding the following monkey patch may be needed.
276
162
 
277
- Methods directly affected are:
163
+ module Bio
164
+ unless defined? Taxonomy
165
+ Taxonomy = Bio::PhyloXML::Taxonomy
166
+ end
167
+ end
278
168
 
279
- * Bio::Fetch.new (Bio::Fetch#initialize) does not have default server URL,
280
- and URL of a server must always be explicitly given as the first argument.
281
- * Bio::Fetch.query is removed.
169
+ In the future, Bio::Taxonomy might be added as general taxonomy data class.
170
+ The new Bio::Taxonomy might be incompatible with the current Bio::Taxonmy.
282
171
 
283
- For the purpose running old codes, it is recommended to install
284
- bio-old-biofetch-emulator gem. The bio-old-biofetch-emulator gem emulates
285
- old BioRuby's default BioFetch server by using other existing web services.
286
- See https://rubygems.org/gems/bio-old-biofetch-emulator for details.
287
- We think many codes can run with no changes by simply installing the gem and
288
- adding "-r bio-old-biofetch-emulator" into the command-line when executing
289
- ruby.
172
+ === Some features are moved to separete gems
290
173
 
174
+ Some features are split to separete gems and removed from this "bio" gem.
175
+ See the above "Features moved to separete gems" topics for details.
291
176
 
292
177
  == Known issues
293
178
 
294
179
  The following issues are added or updated. See KNOWN_ISSUES.rdoc for other
295
180
  already known issues.
296
181
 
297
- === Bio::PDB
298
182
 
299
- Bio::PDB should be updated to follow PDB format version 3.3.
183
+ == Other important news
300
184
 
301
- === Bio::Blast::Report
185
+ === Ruby 1.8 is no longer supported
302
186
 
303
- NCBI announces that that they are makeing a new version of BLAST XML data
304
- format. BioRuby should support it.
187
+ Ruby 1.8.x is no longer supported. Though unsupported, some components
188
+ may still run on Ruby 1.8.7. Please use Ruby 1.8.7 at your own risk
189
+ with this version of BioRuby.
305
190
 
306
- === Bio::Blast::Default::Report
191
+ === Installation without RubyGems is no longer supported
307
192
 
308
- Bio::Blast::Default::Report currently supports legacy BLAST only.
309
- It may be better to support BLAST+ text output format, although NCBI
310
- do not recommend to do so because the format is unstable.
193
+ Installation by using setup.rb without RubyGems is no longer supported,
194
+ and setup.rb is no longer included in BioRuby distribution.
311
195