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
data/Rakefile CHANGED
@@ -68,19 +68,23 @@ GEM_SPEC_FILE = "bioruby.gemspec"
68
68
  GEM_SPEC_TEMPLATE_FILE = "bioruby.gemspec.erb"
69
69
 
70
70
  # gets gem spec string
71
- gem_spec_string = File.open(GEM_SPEC_TEMPLATE_FILE, "rb") do |f|
72
- ERB.new(f.read).result
73
- end
71
+ current_gem_spec_string = File.read(GEM_SPEC_FILE) rescue nil
72
+
73
+ next_gem_spec_string = File.open(GEM_SPEC_TEMPLATE_FILE, "rb") do |f|
74
+ ERB.new(f.read).result
75
+ end
74
76
 
75
77
  # gets gem spec object
76
- spec = eval(gem_spec_string)
78
+ current_spec = eval(current_gem_spec_string || '')
79
+ next_spec = eval(next_gem_spec_string)
80
+ spec = (current_spec || next_spec)
77
81
 
78
82
  # adds notice of automatically generated file
79
- gem_spec_string = "# This file is automatically generated from #{GEM_SPEC_TEMPLATE_FILE} and\n# should NOT be edited by hand.\n# \n" + gem_spec_string
83
+ next_gem_spec_string = "# This file is automatically generated from #{GEM_SPEC_TEMPLATE_FILE} and\n# should NOT be edited by hand.\n# \n" + next_gem_spec_string
80
84
 
81
85
  # compares current gemspec file and newly generated gemspec string
82
- current_string = File.read(GEM_SPEC_FILE) rescue nil
83
- if current_string and current_string != gem_spec_string then
86
+ if current_gem_spec_string &&
87
+ current_gem_spec_string != next_gem_spec_string then
84
88
  #Rake::Task[GEM_SPEC_FILE].invoke
85
89
  flag_update_gemspec = true
86
90
  else
@@ -101,7 +105,7 @@ file GEM_SPEC_FILE => [ GEM_SPEC_TEMPLATE_FILE, 'Rakefile',
101
105
  'lib/bio/version.rb' ] do |t|
102
106
  puts "creates #{GEM_SPEC_FILE}"
103
107
  File.open(t.name, 'wb') do |w|
104
- w.print gem_spec_string
108
+ w.print next_gem_spec_string
105
109
  end
106
110
  end
107
111
 
@@ -188,7 +192,7 @@ task :rechangelog do
188
192
  # The tag name in the command line should be changed
189
193
  # after releasing new version, updating ChangeLog,
190
194
  # and doing "git mv ChangeLog doc/ChangeLog-X.X.X".
191
- sh "git log --stat --summary 1.4.3..HEAD > ChangeLog"
195
+ sh "git log --stat --summary 1.5.0..HEAD > ChangeLog"
192
196
  end
193
197
 
194
198
  # define mktmpdir
@@ -268,36 +272,6 @@ task :"see-env" do
268
272
  end
269
273
  end
270
274
 
271
- desc "DANGER: build tar and install (GNU tar needed)"
272
- task :"tar-install" => [ :package ] do
273
- pwd = Dir.pwd
274
- work_in_another_directory do |dirname|
275
- begin
276
- # remove tar file in direname
277
- FileUtils.remove_entry_secure(tar_filename, true)
278
- # chdir to old pwd
279
- chdir_with_message(pwd)
280
- # copy (or link) tar file
281
- safe_ln(tar_pkg_filepath, dirname)
282
- # chdir to dirname again
283
- chdir_with_message(dirname)
284
- # remove a directory the tar file will contain
285
- FileUtils.remove_entry_secure(tar_basename, true)
286
- # extract tar
287
- sh("tar zxvf #{tar_filename}")
288
- # chdir to the directory
289
- chdir_with_message(tar_basename)
290
- # run tests
291
- ruby("setup.rb")
292
- ensure
293
- # cleanup
294
- chdir_with_message(dirname)
295
- FileUtils.remove_entry_secure(tar_basename, true)
296
- FileUtils.remove_entry_secure(tar_filename, true)
297
- end
298
- end
299
- end
300
-
301
275
  desc "test installed bioruby on system"
302
276
  task :"installed-test" do
303
277
  data_path = File.join(Dir.pwd, "test/data")
