| Class | Ensembl::Core::CoreDBConnection |
| In: |
lib/ensembl/db_connection.rb
|
| Parent: | ActiveRecord::Base |
The Ensembl::Core::CoreDBConnection is the actual connection established with the Ensembl server.
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.
# 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:
(default = 45)