I asked a similar question before but couldn't achieve the desired solution, so I'll try to be more specific this time.
I managed to use Ensembl's API to get the sequences but in two steps that require calling the API twice for every genes' symbols list: one call to
https://rest.ensembl.org/lookup/symbol/homo_sapiens
from which response I get the genes' IDs, and another to
https://rest.ensembl.org/sequence/id/
to get the sequences for every ID.
I'm looking for a way to do this in a single call (hoping that it's possible). It can be in Linux or in a programming language code (I'm using python).
The answer I was given for my first question was
"You need to use the lookup/symbol endpoint in the Ensembl REST API with the sequence/id endpoint."
I'm not sure I understand it and couldn't get the author's clarification, so eventually I decided to try to get some more answers.
Thanks.
That question was answered by someone who worked at Ensembl. Using Ensembl REST API appears to need two calls. You may be able to do this using
biomaRt
but that will require using R.I had given you a solution using a single command line (not for Ensembl, since there is no equivalent there) that you seem to have ignored: Getting genes' sequences by querying gene symbols/names
Thank you for the reply. I'll answer you in the first question's page.