The goal is simple, but I cannot figure out a way to make it work in any of the REST endpoints. How can I retrieve the CDS (DNA) corresponding to a Protein ID? Not relevant, but I am working in Python.
There are two approaches I thought would be possible:
- A direct retrieval using the "/sequence/id/" endpoint, with 'cds' as the 'type'.
- Identifying the corresponding transcript id from the protein id, and then using that transcript id in the "/sequence/id/" endpoint. I cannot find a way to identify the corresponding transcript id.
Neither of these approaches have been fruitful. This seems like such a simple/common need that surely I am just unaware of the proper way to get it done.
Any help would be much appreciated!