bio 1.4.2 → 1.4.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (139) hide show
  1. data/.travis.yml +66 -0
  2. data/ChangeLog +989 -4524
  3. data/KNOWN_ISSUES.rdoc +67 -2
  4. data/README.rdoc +89 -23
  5. data/README_DEV.rdoc +93 -2
  6. data/RELEASE_NOTES.rdoc +167 -95
  7. data/Rakefile +199 -7
  8. data/bioruby.gemspec +27 -12
  9. data/bioruby.gemspec.erb +6 -3
  10. data/doc/ChangeLog-before-1.4.2 +5013 -0
  11. data/doc/RELEASE_NOTES-1.4.2.rdoc +132 -0
  12. data/doc/Tutorial.rd +21 -3
  13. data/doc/Tutorial.rd.html +20 -12
  14. data/etc/bioinformatics/seqdatabase.ini +13 -196
  15. data/gemfiles/Gemfile.travis-jruby1.8 +7 -0
  16. data/gemfiles/Gemfile.travis-jruby1.9 +10 -0
  17. data/gemfiles/Gemfile.travis-ruby1.8 +7 -0
  18. data/gemfiles/Gemfile.travis-ruby1.9 +10 -0
  19. data/gemfiles/modify-Gemfile.rb +28 -0
  20. data/gemfiles/prepare-gemspec.rb +25 -0
  21. data/lib/bio/alignment.rb +1 -1
  22. data/lib/bio/appl/bl2seq/report.rb +3 -3
  23. data/lib/bio/appl/blast/ddbj.rb +0 -3
  24. data/lib/bio/appl/blast/format0.rb +4 -22
  25. data/lib/bio/appl/blast/genomenet.rb +33 -16
  26. data/lib/bio/appl/blast/ncbioptions.rb +8 -3
  27. data/lib/bio/appl/blast/remote.rb +6 -5
  28. data/lib/bio/appl/blast/report.rb +10 -6
  29. data/lib/bio/appl/blast/rpsblast.rb +3 -2
  30. data/lib/bio/appl/blast/wublast.rb +3 -3
  31. data/lib/bio/command.rb +118 -36
  32. data/lib/bio/data/na.rb +1 -1
  33. data/lib/bio/db/embl/embl.rb +74 -0
  34. data/lib/bio/db/embl/format_embl.rb +0 -4
  35. data/lib/bio/db/fasta.rb +57 -45
  36. data/lib/bio/db/fasta/defline.rb +1 -1
  37. data/lib/bio/db/fasta/format_fasta.rb +0 -4
  38. data/lib/bio/db/fasta/format_qual.rb +0 -5
  39. data/lib/bio/db/fastq/format_fastq.rb +0 -1
  40. data/lib/bio/db/genbank/format_genbank.rb +0 -4
  41. data/lib/bio/db/gff.rb +41 -12
  42. data/lib/bio/db/kegg/genes.rb +3 -3
  43. data/lib/bio/db/kegg/kgml.rb +465 -64
  44. data/lib/bio/db/newick.rb +0 -244
  45. data/lib/bio/db/pdb.rb +1 -4
  46. data/lib/bio/db/pdb/atom.rb +3 -2
  47. data/lib/bio/db/pdb/chain.rb +2 -3
  48. data/lib/bio/db/pdb/chemicalcomponent.rb +3 -2
  49. data/lib/bio/db/pdb/model.rb +2 -2
  50. data/lib/bio/db/pdb/pdb.rb +2 -1
  51. data/lib/bio/db/pdb/residue.rb +2 -2
  52. data/lib/bio/db/pdb/utils.rb +7 -4
  53. data/lib/bio/db/phyloxml/phyloxml_parser.rb +52 -5
  54. data/lib/bio/feature.rb +2 -3
  55. data/lib/bio/io/flatfile/autodetection.rb +1 -1
  56. data/lib/bio/io/flatfile/buffer.rb +84 -0
  57. data/lib/bio/sequence.rb +6 -4
  58. data/lib/bio/sequence/aa.rb +3 -5
  59. data/lib/bio/sequence/adapter.rb +6 -6
  60. data/lib/bio/sequence/common.rb +3 -3
  61. data/lib/bio/sequence/compat.rb +2 -7
  62. data/lib/bio/sequence/dblink.rb +6 -5
  63. data/lib/bio/sequence/format.rb +0 -6
  64. data/lib/bio/sequence/format_raw.rb +0 -4
  65. data/lib/bio/sequence/generic.rb +3 -4
  66. data/lib/bio/sequence/na.rb +4 -6
  67. data/lib/bio/sequence/quality_score.rb +2 -0
  68. data/lib/bio/sequence/sequence_masker.rb +3 -0
  69. data/lib/bio/shell/core.rb +1 -0
  70. data/lib/bio/tree.rb +1 -2
  71. data/lib/bio/tree/output.rb +264 -0
  72. data/lib/bio/util/restriction_enzyme.rb +1 -3
  73. data/lib/bio/util/restriction_enzyme/analysis.rb +8 -5
  74. data/lib/bio/util/restriction_enzyme/analysis_basic.rb +4 -3
  75. data/lib/bio/util/restriction_enzyme/cut_symbol.rb +3 -2
  76. data/lib/bio/util/restriction_enzyme/dense_int_array.rb +3 -0
  77. data/lib/bio/util/restriction_enzyme/double_stranded.rb +3 -4
  78. data/lib/bio/util/restriction_enzyme/double_stranded/aligned_strands.rb +3 -4
  79. data/lib/bio/util/restriction_enzyme/double_stranded/cut_location_pair.rb +3 -4
  80. data/lib/bio/util/restriction_enzyme/double_stranded/cut_location_pair_in_enzyme_notation.rb +3 -4
  81. data/lib/bio/util/restriction_enzyme/double_stranded/cut_locations.rb +3 -4
  82. data/lib/bio/util/restriction_enzyme/double_stranded/cut_locations_in_enzyme_notation.rb +3 -4
  83. data/lib/bio/util/restriction_enzyme/range/cut_range.rb +3 -4
  84. data/lib/bio/util/restriction_enzyme/range/cut_ranges.rb +3 -4
  85. data/lib/bio/util/restriction_enzyme/range/horizontal_cut_range.rb +3 -4
  86. data/lib/bio/util/restriction_enzyme/range/sequence_range.rb +3 -4
  87. data/lib/bio/util/restriction_enzyme/range/sequence_range/calculated_cuts.rb +3 -4
  88. data/lib/bio/util/restriction_enzyme/range/sequence_range/fragment.rb +3 -4
  89. data/lib/bio/util/restriction_enzyme/range/sequence_range/fragments.rb +3 -4
  90. data/lib/bio/util/restriction_enzyme/range/vertical_cut_range.rb +3 -4
  91. data/lib/bio/util/restriction_enzyme/single_strand.rb +3 -3
  92. data/lib/bio/util/restriction_enzyme/single_strand/cut_locations_in_enzyme_notation.rb +3 -4
  93. data/lib/bio/util/restriction_enzyme/single_strand_complement.rb +3 -4
  94. data/lib/bio/util/restriction_enzyme/sorted_num_array.rb +3 -0
  95. data/lib/bio/util/restriction_enzyme/string_formatting.rb +3 -4
  96. data/lib/bio/version.rb +11 -2
  97. data/sample/seqdatabase.ini +210 -0
  98. data/test/bioruby_test_helper.rb +37 -12
  99. data/test/data/KEGG/test.kgml +37 -0
  100. data/test/data/command/echoarg2.bat +0 -0
  101. data/test/data/command/echoarg2.sh +4 -0
  102. data/test/functional/bio/test_command.rb +58 -28
  103. data/test/{functional → network}/bio/appl/blast/test_remote.rb +0 -0
  104. data/test/{functional → network}/bio/appl/test_blast.rb +0 -0
  105. data/test/{functional → network}/bio/appl/test_pts1.rb +0 -0
  106. data/test/{functional → network}/bio/io/test_ddbjrest.rb +0 -0
  107. data/test/{functional → network}/bio/io/test_ensembl.rb +0 -0
  108. data/test/{functional → network}/bio/io/test_pubmed.rb +0 -0
  109. data/test/{functional → network}/bio/io/test_soapwsdl.rb +0 -0
  110. data/test/{functional → network}/bio/io/test_togows.rb +0 -0
  111. data/test/network/bio/test_command.rb +35 -0
  112. data/test/runner.rb +16 -6
  113. data/test/unit/bio/appl/blast/test_report.rb +119 -0
  114. data/test/unit/bio/appl/blast/test_rpsblast.rb +1 -0
  115. data/test/unit/bio/data/test_na.rb +1 -1
  116. data/test/unit/bio/db/embl/test_embl.rb +2 -7
  117. data/test/unit/bio/db/embl/test_embl_rel89.rb +2 -7
  118. data/test/unit/bio/db/fasta/test_defline.rb +1 -1
  119. data/test/unit/bio/db/genbank/test_genpept.rb +1 -1
  120. data/test/unit/bio/db/kegg/test_drug.rb +1 -1
  121. data/test/unit/bio/db/kegg/test_genome.rb +1 -1
  122. data/test/unit/bio/db/kegg/test_glycan.rb +1 -1
  123. data/test/unit/bio/db/kegg/test_kgml.rb +1022 -0
  124. data/test/unit/bio/db/sanger_chromatogram/test_abif.rb +2 -1
  125. data/test/unit/bio/db/sanger_chromatogram/test_scf.rb +4 -2
  126. data/test/unit/bio/db/test_newick.rb +2 -0
  127. data/test/unit/bio/db/test_phyloxml.rb +54 -2
  128. data/test/unit/bio/db/test_phyloxml_writer.rb +15 -9
  129. data/test/unit/bio/db/test_soft.rb +1 -1
  130. data/test/unit/bio/io/flatfile/test_autodetection.rb +6 -0
  131. data/test/unit/bio/io/flatfile/test_buffer.rb +141 -0
  132. data/test/unit/bio/sequence/test_common.rb +36 -4
  133. data/test/unit/bio/sequence/test_na.rb +1 -1
  134. data/test/unit/bio/test_command.rb +9 -4
  135. data/test/unit/bio/test_sequence.rb +2 -2
  136. data/test/unit/bio/test_tree.rb +11 -11
  137. data/test/unit/bio/util/test_restriction_enzyme.rb +1 -1
  138. metadata +1428 -655
  139. data/rdoc.zsh +0 -8
