[BioRuby-cvs] bioruby/lib/bio/io ensembl.rb,1.5,1.6
Katayama Toshiaki
k at dev.open-bio.org
Wed Mar 28 12:31:50 UTC 2007
Update of /home/repository/bioruby/bioruby/lib/bio/io
In directory dev.open-bio.org:/tmp/cvs-serv6977/io
Modified Files:
ensembl.rb
Log Message:
* exportview is fixed to extract body from Net::HTTP response
Index: ensembl.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/lib/bio/io/ensembl.rb,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** ensembl.rb 28 Mar 2007 12:01:48 -0000 1.5
--- ensembl.rb 28 Mar 2007 12:31:48 -0000 1.6
***************
*** 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,27 ----
# == Examples
#
! # human = Bio::Ensembl.new('Homo_sapiens')
! # seq = human.exportview(1, 1000, 100000)
! # gff = human.exportview(1, 1000, 100000, ['gene', 'variation', 'genscan'])
#
! # human = Bio::Ensembl.human
! # seq = human.exportview(1, 1000, 100000)
! # gff = human.exportview(1, 1000, 100000, ['gene'])
! #
! # seq = Bio::Ensembl.human.exportview(1, 1000, 100000)
! # gff = Bio::Ensembl.human.exportview(1, 1000, 100000, ['gene', 'variation', 'genscan'])
#
#
***************
*** 28,33 ****
require 'bio/command'
- require 'uri'
- require 'cgi'
module Bio
--- 33,36 ----
***************
*** 166,170 ****
params = defaults.update(options)
! Bio::Command.post_form("#{@uri}/exportview", params)
end
--- 169,175 ----
params = defaults.update(options)
! result, = Bio::Command.post_form("#{@uri}/exportview", params)
!
! return result.body
end
More information about the bioruby-cvs
mailing list