lib/bio-ucsc/hg18.rb in bio-ucsc-api-0.3.1 vs lib/bio-ucsc/hg18.rb in bio-ucsc-api-0.4.0
- old
+ new
@@ -1,24 +1,27 @@
#
# = AUTOMATIC Table Definition of Hg18
-# Copyright:: Copyright (C) 2011
+# Copyright:: Copyright (C) 2011, 2012
# MISHIMA, Hiroyuki
# <missy at be.to / hmishima at nagasaki-u.ac.jp>
# License:: The Ruby licence (Ryby's / GPLv2 dual)
#
-require "#{File.dirname(__FILE__)}/hg18/db_connection"
-require "#{File.dirname(__FILE__)}/table_class_detector"
+require "#{::File.dirname(__FILE__)}/db_connector"
+require "#{::File.dirname(__FILE__)}/table_class_detector"
module Bio
module Ucsc
module Hg18
extend TableClassDetector
+ include DBConnector
+ DBConnection.database "hg18"
+
CHROMS =
%w(ChrM Chr1 Chr2 Chr3 Chr4 Chr5 Chr6 Chr7 Chr8 Chr9
Chr10 Chr11 Chr12 Chr13 Chr14 Chr15 Chr16 Chr17 Chr18 Chr19
Chr20 Chr21 Chr22 ChrX ChrY)
- base = "#{File.dirname(__FILE__)}/hg18"
+ base = "#{::File.dirname(__FILE__)}/hg18"
# chromosomally separated tables
autoload :Rmsk, "#{base}/rmsk"
autoload :RmskRM327, "#{base}/rmskrm327"
autoload :Gold, "#{base}/gold"