@@ -314,10 +288,6 @@ task :"installed-test" do
314
288
  end
315
289
  end
316
290
 
317
- desc "DANGER: build tar, install and run test"
318
- task :"tar-integration-test" => [ :"tar-install",
319
- :"installed-test" ]
320
-
321
291
  desc "test installed bioruby gem version #{spec.version.to_s}"
322
292
  task :"gem-test" do
323
293
  data_path = File.join(Dir.pwd, "test/data")
@@ -0,0 +1,29 @@
1
+ ---
2
+ version: "{build}"
3
+ branches:
4
+ only:
5
+ - master
6
+ clone_depth: 10
7
+ install:
8
+ - SET PATH=C:\Ruby%ruby_version%\bin;%PATH%
9
+ - SET BUNDLE_GEMFILE=gemfiles/Gemfile.windows
10
+ - bundle install
11
+ - bundle exec rake regemspec
12
+ - bundle exec rake gem
13
+ - bundle exec gem install pkg/bio-*.gem
14
+ - echo gem "bio" >> gemfiles\Gemfile.windows
15
+ build: off
16
+ before_test:
17
+ - ruby --version
18
+ - gem --version
19
+ - bundle --version
20
+ test_script:
21
+ - bundle exec rake gem-test
22
+ environment:
23
+ matrix:
24
+ - ruby_version: "23"
25
+ - ruby_version: "23-x64"
26
+ - ruby_version: "24"
27
+ - ruby_version: "24-x64"
28
+ - ruby_version: "25"
29
+ - ruby_version: "25-x64"
@@ -3,7 +3,7 @@
3
3
  #
4
4
  Gem::Specification.new do |s|
5
5
  s.name = 'bio'
6
- s.version = "1.5.1"
6
+ s.version = "2.0.2"
7
7
 
8
8
  s.author = "BioRuby project"
9
9
  s.email = "staff@bioruby.org"
@@ -21,6 +21,7 @@ Gem::Specification.new do |s|
21
21
  "COPYING.ja",
22
22
  "ChangeLog",
23
23
  "GPL",
24
+ "Gemfile",
24
25
  "KNOWN_ISSUES.rdoc",
25
26
  "LEGAL",
26
27
  "LGPL",
@@ -28,14 +29,11 @@ Gem::Specification.new do |s|
28
29
  "README_DEV.rdoc",
29
30
  "RELEASE_NOTES.rdoc",
30
31
  "Rakefile",
31
- "bin/bioruby",
32
- "bin/br_biofetch.rb",
33
- "bin/br_bioflat.rb",
34
- "bin/br_biogetseq.rb",
35
- "bin/br_pmfetch.rb",
32
+ "appveyor.yml",
36
33
  "bioruby.gemspec",
37
34
  "bioruby.gemspec.erb",
38
35
  "doc/ChangeLog-1.4.3",
36
+ "doc/ChangeLog-1.5.0",
39
37
  "doc/ChangeLog-before-1.3.1",
40
38
  "doc/ChangeLog-before-1.4.2",
41
39
  "doc/Changes-0.7.rd",
@@ -44,6 +42,7 @@ Gem::Specification.new do |s|
44
42
  "doc/RELEASE_NOTES-1.4.1.rdoc",
45
43
  "doc/RELEASE_NOTES-1.4.2.rdoc",
46
44
  "doc/RELEASE_NOTES-1.4.3.rdoc",
45
+ "doc/RELEASE_NOTES-1.5.0.rdoc",
47
46
  "doc/Tutorial.rd",
48
47
  "doc/Tutorial.rd.html",
49
48
  "doc/Tutorial.rd.ja",
@@ -55,7 +54,7 @@ Gem::Specification.new do |s|
55
54
  "gemfiles/Gemfile.travis-rbx",
56
55
  "gemfiles/Gemfile.travis-ruby1.8",
57
56
  "gemfiles/Gemfile.travis-ruby1.9",
58
- "gemfiles/Gemfile.travis-ruby2.2",
57
+ "gemfiles/Gemfile.windows",
59
58
  "gemfiles/modify-Gemfile.rb",
60
59
  "gemfiles/prepare-gemspec.rb",
61
60
  "lib/bio.rb",
@@ -71,7 +70,6 @@ Gem::Specification.new do |s|
71
70
  "lib/bio/appl/blast/rexml.rb",
