[BioRuby-cvs] bioruby/lib/bio/db/kegg compound.rb,0.9,0.10

Katayama Toshiaki k at pub.open-bio.org
Sun Aug 7 04:23:39 EDT 2005


Update of /home/repository/bioruby/bioruby/lib/bio/db/kegg
In directory pub.open-bio.org:/tmp/cvs-serv24591/lib/bio/db/kegg

Modified Files:
	compound.rb 
Log Message:
* entry_id method is fixed to return the first word in the ENTRY line


Index: compound.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/lib/bio/db/kegg/compound.rb,v
retrieving revision 0.9
retrieving revision 0.10
diff -C2 -d -r0.9 -r0.10
*** compound.rb	22 Oct 2004 10:00:39 -0000	0.9
--- compound.rb	7 Aug 2005 08:23:37 -0000	0.10
***************
*** 1,4 ****
  #
! # bio/db/kegg/compound.rb - KEGG/COMPOUND database class
  #
  #   Copyright (C) 2001, 2002, 2004 KATAYAMA Toshiaki <k at bioruby.org>
--- 1,4 ----
  #
! # bio/db/kegg/compound.rb - KEGG COMPOUND database class
  #
  #   Copyright (C) 2001, 2002, 2004 KATAYAMA Toshiaki <k at bioruby.org>
***************
*** 38,42 ****
        # ENTRY
        def entry_id
! 	field_fetch('ENTRY')
        end
  
--- 38,45 ----
        # ENTRY
        def entry_id
!         unless @data['ENTRY']
!           @data['ENTRY'] = fetch('ENTRY').split(/\s+/).first
!         end
!         @data['ENTRY']
        end
  



More information about the bioruby-cvs mailing list