Module: EnsemblREST::VEP
- Defined in:
- lib/ensemblrest/vep.rb
Class Method Summary collapse
-
.hgvs_get(hgvs_notation, species = 'human', options = {}) ⇒ JSON
Fetch variant consequences based on a HGVS notation.
-
.id_get(id, species = 'human', options = {}) ⇒ JSON
Fetch variant consequences based on a variation identifier.
-
.id_post(ids, species = 'human', options = {}) ⇒ JSON
Fetch variant consequences for multiple ids.
-
.region_get(allele, region, species = 'human', options = {}) ⇒ JSON
Fetch variant consequences.
-
.region_post(variants, species = 'human', options = {}) ⇒ JSON
Fetch variant consequences for multiple regions.
Class Method Details
.hgvs_get(hgvs_notation, species = 'human', options = {}) ⇒ JSON
Fetch variant consequences based on a HGVS notation
45 46 47 |
# File 'lib/ensemblrest/vep.rb', line 45 def hgvs_get(hgvs_notation, species = 'human', = {}) return EnsemblREST.get("vep/#{species}/hgvs/#{hgvs_notation}", {format: 'json'}.merge()) end |
.id_get(id, species = 'human', options = {}) ⇒ JSON
Fetch variant consequences based on a variation identifier
35 36 37 |
# File 'lib/ensemblrest/vep.rb', line 35 def id_get(id, species = 'human', = {}) return EnsemblREST.get("vep/#{species}/id/#{id}", {format: 'json'}.merge()) end |
.id_post(ids, species = 'human', options = {}) ⇒ JSON
Fetch variant consequences for multiple ids
55 56 57 |
# File 'lib/ensemblrest/vep.rb', line 55 def id_post(ids, species = 'human', = {}) return EnsemblREST.post("vep/#{species}/id", {"ids" => ids}, {format: 'json'}.merge()) end |
.region_get(allele, region, species = 'human', options = {}) ⇒ JSON
Fetch variant consequences
25 26 27 |
# File 'lib/ensemblrest/vep.rb', line 25 def region_get(allele, region, species = 'human', = {}) return EnsemblREST.get("vep/#{species}/region/#{region}/#{allele}", {format: 'json'}.merge()) end |
.region_post(variants, species = 'human', options = {}) ⇒ JSON
Fetch variant consequences for multiple regions
65 66 67 |
# File 'lib/ensemblrest/vep.rb', line 65 def region_post(variants, species = 'human', = {}) return EnsemblREST.post("vep/#{species}/region", {"variants" => variants}, {format: 'json'}.merge()) end |