72
71
  "lib/bio/appl/blast/rpsblast.rb",
73
72
  "lib/bio/appl/blast/wublast.rb",
74
- "lib/bio/appl/blast/xmlparser.rb",
75
73
  "lib/bio/appl/blat/report.rb",
76
74
  "lib/bio/appl/clustalw.rb",
77
75
  "lib/bio/appl/clustalw/report.rb",
@@ -120,8 +118,6 @@ Gem::Specification.new do |s|
120
118
  "lib/bio/data/na.rb",
121
119
  "lib/bio/db.rb",
122
120
  "lib/bio/db/aaindex.rb",
123
- "lib/bio/db/biosql/biosql_to_biosequence.rb",
124
- "lib/bio/db/biosql/sequence.rb",
125
121
  "lib/bio/db/embl/common.rb",
126
122
  "lib/bio/db/embl/embl.rb",
127
123
  "lib/bio/db/embl/embl_to_biosequence.rb",
@@ -180,10 +176,6 @@ Gem::Specification.new do |s|
180
176
  "lib/bio/db/pdb/pdb.rb",
181
177
  "lib/bio/db/pdb/residue.rb",
182
178
  "lib/bio/db/pdb/utils.rb",
183
- "lib/bio/db/phyloxml/phyloxml.xsd",
184
- "lib/bio/db/phyloxml/phyloxml_elements.rb",
185
- "lib/bio/db/phyloxml/phyloxml_parser.rb",
186
- "lib/bio/db/phyloxml/phyloxml_writer.rb",
187
179
  "lib/bio/db/prosite.rb",
188
180
  "lib/bio/db/rebase.rb",
189
181
  "lib/bio/db/sanger_chromatogram/abif.rb",
@@ -193,9 +185,6 @@ Gem::Specification.new do |s|
193
185
  "lib/bio/db/soft.rb",
194
186
  "lib/bio/db/transfac.rb",
195
187
  "lib/bio/feature.rb",
196
- "lib/bio/io/biosql/ar-biosql.rb",
197
- "lib/bio/io/biosql/biosql.rb",
198
- "lib/bio/io/biosql/config/database.yml",
199
188
  "lib/bio/io/das.rb",
200
189
  "lib/bio/io/fastacmd.rb",
201
190
  "lib/bio/io/fetch.rb",
@@ -210,7 +199,6 @@ Gem::Specification.new do |s|
210
199
  "lib/bio/io/ncbirest.rb",
211
200
  "lib/bio/io/pubmed.rb",
212
201
  "lib/bio/io/registry.rb",
213
- "lib/bio/io/sql.rb",
214
202
  "lib/bio/io/togows.rb",
215
203
  "lib/bio/location.rb",
216
204
  "lib/bio/map.rb",
@@ -228,44 +216,6 @@ Gem::Specification.new do |s|
228
216
  "lib/bio/sequence/na.rb",
229
217
  "lib/bio/sequence/quality_score.rb",
230
218
  "lib/bio/sequence/sequence_masker.rb",
