Class Ensembl::Core::CoreDBConnection
In: lib/ensembl/db_connection.rb
Parent: ActiveRecord::Base

DESCRIPTION

The Ensembl::Core::CoreDBConnection is the actual connection established with the Ensembl server.

Methods

connect  

Public Class methods

DESCRIPTION

The Ensembl::Core::CoreDBConnection#connect method makes the connection to the Ensembl core database for a given species. By default, it connects to release 45 for that species. You could use a lower number, but some parts of the API might not work, or worse: give the wrong results.

USAGE

 # Connect to release 45 of human
 Ensembl::Core::CoreDBConnection.connect('homo_sapiens')

 # Connect to release 42 of chicken
 Ensembl::Core::CoreDBConnection.connect('gallus_gallus')

Arguments:

  • species:: species to connect to. Arguments should be in snake_case
  • ensembl_release:: the release of the database to connect to
 (default = 45)

[Validate]