Ensembl
Gem to access ensembl.org database. Currently only supports Variation database tables and latest version.
Some of the work is inspired of ruby-ensembl-api project.
Installation
Add this line to your application's Gemfile:
gem 'ensembl'
And then execute:
$ bundle
Or install it yourself as:
$ gem install ensembl
Usage
require 'ensembl'
ENSEMBL.ORG database - Default configuration
Ensembl::Variation::Variation.first
Ensembl::Variation::Variation.first.source
Custom database
# Set following values before using - Only Human databases is somewhat tested.
Ensembl.host = 'myhost.example.com'
Ensembl.port = 3306 # default
Ensembl.username = 'anonymous' # default
Ensembl.password = '' # default
Ensembl.species = 'homo_sapiens' # default
Ensembl.version = 75 # default
Ensembl.hg_version = 37 # default
Contributing
- Fork it ( https://github.com/kmetsalu/ensembl/fork )
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request