231
- "lib/bio/shell.rb",
232
- "lib/bio/shell/core.rb",
233
- "lib/bio/shell/demo.rb",
234
- "lib/bio/shell/interface.rb",
235
- "lib/bio/shell/irb.rb",
236
- "lib/bio/shell/object.rb",
237
- "lib/bio/shell/plugin/blast.rb",
238
- "lib/bio/shell/plugin/codon.rb",
239
- "lib/bio/shell/plugin/das.rb",
240
- "lib/bio/shell/plugin/emboss.rb",
241
- "lib/bio/shell/plugin/entry.rb",
242
- "lib/bio/shell/plugin/flatfile.rb",
243
- "lib/bio/shell/plugin/midi.rb",
244
- "lib/bio/shell/plugin/ncbirest.rb",
245
- "lib/bio/shell/plugin/obda.rb",
246
- "lib/bio/shell/plugin/psort.rb",
247
- "lib/bio/shell/plugin/seq.rb",
248
- "lib/bio/shell/plugin/togows.rb",
249
- "lib/bio/shell/rails/vendor/plugins/bioruby/generators/bioruby/bioruby_generator.rb",
250
- "lib/bio/shell/rails/vendor/plugins/bioruby/generators/bioruby/templates/_classes.rhtml",
251
- "lib/bio/shell/rails/vendor/plugins/bioruby/generators/bioruby/templates/_log.rhtml",
252
- "lib/bio/shell/rails/vendor/plugins/bioruby/generators/bioruby/templates/_methods.rhtml",
253
- "lib/bio/shell/rails/vendor/plugins/bioruby/generators/bioruby/templates/_modules.rhtml",
254
- "lib/bio/shell/rails/vendor/plugins/bioruby/generators/bioruby/templates/_variables.rhtml",
255
- "lib/bio/shell/rails/vendor/plugins/bioruby/generators/bioruby/templates/bioruby-bg.gif",
256
- "lib/bio/shell/rails/vendor/plugins/bioruby/generators/bioruby/templates/bioruby-gem.png",
257
- "lib/bio/shell/rails/vendor/plugins/bioruby/generators/bioruby/templates/bioruby-link.gif",
258
- "lib/bio/shell/rails/vendor/plugins/bioruby/generators/bioruby/templates/bioruby.css",
259
- "lib/bio/shell/rails/vendor/plugins/bioruby/generators/bioruby/templates/bioruby.rhtml",
260
- "lib/bio/shell/rails/vendor/plugins/bioruby/generators/bioruby/templates/bioruby_controller.rb",
261
- "lib/bio/shell/rails/vendor/plugins/bioruby/generators/bioruby/templates/bioruby_helper.rb",
262
- "lib/bio/shell/rails/vendor/plugins/bioruby/generators/bioruby/templates/commands.rhtml",
263
- "lib/bio/shell/rails/vendor/plugins/bioruby/generators/bioruby/templates/history.rhtml",
264
- "lib/bio/shell/rails/vendor/plugins/bioruby/generators/bioruby/templates/index.rhtml",
265
- "lib/bio/shell/rails/vendor/plugins/bioruby/generators/bioruby/templates/spinner.gif",
266
- "lib/bio/shell/script.rb",
267
- "lib/bio/shell/setup.rb",
268
- "lib/bio/shell/web.rb",
269
219
  "lib/bio/tree.rb",
270
220
  "lib/bio/tree/output.rb",
271
221
  "lib/bio/util/color_scheme.rb",
@@ -308,6 +258,7 @@ Gem::Specification.new do |s|
308
258
  "sample/any2fasta.rb",
309
259
  "sample/benchmark_clustalw_report.rb",
310
260
  "sample/biofetch.rb",
261
+ "sample/color_scheme_aa.rb",
311
262
  "sample/color_scheme_na.rb",
312
263
  "sample/demo_aaindex.rb",
313
264
  "sample/demo_aminoacid.rb",
@@ -346,6 +297,9 @@ Gem::Specification.new do |s|
346
297
  "sample/fasta2tab.rb",
347
298
  "sample/fastagrep.rb",
348
299
  "sample/fastasort.rb",
300
+ "sample/fastq2html.cwl",
301
+ "sample/fastq2html.rb",
302
+ "sample/fastq2html.testdata.yaml",
349
303
  "sample/fsplit.rb",
350
304
  "sample/gb2fasta.rb",
351
305
  "sample/gb2tab.rb",
@@ -357,17 +311,20 @@ Gem::Specification.new do |s|
357
311
  "sample/genome2tab.rb",
358
312
  "sample/goslim.rb",
359
313
  "sample/gt2fasta.rb",
314
+ "sample/na2aa.cwl",
360
315
  "sample/na2aa.rb",
316
+ "sample/na2aa.testdata.yaml",
361
317
  "sample/pmfetch.rb",
362
318
  "sample/pmsearch.rb",
319
+ "sample/rev_comp.cwl",
320
+ "sample/rev_comp.rb",
321
+ "sample/rev_comp.testdata.yaml",
363
322
  "sample/seqdatabase.ini",
364
323
  "sample/ssearch2tab.rb",
365
324
  "sample/tdiary.rb",
366
- "sample/test_phyloxml_big.rb",
367
325
  "sample/test_restriction_enzyme_long.rb",
368
326
  "sample/tfastx2tab.rb",
369
327
  "sample/vs-genes.rb",
370
- "setup.rb",
371
328
  "test/bioruby_test_helper.rb",
372
329
  "test/data/HMMER/hmmpfam.out",
373
330
  "test/data/HMMER/hmmsearch.out",
