Module: EnsemblREST::Variation
- Defined in:
- lib/ensemblrest/variation.rb
Class Method Summary collapse
-
.id(id, species = 'human', options = {}) ⇒ JSON
Uses a variation identifier (e.g. rsID) to return the variation features.
-
.post(ids, species = 'human', options = {}) ⇒ JSON
Uses a list of variation identifiers (e.g. rsID) to return the variation features.
Class Method Details
.id(id, species = 'human', options = {}) ⇒ JSON
Uses a variation identifier (e.g. rsID) to return the variation features
23 24 25 |
# File 'lib/ensemblrest/variation.rb', line 23 def id(id, species = 'human', = {}) return EnsemblREST.get("variation/#{species}/#{id}", {format: 'json'}.merge()) end |
.post(ids, species = 'human', options = {}) ⇒ JSON
Uses a list of variation identifiers (e.g. rsID) to return the variation features
33 34 35 |
# File 'lib/ensemblrest/variation.rb', line 33 def post(ids, species = 'human', = {}) return EnsemblREST.post("variation/#{species}", {"ids" => ids}, {format: 'json'}.merge()) end |