[BioRuby-cvs] bioruby/lib/bio/db/genbank common.rb,1.11,1.11.2.1

Naohisa Goto ngoto at dev.open-bio.org
Thu Feb 28 05:54:53 UTC 2008


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

Modified Files:
      Tag: BRANCH-biohackathon2008
	common.rb 
Log Message:
changed to parse sequence position and reference number in REFERENCES


Index: common.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/lib/bio/db/genbank/common.rb,v
retrieving revision 1.11
retrieving revision 1.11.2.1
diff -C2 -d -r1.11 -r1.11.2.1
*** common.rb	5 Apr 2007 23:35:40 -0000	1.11
--- common.rb	28 Feb 2008 05:54:51 -0000	1.11.2.1
***************
*** 141,144 ****
--- 141,149 ----
          subtag2array(ref).each do |field|
            case tag_get(field)
+           when /^\s*REFERENCE\s+(\d+)(\s+\(bases\s+(\d+)\s+to\s+(\d+)\))?/
+             hash['embl_gb_record_number'] = $1.to_i
+             if $2 then
+               hash['sequence_position'] = "#{$3}-#{$4}"
+             end
            when /AUTHORS/
              authors = truncate(tag_cut(field))




More information about the bioruby-cvs mailing list