@@ -485,11 +442,6 @@ Gem::Specification.new do |s|
485
442
  "test/data/paml/codeml/models/results7-8.txt",
486
443
  "test/data/paml/codeml/output.txt",
487
444
  "test/data/paml/codeml/rates",
488
- "test/data/phyloxml/apaf.xml",
489
- "test/data/phyloxml/bcl_2.xml",
490
- "test/data/phyloxml/made_up.xml",
491
- "test/data/phyloxml/ncbi_taxonomy_mollusca_short.xml",
492
- "test/data/phyloxml/phyloxml_examples.xml",
493
445
  "test/data/pir/CRAB_ANAPL.pir",
494
446
  "test/data/prosite/prosite.dat",
495
447
  "test/data/refseq/nm_126355.entret",
@@ -508,6 +460,7 @@ Gem::Specification.new do |s|
508
460
  "test/network/bio/appl/blast/test_remote.rb",
509
461
  "test/network/bio/appl/test_blast.rb",
510
462
  "test/network/bio/appl/test_pts1.rb",
463
+ "test/network/bio/db/kegg/test_genes_hsa7422.rb",
511
464
  "test/network/bio/io/test_pubmed.rb",
512
465
  "test/network/bio/io/test_togows.rb",
513
466
  "test/network/bio/test_command.rb",
@@ -539,8 +492,6 @@ Gem::Specification.new do |s|
539
492
  "test/unit/bio/data/test_aa.rb",
540
493
  "test/unit/bio/data/test_codontable.rb",
541
494
  "test/unit/bio/data/test_na.rb",
542
- "test/unit/bio/db/biosql/tc_biosql.rb",
543
- "test/unit/bio/db/biosql/ts_suite_biosql.rb",
544
495
  "test/unit/bio/db/embl/test_common.rb",
545
496
  "test/unit/bio/db/embl/test_embl.rb",
546
497
  "test/unit/bio/db/embl/test_embl_rel89.rb",
@@ -579,8 +530,6 @@ Gem::Specification.new do |s|
579
530
  "test/unit/bio/db/test_nbrf.rb",
580
531
  "test/unit/bio/db/test_newick.rb",
581
532
  "test/unit/bio/db/test_nexus.rb",
582
- "test/unit/bio/db/test_phyloxml.rb",
583
- "test/unit/bio/db/test_phyloxml_writer.rb",
584
533
  "test/unit/bio/db/test_prosite.rb",
585
534
  "test/unit/bio/db/test_qual.rb",
586
535
  "test/unit/bio/db/test_rebase.rb",
@@ -598,7 +547,6 @@ Gem::Specification.new do |s|
598
547
  "test/unit/bio/sequence/test_na.rb",
599
548
  "test/unit/bio/sequence/test_quality_score.rb",
600
549
  "test/unit/bio/sequence/test_sequence_masker.rb",
601
- "test/unit/bio/shell/plugin/test_seq.rb",
602
550
  "test/unit/bio/test_alignment.rb",
603
551
  "test/unit/bio/test_command.rb",
604
552
  "test/unit/bio/test_db.rb",
@@ -608,7 +556,6 @@ Gem::Specification.new do |s|
608
556
  "test/unit/bio/test_pathway.rb",
609
557
  "test/unit/bio/test_reference.rb",
610
558
  "test/unit/bio/test_sequence.rb",
611
- "test/unit/bio/test_shell.rb",
612
559
  "test/unit/bio/test_tree.rb",
613
560
  "test/unit/bio/util/restriction_enzyme/analysis/test_calculated_cuts.rb",
614
561
  "test/unit/bio/util/restriction_enzyme/analysis/test_cut_ranges.rb",
@@ -633,7 +580,6 @@ Gem::Specification.new do |s|
633
580
  "test/unit/bio/util/test_sirna.rb"
634
581
  ]
635
582
 
636
- s.has_rdoc = true
637
583
  s.extra_rdoc_files = [
638
584
  "KNOWN_ISSUES.rdoc",
639
585
  "README.rdoc",
@@ -643,7 +589,8 @@ Gem::Specification.new do |s|
643
589
  "doc/RELEASE_NOTES-1.4.0.rdoc",
644
590
  "doc/RELEASE_NOTES-1.4.1.rdoc",
645
591
  "doc/RELEASE_NOTES-1.4.2.rdoc",
646
- "doc/RELEASE_NOTES-1.4.3.rdoc"
592
+ "doc/RELEASE_NOTES-1.4.3.rdoc",
593
+ "doc/RELEASE_NOTES-1.5.0.rdoc"
647
594
  ]
