[BioRuby-cvs] bioruby/lib/bio/io ensembl.rb,1.4,1.5

Mitsuteru C. Nakao nakao at dev.open-bio.org
Wed Mar 28 12:01:50 UTC 2007


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

Modified Files:
	ensembl.rb 
Log Message:
* Fixed a bug (server.chomp('/') -> @server.chump('/')).


Index: ensembl.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/lib/bio/io/ensembl.rb,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** ensembl.rb	28 Mar 2007 10:31:48 -0000	1.4
--- ensembl.rb	28 Mar 2007 12:01:48 -0000	1.5
***************
*** 14,22 ****
  # == Examples
  #
! #  seq = Bio::Ensembl::Human.exportview(1, 1000, 100000)
! #  gff = Bio::Ensembl::Human.exportview(1, 1000, 100000, ['gene'])
  #
! #  seq = Bio::Ensembl::Mouse.exportview(1, 1000, 100000)
! #  gff = Bio::Ensembl::Mouse.exportview(1, 1000, 100000, ['gene', 'variation', 'genscan'])
  #
  #  
--- 14,22 ----
  # == Examples
  #
! #  seq = Bio::Ensembl.human.exportview(1, 1000, 100000)
! #  gff = Bio::Ensembl.human.exportview(1, 1000, 100000, ['gene'])
  #
! #  seq = Bio::Ensembl.mouse.exportview(1, 1000, 100000)
! #  gff = Bio::Ensembl.mouse.exportview(1, 1000, 100000, ['gene', 'variation', 'genscan'])
  #
  #  
***************
*** 59,69 ****
  #
  class Ensembl
! 
    ENSEMBL_URL = 'http://www.ensembl.org'
  
    def initialize(organism, server = nil)
      @server = server || ENSEMBL_URL
      @organism = organism
!     @uri = [ server.chomp('/'), @organism ].join('/')
    end
  
--- 59,73 ----
  #
  class Ensembl
!   
    ENSEMBL_URL = 'http://www.ensembl.org'
  
+   attr_reader :server
+ 
+   attr_reader :organism
+ 
    def initialize(organism, server = nil)
      @server = server || ENSEMBL_URL
      @organism = organism
!     @uri = [ @server.chomp('/'), @organism ].join('/')
    end
  




More information about the bioruby-cvs mailing list