[BioRuby-cvs] bioruby/lib/bio/db/genbank common.rb, 1.11.2.3, 1.11.2.4

Naohisa Goto ngoto at dev.open-bio.org
Wed May 7 12:25:44 UTC 2008


Update of /home/repository/bioruby/bioruby/lib/bio/db/genbank
In directory dev.open-bio.org:/tmp/cvs-serv7778/lib/bio/db/genbank

Modified Files:
      Tag: BRANCH-biohackathon2008
	common.rb 
Log Message:
added support for 'REMARK' (comment in reference)


Index: common.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/lib/bio/db/genbank/common.rb,v
retrieving revision 1.11.2.3
retrieving revision 1.11.2.4
diff -C2 -d -r1.11.2.3 -r1.11.2.4
*** common.rb	4 Mar 2008 10:32:55 -0000	1.11.2.3
--- common.rb	7 May 2008 12:25:42 -0000	1.11.2.4
***************
*** 138,142 ****
        ary = []
        toptag2array(get('REFERENCE')).each do |ref|
!         hash = Hash.new('')
          subtag2array(ref).each do |field|
            case tag_get(field)
--- 138,142 ----
        ary = []
        toptag2array(get('REFERENCE')).each do |ref|
!         hash = Hash.new
          subtag2array(ref).each do |field|
            case tag_get(field)
***************
*** 175,178 ****
--- 175,181 ----
            when /PUBMED/
              hash['pubmed']	= truncate(tag_cut(field))
+           when /REMARK/
+             hash['comments'] ||= []
+             hash['comments'].push truncate(tag_cut(field))
            end
          end




More information about the bioruby-cvs mailing list