Magali,
Thank you for the response. Because we are generally working within one protein family, and limited numbers of genes, using the Ensembl stable gene id should work in this instance. Thank you for providing the 'lookup' endpoint approach as well.
A suggestion for future use would be that any record that contains an Ensembl protein id or transcript id should also have the other as an additional attribute, as well as the parent Ensembl gene id. This would make every record accessible from all directions. Perhaps that is a bit of a tall order though?
Thanks again!
What protein ID do you have? Can you please give an example?
[edited]
Hi Bert!
Taking as input an Ensembl protein id 'ENSP00000430656' I would like to retrieve the corresponding transcript id, which is 'ENST00000523953'.
From there the goal is to retrieve the CDS which can be achieved by the '/Sequence/ID/' endpoint in the following way: 'http://rest.ensembl.org/sequence/id/ENST00000523953?content-type=application/json;type=cds'.
I just have not been able to find any way to retrieve a corresponding Transcript id using just the Protein id as input.
The best solution so far involves using the Gene id in an 'Overlap' query as such:
'http://rest.ensembl.org/overlap/id/ENSG00000133742?feature=gene;content-type=application/json;feature=cds'
This is the only location I have identified where both Protein id and corresponding Transcript id exist in the same entry.
-Harlan
I forwarded your question to one of the experts, i.e. Magali from the Ensembl team. Please see her answer below.