648
595
  s.rdoc_options << '--main' << 'README.rdoc'
649
596
  s.rdoc_options << '--title' << 'BioRuby API documentation'
@@ -651,14 +598,4 @@ Gem::Specification.new do |s|
651
598
  s.rdoc_options << '--line-numbers' << '--inline-source'
652
599
 
653
600
  s.require_path = 'lib'
654
-
655
- s.bindir = "bin"
656
- s.executables = [
657
- "bioruby",
658
- "br_biofetch.rb",
659
- "br_bioflat.rb",
660
- "br_biogetseq.rb",
661
- "br_pmfetch.rb"
662
- ]
663
- s.default_executable = "bioruby"
664
601
  end
@@ -7,18 +7,18 @@ Gem::Specification.new do |s|
7
7
 
8
8
  # By default, determined from lib/bio/version.rb
9
9
  load "./lib/bio/version.rb" unless defined?(BIO_VERSION_RB_LOADED)
10
+ ver = Bio::BIORUBY_VERSION.dup
10
11
  case Bio::BIORUBY_EXTRA_VERSION
11
12
  when nil
12
- suffix = nil
13
- when /\A\.(\d+)\z/
14
- suffix = $1
15
- when /\A\-dev\z/
16
- suffix = Time.now.strftime("%Y%m%d")
13
+ # does nothing
14
+ when /\A\.(pre)\z/
15
+ ver.push $1
16
+ ver.push Time.now.strftime("%Y%m%d")
17
+ when /\A\.(.+)\z/
18
+ ver.push $1
17
19
  else
18
20
  raise "unsupported BIORUBY_EXTRA_VERSION"
19
21
  end
20
- ver = Bio::BIORUBY_VERSION.dup
21
- ver.push suffix if suffix
22
22
  %><%=
23
23
  (env_ver || ver.join('.'))
24
24
  ###### Above is executed in ERB environment ######
@@ -48,7 +48,7 @@ Gem::Specification.new do |s|
48
48
  "bioruby.gemspec", "setup.rb",
49
49
  "extconf.rb", "LEGAL",
50
50
  "COPYING", "COPYING.ja", "GPL", "LGPL"
51
- ] + Dir.glob("{bin,doc,etc,gemfiles,lib,sample,test}/**/*").delete_if do |item|
51
+ ] + Dir.glob("{doc,etc,gemfiles,lib,sample,test}/**/*").delete_if do |item|
52
52
  case item
53
53
  when /(\A|\/)CVS(\z|\/)/, /(\A|\/)rdoc(\z|\/)/, /\~\z/
54
54
  true
@@ -63,7 +63,6 @@ Gem::Specification.new do |s|
63
63
  %>
64
64
  ]
65
65
 
66
- s.has_rdoc = true
67
66
  s.extra_rdoc_files = [
68
67
  <%= ###### Below is executed in ERB environment ######
69
68
  # Files whose suffix are .rdoc are selected.
@@ -90,23 +89,4 @@ Gem::Specification.new do |s|
90
89
  s.rdoc_options << '--line-numbers' << '--inline-source'
91
90
 
92
91
  s.require_path = 'lib'
93
-
94
- s.bindir = "bin"
95
- s.executables = [
96
- <%= ###### Below is executed in ERB environment ######
97
- # Files in bin/ directory are selected.
98
- exec_files = files.find_all { |item| /\Abin\// =~ item }
99
- # Non-executable files are removed from the list.
100
- exec_files.delete_if { |item| !File.executable?(item) }
101
- # strip "bin/"
102
- exec_files.collect! { |item| item.sub(/\Abin\//, '') }
103
- # Fail safe settings
104
- if exec_files.empty? then
105
- exec_files = [ "bioruby", "br_biofetch.rb", "br_biogetseq.rb", "br_bioflat.rb", "br_pmfetch.rb" ]
106
- end
107
- exec_files.sort.collect { |x| x.dump }.join(",\n ")
108
- ###### Above is executed in ERB environment ######
109
- %>
110
- ]
111
- s.default_executable = "bioruby"
112
92
  end