I have a list of ensembl gene_ids. I am trying to fetch the coordinates for the list of genes from ensembl API, but I could not figure out.
ENSG00000000938 ENSG00000000971 ENSG00000001036 ENSG00000001084 ENSG00000001167 ENSG00000001460 ENSG00000001461 ENSG00000001497 ENSG00000001561 ENSG00000001617 ENSG00000001626 ENSG00000001629 ENSG00000001630 ENSG00000001631
Can any body help me? I could get it from UCSC Table Browser but I need them from Ensembl.
What have you tried (i.e., show us the code you're using now that's not working)? BTW, is there a reason you want to use the perl API? You could also just use R and simply load the appropriate annotation package.
I do not know much of R. So, I thought of using Perl API, but in the tutorial I could not find any examples to get coordinates and in API, I could not find the function related to fetch coordinates by gene name.
Also, why do you think the coordinates would be different if you're using the same genome build? The only difference between UCSC and Ensembl coordinates is the chromosome name, which is trivial to alter.
I can try this, but as I use iGenomes builds, it would be good if I do some hands on Ensembl databases using their API.