[BioRuby-cvs] bioruby/lib/bio/db/kegg genes.rb,0.21,0.22
Katayama Toshiaki
k at pub.open-bio.org
Wed Nov 9 07:30:10 EST 2005
Update of /home/repository/bioruby/bioruby/lib/bio/db/kegg
In directory pub.open-bio.org:/tmp/cvs-serv31590/lib/bio/db/kegg
Modified Files:
genes.rb
Log Message:
* dblinks is fixed to collectly handle the line without new line at the
line end.
Index: genes.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/lib/bio/db/kegg/genes.rb,v
retrieving revision 0.21
retrieving revision 0.22
diff -C2 -d -r0.21 -r0.22
*** genes.rb 9 Nov 2005 07:15:42 -0000 0.21
--- genes.rb 9 Nov 2005 12:30:07 -0000 0.22
***************
*** 129,133 ****
unless @data['DBLINKS']
hash = {}
! get('DBLINKS').scan(/(\S+):\s*(.*)\n/).each do |db, str|
id_array = str.strip.split(/\s+/)
hash[db] = id_array
--- 129,133 ----
unless @data['DBLINKS']
hash = {}
! get('DBLINKS').scan(/(\S+):\s*(.*)\n?/).each do |db, str|
id_array = str.strip.split(/\s+/)
hash[db] = id_array
More information about the bioruby-cvs
mailing list