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

Naohisa Goto ngoto at dev.open-bio.org
Tue Jun 17 15:53:23 UTC 2008


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

Modified Files:
      Tag: BRANCH-biohackathon2008
	common.rb 
Log Message:
Bio::GenBank#comment (and Bio::GenPept#comment) is changed not to remove
newlines inside the comment.


Index: common.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/lib/bio/db/genbank/common.rb,v
retrieving revision 1.11.2.4
retrieving revision 1.11.2.5
diff -C2 -d -r1.11.2.4 -r1.11.2.5
*** common.rb	7 May 2008 12:25:42 -0000	1.11.2.4
--- common.rb	17 Jun 2008 15:53:21 -0000	1.11.2.5
***************
*** 196,200 ****
    # COMMENT -- Returns contents of the COMMENT record as a String.
    def comment
!     field_fetch('COMMENT')
    end
  
--- 196,203 ----
    # COMMENT -- Returns contents of the COMMENT record as a String.
    def comment
!     str = get('COMMENT').to_s.sub(/\ACOMMENT     /, '')
!     str.gsub!(/^ {12}/, '')
!     str.chomp!
!     str
    end
  




More information about the bioruby-cvs mailing list