Ensembl / ensembl-vep

The Ensembl Variant Effect Predictor predicts the functional effects of genomic variants
https://www.ensembl.org/vep
Apache License 2.0
456 stars 153 forks source link

No protein version from overlap/id/:id end point results #1786

Open XLIU-hub opened 1 week ago

XLIU-hub commented 1 week ago

Describe the issue

Hi, I am using the rest api end point overlap/id/:id to retrieve features (gene -> transcript -> exon -> cds) that overlap with a transcript region. I cannot find version numbers to all the protein identifiers, for example (https://rest.ensembl.org/overlap/id/ENST00000396373?feature=gene;feature=transcript;feature=exon;feature=cds;content-type=text/x-gff3)

Do you think maybe I can get this features info and the protein version info in one go? @pemtaschner Or I can get this protein version from other api endpoints?

Many thnaks!

nakib103 commented 1 week ago

Hello @XLIU-hub ,

Thanks for your query!

You can get the protein version using the lookup/id/:id endpoint, for example -

https://rest.ensembl.org/lookup/id/ENSP00000441463?content-type=application/json
{
  "Parent": "ENST00000545027",
  "length": 88,
  "end": 11840483,
  "version": 1,
  "object_type": "Translation",
  "id": "ENSP00000441463",
  "db_type": "core",
  "start": 11752501,
  "species": "homo_sapiens"
}

Best regards, Nakib