Sha256: f2405269573d4c6f78ae50aa762d9e04436907eaa34684d555c3febd8e0a94c7
Contents?: true
Size: 1.98 KB
Versions: 2
Compression:
Stored size: 1.98 KB
Contents
# # = AUTOMATIC Table Definition of the Cat Dec. 2008 (NHGRI/GTB V17e/felCat4) assembly # Copyright:: Copyright (C) 2011-2017 # MISHIMA, Hiroyuki # <missy at be.to / hmishima at nagasaki-u.ac.jp> # License:: The MIT licence # require "#{::File.dirname(__FILE__)}/table_class_detector" module Bio module Ucsc module FelCat4 CHROMS = %w(chrA1 chrC1 chrA2 chrB1 chrA3 chrC2 chrB2 chrB4 chrB3 chrD1 chrX chrE1 chrD3 chrD4 chrD2 chrF1 chrF2 chrE2 chrE3) extend TableClassDetector def self.default DBConnection.default end def self.connect(param = Hash.new) DBConnection.db_adapter = param[:db_adapter] if param[:db_adapter] DBConnection.db_host = param[:db_host] if param[:db_host] DBConnection.db_username = param[:db_username] if param[:db_username] DBConnection.password = param[:password] if param[:password] DBConnection.connect end class DBConnection < ActiveRecord::Base include SafeAttributes self.inheritance_column = 'dummy_not_to_use' @@db_adapter ||= 'mysql2' @@db_host ||= 'genome-mysql.cse.ucsc.edu' @@db_username ||= 'genome' @@db_password ||= '' @@db_name ||= 'felCat4' cattr_accessor :db_adapter, :db_host, :db_username, :db_password self.abstract_class = true def self.default @@db_adapter = 'mysql2' @@db_host = 'genome-mysql.cse.ucsc.edu' @@db_username = 'genome' @@db_password = '' end def self.connect establish_connection({ :adapter => @@db_adapter, :host => @@db_host, :database => @@db_name, :username => @@db_username, :password => @@db_password, }) end end # class DBConnection base = "#{::File.dirname(__FILE__)}/felcat4" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bio-ucsc-api-0.6.5 | lib/bio-ucsc/felcat4.rb |
bio-ucsc-api-0.6.4 | lib/bio-ucsc/felcat4.rb |