Module: EnsemblREST::Map
- Defined in:
- lib/ensemblrest/map.rb
Class Method Summary collapse
-
.cdna(id, region, options = {}) ⇒ JSON
Convert from cDNA coordinates to genomic coordinates.
-
.cds(id, region, options = {}) ⇒ JSON
Convert from CDS coordinates to genomic coordinates.
-
.map(region, asm_one, asm_two, species = 'human', options = {}) ⇒ JSON
Convert the co-ordinates of one assembly to another.
-
.translation(id, region, options = {}) ⇒ JSON
Convert from protein (translation) coordinates to genomic coordinates.
Class Method Details
.cdna(id, region, options = {}) ⇒ JSON
Convert from cDNA coordinates to genomic coordinates. Output reflects forward orientation coordinates as returned from the Ensembl API.
23 24 25 |
# File 'lib/ensemblrest/map.rb', line 23 def cdna(id, region, = {}) return EnsemblREST.get("map/cdna/#{id}/#{region}", {format: 'json'}.merge()) end |
.cds(id, region, options = {}) ⇒ JSON
Convert from CDS coordinates to genomic coordinates. Output reflects forward orientation coordinates as returned from the Ensembl API.
33 34 35 |
# File 'lib/ensemblrest/map.rb', line 33 def cds(id, region, = {}) return EnsemblREST.get("map/cds/#{id}/#{region}", {format: 'json'}.merge()) end |
.map(region, asm_one, asm_two, species = 'human', options = {}) ⇒ JSON
Convert the co-ordinates of one assembly to another
45 46 47 |
# File 'lib/ensemblrest/map.rb', line 45 def map(region, asm_one, asm_two, species = 'human', = {}) return EnsemblREST.get("map/#{species}/#{asm_one}/#{region}/#{asm_two}", {format: 'json'}.merge()) end |
.translation(id, region, options = {}) ⇒ JSON
Convert from protein (translation) coordinates to genomic coordinates. Output reflects forward orientation coordinates as returned from the Ensembl API.
55 56 57 |
# File 'lib/ensemblrest/map.rb', line 55 def translation(id, region, = {}) return EnsemblREST.get("map/translation/#{id}/#{region}", {format: 'json'}.merge()) end |