@@ -0,0 +1,132 @@
1
+ = BioRuby 1.4.2 RELEASE NOTES
2
+
3
+ A lot of changes have been made to the BioRuby 1.4.2 after the version 1.4.1
4
+ is released. This document describes important and/or incompatible changes
5
+ since the BioRuby 1.4.1 release.
6
+
7
+ For known problems, see KNOWN_ISSUES.rdoc.
8
+
9
+ == New features
10
+
11
+ === Speed-up of Bio::RestrictionEnzyme::Analysis.cut
12
+
13
+ The running speed of Bio::RestrictionEnzyme::Analysis.cut is significantly
14
+ increased. The new code is 50 to 80 fold faster than the previous code
15
+ when cutting 1Mbp sequence running on Ruby 1.9.2p180. The code is written
16
+ by Tomoaki NISHIYAMA and Naohisa Goto.
17
+
18
+ === New classes Bio::DDBJ::REST, REST interface for DDBJ web service
19
+
20
+ For DDBJ Web API for Biology (WABI) web service, in additon to SOAP, REST
21
+ (REpresentational State Transfer) interface is added as Bio::DDBJ::REST.
22
+ Currently, only selected APIs are implemented.
23
+
24
+ === Bio::Blast with remote DDBJ server uses REST instead of SOAP
25
+
26
+ Bio::Blast with remote DDBJ server uses REST instead of SOAP, because
27
+ Soap4r (SOAP library for Ruby) does not work well with Ruby 1.9.
28
+ We can now use remote DDBJ BLAST server with Ruby 1.9.
29
+
30
+ === Tutorial is updated
31
+
32
+ The Tutorial.rd is updated by Pjotr Prins and Michael O'Keefe.
33
+
34
+ === Many unit tests are added
35
+
36
+ Added many unit tests for Bio::GenBank, Bio::GenPept, Bio::NBRF, Bio::PDB
37
+ and so on. Most of them are developed by Kazuhiro Hayashi during the
38
+ Google Summer of Code 2010.
39
+
40
+ === Other new features
41
+
42
+ * New method Bio::Fastq#to_s for convenience. Note that the use of the method
43
+ may cause loss of performance. To get each input sequence entry as-is,
44
+ consider using Bio::FlatFile#entry_raw. To output fastq format data,
45
+ consider using Bio::Sequence#output(:fastq).
46
+ * New methods Bio::NCBI::REST::EFetch.nucleotide and protein,
47
+ to get data from "nucleotide" and "protein" database respectively.
48
+ Because NCBI changed not to accept "gb" format for the database
49
+ "sequence", the two new methods are added for convenience.
50
+ * In BioRuby Shell, efetch method uses the above new methods.
51
+ * In GenomeNet remote BLAST execution, database "mine-aa" and "mine-nt"
52
+ with KEGG organism codes are now supported.
53
+ * Support for Ruby 1.9.2 / 1.9.3 is improved.
54
+
55
+ == Bug fixes
56
+
57
+ === Bio::Blast
58
+
59
+ * Failure of remote BLAST execution is fixed, due to the changes in GenomeNet
60
+ and DDBJ.
61
+ * When executing remote BLAST with "genomenet" server, options "-b" and "-v"
62
+ are now correctly used to limit the number of hits to be reported.
63
+
64
+ === Bio::SPTR (Bio::UniProt)
65
+
66
+ * Due to the UniProtKB format changes, ID, DE, and WEB RESOURCE of CC lines
67
+ were not correctly parsed. See also below about incompatible change of
68
+ the fix.
69
+
70
+ === Other bug fixes
71
+
72
+ * Bio::Reference#pubmed_url is updated to follow recent NCBI changes.
73
+ * Fixed: Bio::Newick#reparse failure.
74
+ * Fixed: In Bio::MEDLINE#reference, doi field should be filled.
75
+ * Fixed: Bio::Reference#endnote fails when url is not set.
76
+ * Fixed: Bio::FastaFormat#query passes nil to the given factory object.
77
+ * Fixed: In BioRuby Shell, efetch() with no additional arguments fails
78
+ because of the NCBI site changes.
79
+ * Fixed: In BioRuby Shell, getent() fails when EMBOSS seqret is not found.
80
+ * Fixed: In BioRuby Shell, demo() fails due to the above two issues.
81
+
82
+ == Incompatible changes
83
+
84
+ === Bio::Sequence#output(:fastq)
85
+
86
+ In Fastq output formatter, default width value is changed from 70 to nil.
87
+ The nil means "without wrapping". The new default behavior without wrapping
88
+ is generally good with many recent applications that read fastq.
89
+
90
+ === Bio::SPTR CC line topic "WEB RESOURCE"
91
+
92
+ In the return value of Bio::SPTR#cc('WEB RESOURCE'), "NAME" and "NOTE"
93
+ are now renamed to "Name" and "Note", respectively. The change is due to
94
+ the UniProt format change since UniProtKB release 12.2 of 11-Sep-2007.
95
+ (See http://www.uniprot.org/docs/sp_news.htm#rel12.2 for details.)
96
+ Note that "Name" and "Note" are used even when parsing older format.
97
+ The change would also affect Marshal.dump (and YAML.dump) data.
98
+
99
+ === Bio::Blast with the remote GenomeNet server
100
+
101
+ When executing remote BLAST with "genomenet" server, options "-b" and "-v"
102
+ are now correctly used to limit the number of hits to be reported.
103
+ In 1.4.1 and before, "-B" and "-V" were mistakenly used for the purpose.
104
+
105
+ === Bio::Blast with the remote DDBJ server
106
+
107
+ Bio::Blast with remote DDBJ server uses REST instead of SOAP.
108
+
109
+ === Bio::RestrictionEnzyme internal data structure change
110
+
111
+ Due to the speedup, internal data structure of the following classes
112
+ are changed: Bio::RestrictionEnzyme::Range::SequenceRange,
113
+ Bio::RestrictionEnzyme::Range::SequenceRange::CalculatedCuts,
114
+ Bio::RestrictionEnzyme::Range::SequenceRange::Fragment.
115
+ This indicates that Marshal.dump (and YAML.dump) data generated by older
116
+ versions cannot be loaded by the new version, and vice versa, although
117
+ public APIs of the classes keep compatibility.
118
+
119
+ == Known issues
120
+
121
+ The following issues are added or updated. See KNOWN_ISSUES.rdoc for other
122
+ already known issues.
123
+
124
+ * Bio::SPTR should be updated to follow UniProtKB format changes.
125
+ * Problems observed only with Ruby 1.8.5 or earlier will not be fixed.
126
+ * Descriptions about very old RubyGems 0.8.11 or earlier and about CVS
127
+ repository are moved from README.rdoc.
128
+
129
+ == Other important news
130
+
131
+ * Required ruby version is now Ruby 1.8.6 or later (except 1.9.0).
132
+
@@ -40,7 +40,7 @@ bioruby> $: << '../lib' # make sure rubydoctest finds bioruby/lib
40
40
  * Copyright (C) 2001-2003 KATAYAMA Toshiaki <k .at. bioruby.org>
41
41
  * Copyright (C) 2005-2011 Pjotr Prins, Naohisa Goto and others
42
42
 
43
- This document was last modified: 2011/03/24
43
+ This document was last modified: 2011/10/14
44
44
  Current editor: Michael O'Keefe <okeefm (at) rpi (dot) edu>
45
45
 
46
46
  The latest version resides in the GIT source code repository: ./doc/((<Tutorial.rd|URL:https://github.com/bioruby/bioruby/blob/master/doc/Tutorial.rd>)).
@@ -62,7 +62,7 @@ version it has with the
62
62
 
63
63
  command. You should see something like:
64
64
 
65
- ruby 1.8.7 (2008-08-11 patchlevel 72) [i486-linux]
65
+ ruby 1.9.2p290 (2011-07-09 revision 32553) [i686-linux]
66
66
 
67
67
  If you see no such thing you'll have to install Ruby using your installation
68
68
  manager. For more information see the
@@ -1394,6 +1394,22 @@ For a tutorial see ((<here|URL:http://rtags.rubyforge.org/>))
1394
1394
 
1395
1395
  = APPENDIX
1396
1396
 
1397
+ == Biogem: Additional BioRuby plugins
1398
+
1399
+ Biogem is one of the exciting developments for Ruby in bioinformatics! Biogems
1400
+ add new functionality next to the BioRuby core project (BioRuby is a biogem itself). A biogem is simply installed with
1401
+
1402
+ gem install bio # The core BioRuby gem
1403
+ gem install bio-core # BioRuby + stable pure Ruby biogems
1404
+ gem install bio-core-ext # bio-core + stable Ruby extensions
1405
+
1406
+ Information on these biogems, and the many others available, see ((<Biogems.info|URL:http://biogems.info/>)) or ((<gems.bioruby.org|URL:http://gems.bioruby.org/>)).
1407
+
1408
+
1409
+
1410
+
1411
+
1412
+
1397
1413
  == KEGG API
1398
1414
 
1399
1415
  Please refer to KEGG_API.rd.ja (English version: ((<URL:http://www.genome.jp/kegg/soap/doc/keggapi_manual.html>)) ) and
@@ -1430,7 +1446,9 @@ homologues.
1430
1446
 
1431
1447
  == Using BioPerl or BioPython from Ruby
1432
1448
 
1433
- At the moment there is no easy way of accessing BioPerl from Ruby. The best way, perhaps, is to create a Perl server that gets accessed through XML/RPC or SOAP.
1449
+ A possible route is to opt for JRuby and Jython on the JAVA virtual machine (JVM).
1450
+
1451
+ At the moment there is no easy way of accessing BioPerl or BioPython directly from Ruby. A possibility is to create a Perl or Python server that gets accessed through XML/RPC or SOAP.
1434
1452
 
1435
1453
  == Installing required external libraries
1436
1454
 
@@ -4,7 +4,7 @@
4
4
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
5
  <html xmlns="http://www.w3.org/1999/xhtml">
6
6
  <head>
7
- <title>doc/Tutorial.rd</title>
7
+ <title>Tutorial.rd</title>
8
8
  <link href="bioruby.css" type="text/css" rel="stylesheet" />
9
9
  </head>
10
10
  <body>
@@ -13,7 +13,7 @@
13
13
  <li>Copyright (C) 2001-2003 KATAYAMA Toshiaki &lt;k .at. bioruby.org&gt;</li>
14
14
  <li>Copyright (C) 2005-2011 Pjotr Prins, Naohisa Goto and others</li>
15
15
  </ul>
16
- <p>This document was last modified: 2011/03/24
16
+ <p>This document was last modified: 2011/10/14
17
17
  Current editor: Michael O'Keefe &lt;okeefm (at) rpi (dot) edu&gt;</p>
18
18
  <p>The latest version resides in the GIT source code repository: ./doc/<a href="https://github.com/bioruby/bioruby/blob/master/doc/Tutorial.rd">Tutorial.rd</a>.</p>
19
19
  <h2><a name="label-1" id="label-1">Introduction</a></h2><!-- RDLabel: "Introduction" -->
@@ -27,7 +27,7 @@ by Dave Thomas and Andy Hunt - the first edition can be read online
27
27
  version it has with the</p>
28
28
  <pre>% ruby -v</pre>
29
29
  <p>command. You should see something like:</p>
30
- <pre>ruby 1.8.7 (2008-08-11 patchlevel 72) [i486-linux]</pre>
30
+ <pre>ruby 1.9.2p290 (2011-07-09 revision 32553) [i686-linux]</pre>
31
31
  <p>If you see no such thing you'll have to install Ruby using your installation
32
32
  manager. For more information see the
33
33
  <a href="http://www.ruby-lang.org/en/">Ruby</a> website.</p>
@@ -1119,17 +1119,24 @@ source code by clicking on class and method names. </p>
1119
1119
  rtags -R --vi</pre>
1120
1120
  <p>For a tutorial see <a href="http://rtags.rubyforge.org/">here</a></p>
1121
1121
  <h1><a name="label-34" id="label-34">APPENDIX</a></h1><!-- RDLabel: "APPENDIX" -->
1122
- <h2><a name="label-35" id="label-35">KEGG API</a></h2><!-- RDLabel: "KEGG API" -->
1122
+ <h2><a name="label-35" id="label-35">Biogem: Additional BioRuby plugins</a></h2><!-- RDLabel: "Biogem: Additional BioRuby plugins" -->
1123
+ <p>Biogem is one of the exciting developments for Ruby in bioinformatics! Biogems
1124
+ add new functionality next to the BioRuby core project (BioRuby is a biogem itself). A biogem is simply installed with </p>
1125
+ <pre>gem install bio # The core BioRuby gem
1126
+ gem install bio-core # BioRuby + stable pure Ruby biogems
1127
+ gem install bio-core-ext # bio-core + stable Ruby extensions</pre>
1128
+ <p>Information on these biogems, and the many others available, see <a href="http://biogems.info/">Biogems.info</a> or <a href="http://gems.bioruby.org/">gems.bioruby.org</a>.</p>
1129
+ <h2><a name="label-36" id="label-36">KEGG API</a></h2><!-- RDLabel: "KEGG API" -->
1123
1130
  <p>Please refer to KEGG_API.rd.ja (English version: <a href="http://www.genome.jp/kegg/soap/doc/keggapi_manual.html">&lt;URL:http://www.genome.jp/kegg/soap/doc/keggapi_manual.html&gt;</a> ) and</p>
1124
1131
  <ul>
1125
1132
  <li><a href="http://www.genome.jp/kegg/soap/">&lt;URL:http://www.genome.jp/kegg/soap/&gt;</a></li>
1126
1133
  </ul>
1127
- <h2><a name="label-36" id="label-36">Ruby Ensembl API</a></h2><!-- RDLabel: "Ruby Ensembl API" -->
1134
+ <h2><a name="label-37" id="label-37">Ruby Ensembl API</a></h2><!-- RDLabel: "Ruby Ensembl API" -->
1128
1135
  <p>The Ruby Ensembl API is a Ruby API to the Ensembl database. It is NOT currently
1129
1136
  included in the BioRuby archives. To install it, see
1130
1137
  <a href="http://wiki.github.com/jandot/ruby-ensembl-api">the Ruby-Ensembl Github</a>
1131
1138
  for more information.</p>
1132
- <h3><a name="label-37" id="label-37">Gene Ontology (GO) through the Ruby Ensembl API</a></h3><!-- RDLabel: "Gene Ontology (GO) through the Ruby Ensembl API" -->
1139
+ <h3><a name="label-38" id="label-38">Gene Ontology (GO) through the Ruby Ensembl API</a></h3><!-- RDLabel: "Gene Ontology (GO) through the Ruby Ensembl API" -->
1133
1140
  <p>Gene Ontologies can be fetched through the Ruby Ensembl API package:</p>
1134
1141
  <pre>require 'ensembl'
1135
1142
  Ensembl::Core::DBConnection.connect('drosophila_melanogaster')
@@ -1146,9 +1153,10 @@ infile.each do |line|
1146
1153
  end</pre>
1147
1154
  <p>Prints each mosq. accession/uniq identifier and the GO terms from the Drosphila
1148
1155
  homologues.</p>
1149
- <h2><a name="label-38" id="label-38">Using BioPerl or BioPython from Ruby</a></h2><!-- RDLabel: "Using BioPerl or BioPython from Ruby" -->
1150
- <p>At the moment there is no easy way of accessing BioPerl from Ruby. The best way, perhaps, is to create a Perl server that gets accessed through XML/RPC or SOAP.</p>
1151
- <h2><a name="label-39" id="label-39">Installing required external libraries</a></h2><!-- RDLabel: "Installing required external libraries" -->
1156
+ <h2><a name="label-39" id="label-39">Using BioPerl or BioPython from Ruby</a></h2><!-- RDLabel: "Using BioPerl or BioPython from Ruby" -->
1157
+ <p>A possible route is to opt for JRuby and Jython on the JAVA virtual machine (JVM).</p>
1158
+ <p>At the moment there is no easy way of accessing BioPerl or BioPython directly from Ruby. A possibility is to create a Perl or Python server that gets accessed through XML/RPC or SOAP.</p>
1159
+ <h2><a name="label-40" id="label-40">Installing required external libraries</a></h2><!-- RDLabel: "Installing required external libraries" -->
1152
1160
  <p>At this point for using BioRuby no additional libraries are needed, except if
1153
1161
  you are using the Bio::PhyloXML module; then you have to install libxml-ruby.</p>
1154
1162
  <p>This may change, so keep an eye on the Bioruby website. Also when
@@ -1157,20 +1165,20 @@ a package is missing BioRuby should show an informative message.</p>
1157
1165
  painful, as the gem standard for packages evolved late and some still
1158
1166
  force you to copy things by hand. Therefore read the README's
1159
1167
  carefully that come with each package.</p>
1160
- <h3><a name="label-40" id="label-40">Installing libxml-ruby</a></h3><!-- RDLabel: "Installing libxml-ruby" -->
1168
+ <h3><a name="label-41" id="label-41">Installing libxml-ruby</a></h3><!-- RDLabel: "Installing libxml-ruby" -->
1161
1169
  <p>The simplest way is to use the RubyGems packaging system:</p>
1162
1170
  <pre>gem install -r libxml-ruby</pre>
1163
1171
  <p>If you get `require': no such file to load - mkmf (LoadError) error then do</p>
1164
1172
  <pre>sudo apt-get install ruby-dev</pre>
1165
1173
  <p>If you have other problems with installation, then see <a href="http://libxml.rubyforge.org/install.xml">&lt;URL:http://libxml.rubyforge.org/install.xml&gt;</a>.</p>
1166
- <h2><a name="label-41" id="label-41">Trouble shooting</a></h2><!-- RDLabel: "Trouble shooting" -->
1174
+ <h2><a name="label-42" id="label-42">Trouble shooting</a></h2><!-- RDLabel: "Trouble shooting" -->
1167
1175
  <ul>
1168
1176
  <li>Error: in `require': no such file to load -- bio (LoadError)</li>
1169
1177
  </ul>
1170
1178
  <p>Ruby is failing to find the BioRuby libraries - add it to the RUBYLIB path, or pass
1171
1179
  it to the interpeter. For example:</p>
1172
1180
  <pre>ruby -I$BIORUBYPATH/lib yourprogram.rb</pre>
1173
- <h2><a name="label-42" id="label-42">Modifying this page</a></h2><!-- RDLabel: "Modifying this page" -->
1181
+ <h2><a name="label-43" id="label-43">Modifying this page</a></h2><!-- RDLabel: "Modifying this page" -->
1174
1182
  <p>IMPORTANT NOTICE: This page is maintained in the BioRuby source code
1175
1183
  repository. Please edit the file there otherwise changes may get
1176
1184
  lost. See <!-- Reference, RDLabel "BioRuby Developer Information" doesn't exist --><em class="label-not-found">BioRuby Developer Information</em><!-- Reference end --> for repository and mailing list
@@ -2,209 +2,26 @@ VERSION=1.00
2
2
 
3
3
  [embl]
4
4
  protocol=biofetch
5
- location=http://bioruby.org/cgi-bin/biofetch.rb
5
+ location=http://www.ebi.ac.uk/Tools/dbfetch/dbfetch
6
6
  dbname=embl
7
7
 
8
- [embl-upd]
8
+ [emblcds]
9
9
  protocol=biofetch
10
- location=http://bioruby.org/cgi-bin/biofetch.rb
11
- dbname=embl-upd
10
+ location=http://www.ebi.ac.uk/Tools/dbfetch/dbfetch
11
+ dbname=emblcds
12
12
 
13
- [embl_biofetch]
13
+ [uniprotkb]
14
14
  protocol=biofetch
15
- location=http://www.ebi.ac.uk/cgi-bin/dbfetch
16
- dbname=embl
17
-
18
- [embl_biosql]
19
- protocol=biosql
20
- location=localhost
21
- dbname=biosql
22
- driver=postgres
23
- user=hack
24
- pass=
25
- biodbname=embl
26
-
27
- [embl_biocorba]
28
- protocol=bsane-corba
29
- location=sqldbsrv.ior
30
-
31
- [embl_xembl]
32
- protocol=xembl
33
- location=http://www.ebi.ac.uk/xembl/XEMBL.wsdl
34
- format=Bsml
35
-
36
- [embl_flat]
37
- protcol=flat
38
- location=/export/database/
39
- dbname=embl
40
-
41
- [genbank_bdb]
42
- protcol=flat
43
- location=/export/database/
44
- dbname=genbank
45
-
46
- [swissprot]
47
- protocol=biofetch
48
- location=http://bioruby.org/cgi-bin/biofetch.rb
49
- dbname=swissprot
50
-
51
- [swissprot-upd]
52
- protocol=biofetch
53
- location=http://bioruby.org/cgi-bin/biofetch.rb
54
- dbname=swissprot-upd
55
-
56
- [swissprot_biofetch]
57
- protocol=biofetch
58
- location=http://www.ebi.ac.uk/cgi-bin/dbfetch
59
- dbname=swall
60
-
61
- [swissprot_biosql]
62
- protocol=biosql
63
- location=db.bioruby.org
64
- dbname=biosql
65
- driver=mysql
66
- user=root
67
- pass=
68
- biodbname=sp
69
-
70
-
71
- [genbank]
72
- protocol=biofetch
73
- location=http://bioruby.org/cgi-bin/biofetch.rb
74
- dbname=genbank
75
-
76
- [genbank-upd]
77
- protocol=biofetch
78
- location=http://bioruby.org/cgi-bin/biofetch.rb
79
- dbname=genbank-upd
80
-
81
- [genbank_biosql]
82
- protocol=biosql
83
- location=db.bioruby.org
84
- dbname=biosql
85
- driver=mysql
86
- user=root
87
- pass=
88
- biodbname=gb
89
-
90
-
91
- [refseq]
92
- protocol=biofetch
93
- location=http://bioruby.org/cgi-bin/biofetch.rb
94
- dbname=refseq
95
-
96
- [refseq_biosql]
97
- protocol=biosql
98
- location=db.bioruby.org
99
- dbname=biosql
100
- driver=mysql
101
- user=
102
- pass=
103
- biodbname=rs
104
-
105
-
106
- [kegg-pathway]
107
- protocol=biofetch
108
- location=http://bioruby.org/cgi-bin/biofetch.rb
109
- dbname=pathway
110
-
111
- [kegg-genome]
112
- protocol=biofetch
113
- location=http://bioruby.org/cgi-bin/biofetch.rb
114
- dbname=genome
115
-
116
- [kegg-genes]
117
- protocol=biofetch
118
- location=http://bioruby.org/cgi-bin/biofetch.rb
119
- dbname=genes
120
-
121
- [kegg-vgenes]
122
- protocol=biofetch
123
- location=http://bioruby.org/cgi-bin/biofetch.rb
124
- dbname=vgenes
125
-
126
- [aaindex]
127
- protocol=biofetch
128
- location=http://bioruby.org/cgi-bin/biofetch.rb
129
- dbname=aaindex
130
-
131
- [blocks]
132
- protocol=biofetch
133
- location=http://bioruby.org/cgi-bin/biofetch.rb
134
- dbname=blocks
135
-
136
- [enzyme]
137
- protocol=biofetch
138
- location=http://bioruby.org/cgi-bin/biofetch.rb
139
- dbname=enzyme
140
-
141
- [epd]
142
- protocol=biofetch
143
- location=http://bioruby.org/cgi-bin/biofetch.rb
144
- dbname=epd
145
-
146
- [litdb]
147
- protocol=biofetch
148
- location=http://bioruby.org/cgi-bin/biofetch.rb
149
- dbname=litdb
150
-
151
- [omim]
152
- protocol=biofetch
153
- location=http://bioruby.org/cgi-bin/biofetch.rb
154
- dbname=omim
155
-
156
- [pdb]
157
- protocol=biofetch
158
- location=http://bioruby.org/cgi-bin/biofetch.rb
159
- dbname=pdb
160
-
161
- [pdbstr]
162
- protocol=biofetch
163
- location=http://bioruby.org/cgi-bin/biofetch.rb
164
- dbname=pdbstr
165
-
166
- [pfam]
167
- protocol=biofetch
168
- location=http://bioruby.org/cgi-bin/biofetch.rb
169
- dbname=pfam
170
-
171
- [pir]
172
- protocol=biofetch
173
- location=http://bioruby.org/cgi-bin/biofetch.rb
174
- dbname=pir
175
-
176
- [pmd]
177
- protocol=biofetch
178
- location=http://bioruby.org/cgi-bin/biofetch.rb
179
- dbname=pmd
180
-
181
- [prf]
182
- protocol=biofetch
183
- location=http://bioruby.org/cgi-bin/biofetch.rb
184
- dbname=prf
185
-
186
- [prints]
187
- protocol=biofetch
188
- location=http://bioruby.org/cgi-bin/biofetch.rb
189
- dbname=prints
190
-
191
- [prodom]
192
- protocol=biofetch
193
- location=http://bioruby.org/cgi-bin/biofetch.rb
194
- dbname=prodom
195
-
196
- [prosdoc]
197
- protocol=biofetch
198
- location=http://bioruby.org/cgi-bin/biofetch.rb
199
- dbname=prosdoc
15
+ location=http://www.ebi.ac.uk/Tools/dbfetch/dbfetch
16
+ dbname=uniprotkb
200
17
 
201
- [prosite]
18
+ [refseqn]
202
19
  protocol=biofetch
203
- location=http://bioruby.org/cgi-bin/biofetch.rb
204
- dbname=prosite
20
+ location=http://www.ebi.ac.uk/Tools/dbfetch/dbfetch
21
+ dbname=refseqn
205
22
 
206
- [transfac]
23
+ [refseqp]
207
24
  protocol=biofetch
208
- location=http://bioruby.org/cgi-bin/biofetch.rb
209
- dbname=transfac
25
+ location=http://www.ebi.ac.uk/Tools/dbfetch/dbfetch
26
+ dbname=refseqp
210
27