[BioRuby-cvs] bioruby/lib/bio/db/embl common.rb,1.5,1.6

Mitsuteru C. Nakao nakao at pub.open-bio.org
Thu Oct 27 05:36:09 EDT 2005


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

Modified Files:
	common.rb 
Log Message:
* Cleaned up Bio::EMBLDB::Common#og code.


Index: common.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/lib/bio/db/embl/common.rb,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** common.rb	23 Oct 2005 09:25:16 -0000	1.5
--- common.rb	27 Oct 2005 09:36:07 -0000	1.6
***************
*** 167,175 ****
    #
    # OG Line; organella (0 or 1/entry)
    def og
      unless @data['OG']
        og = Array.new
        if get('OG').size > 0
!         fetch('OG').sub(/\.$/,'').sub(/ and/,'').split(/,/).each do |tmp|
            og.push(tmp.strip)
          end
--- 167,185 ----
    #
    # OG Line; organella (0 or 1/entry)
+   #  OG   Plastid; Chloroplast.
+   #  OG   Mitochondrion.
+   #  OG   Plasmid sym pNGR234a.
+   #  OG   Plastid; Cyanelle.
+   #  OG   Plasmid pSymA (megaplasmid 1).
+   #  OG   Plasmid pNRC100, Plasmid pNRC200, and Plasmid pHH1.
    def og
      unless @data['OG']
        og = Array.new
        if get('OG').size > 0
!         ogstr = fetch('OG')
!         ogstr.sub!(/\.$/,'')
!         ogstr.sub!(/ and/,'')
!         ogstr.sub!(/;/, ',')
!         ogstr.split(',').each do |tmp|
            og.push(tmp.strip)
          end



More information about the bioruby-cvs mailing list