[BioRuby-cvs] bioruby/lib/bio/io das.rb,1.12,1.13

Katayama Toshiaki k at dev.open-bio.org
Tue Jul 25 19:46:45 UTC 2006


Update of /home/repository/bioruby/bioruby/lib/bio/io
In directory dev.open-bio.org:/tmp/cvs-serv28169/lib/bio/io

Modified Files:
	das.rb 
Log Message:
* bug fixed that segment.stop was overwritten by segment.orientation


Index: das.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/lib/bio/io/das.rb,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** das.rb	8 May 2006 14:31:58 -0000	1.12
--- das.rb	25 Jul 2006 19:46:43 -0000	1.13
***************
*** 64,71 ****
    # Returns Bio::DAS::ENTRY_POINT.
    # The 'dsn' can be a String or a Bio::DAS::DSN object.
!   def get_entry_point(dsn)
      entry_point = ENTRY_POINT.new
!     dsn = dsn.source if dsn.instance_of?(Bio::DAS::DSN)
!     result, = @server.get(@prefix + '/das/' + dsn + '/entry_points')
      doc = REXML::Document.new(result.body)
      doc.elements.each('/descendant::ENTRY_POINTS') do |e|
--- 64,75 ----
    # Returns Bio::DAS::ENTRY_POINT.
    # The 'dsn' can be a String or a Bio::DAS::DSN object.
!   def get_entry_points(dsn)
      entry_point = ENTRY_POINT.new
!     if dsn.instance_of?(Bio::DAS::DSN)
!       src = dsn.source 
!     else
!       src = dsn
!     end
!     result, = @server.get(@prefix + '/das/' + src + '/entry_points')
      doc = REXML::Document.new(result.body)
      doc.elements.each('/descendant::ENTRY_POINTS') do |e|
***************
*** 77,81 ****
          segment.start = e.attributes['start']
          segment.stop = e.attributes['stop']
!         segment.stop = e.attributes['orientation']
          segment.subparts = e.attributes['subparts']
          segment.description = e.text
--- 81,85 ----
          segment.start = e.attributes['start']
          segment.stop = e.attributes['stop']
!         segment.orientation = e.attributes['orientation']
          segment.subparts = e.attributes['subparts']
          segment.description = e.text




More information about the bioruby-cvs mailing list