Skip to content

Instantly share code, notes, and snippets.

@hisplan
Created June 10, 2020 10:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hisplan/1792b65a61ce24890964b01f3499e920 to your computer and use it in GitHub Desktop.
Save hisplan/1792b65a61ce24890964b01f3499e920 to your computer and use it in GitHub Desktop.
Ensembl REST Service

Ensembl REST Service

https://rest.ensembl.org/

ID Lookup

https://rest.ensembl.org/documentation/info/lookup

curl -H 'Content-type:application/json' -sS 'https://rest.ensembl.org/lookup/id/ENSG00000237989?' | jq
{
  "description": "long intergenic non-protein coding RNA 1679 [Source:HGNC Symbol;Acc:HGNC:52469]",
  "strand": -1,
  "version": 1,
  "seq_region_name": "21",
  "object_type": "Gene",
  "end": 43362349,
  "id": "ENSG00000237989",
  "species": "homo_sapiens",
  "logic_name": "havana_homo_sapiens",
  "source": "havana",
  "start": 43358147,
  "biotype": "lncRNA",
  "assembly_name": "GRCh38",
  "display_name": "LINC01679",
  "db_type": "core"
}

Get Sequence

https://rest.ensembl.org/documentation/info/sequence_id

curl -H 'Content-type:text/plain' -sS 'https://rest.ensembl.org/sequence/id/ENSG00000157764?'
TTCCCCCAATCCCCTCAGGCTCGGCTGCGCCCGGGGC...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment