[BioRuby-cvs] bioruby/lib/bio/io ensembl.rb,1.8,1.9
Mitsuteru C. Nakao
nakao at dev.open-bio.org
Thu Mar 29 08:00:06 UTC 2007
Update of /home/repository/bioruby/bioruby/lib/bio/io
In directory dev.open-bio.org:/tmp/cvs-serv10014/lib/bio/io
Modified Files:
ensembl.rb
Log Message:
* Added tests.
Index: ensembl.rb
===================================================================
RCS file: /home/repository/bioruby/bioruby/lib/bio/io/ensembl.rb,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -d -r1.8 -r1.9
*** ensembl.rb 29 Mar 2007 05:50:43 -0000 1.8
--- ensembl.rb 29 Mar 2007 08:00:04 -0000 1.9
***************
*** 110,113 ****
--- 110,120 ----
# 'genscan', 'variation', 'gene'])
# human.exportview(1, 1149206, 1150000, ['variation', 'gene'])
+ #
+ # Feature in TAB
+ # human.exportview(:seq_region_name => 1,
+ # :anchor1 => 1149206, :anchor2 => 1150000,
+ # :options => ['similarity', 'repeat',
+ # 'genscan', 'variation', 'gene'],
+ # :format => 'tab')
#
# == Arguments
***************
*** 164,169 ****
:anchor2 => args[2],
}
! if args.size >= 4
options.update({:format => 'gff', :options => args[3]})
end
end
--- 171,184 ----
:anchor2 => args[2],
}
!
! case args[3]
! when Array
options.update({:format => 'gff', :options => args[3]})
+ when Hash
+ options.update(args[3])
+ end
+
+ if aqrgs[4].class == Hash
+ options.update(args[4])
end
end
More information about the bioruby-cvs
mailing list