Module: EnsemblREST::VEP

Defined in:
lib/ensemblrest/vep.rb

Class Method Summary collapse

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', options = {})
  return EnsemblREST.get("vep/#{species}/hgvs/#{hgvs_notation}", {format: 'json'}.merge(options))
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', options = {})
  return EnsemblREST.get("vep/#{species}/id/#{id}", {format: 'json'}.merge(options))
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', options = {})
  return EnsemblREST.post("vep/#{species}/id", {"ids" => ids}, {format: 'json'}.merge(options))
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', options = {})
  return EnsemblREST.get("vep/#{species}/region/#{region}/#{allele}", {format: 'json'}.merge(options))
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', options = {})
  return EnsemblREST.post("vep/#{species}/region", {"variants" => variants}, {format: 'json'}.merge(options))
end