Question: Gene IDs turn into mutiple Ensembl IDs?
0
gravatar for iannos
12 months ago by
iannos0
iannos0 wrote:

Hi!

I am trying to use the MyGene python module to convert Gene IDs into Ensembl IDs. However an issue I noticed was that some Gene IDs turn into multiple Ensembl IDs. Why is this? For example:

A1BG turns into ENSG00000121410 and ENSG00000268895

Here is the code I'm using:

import mygene

mg = mygene.MyGeneInfo()

result = mg.query("A1BG", scopes='symbol', fields=['ensembl'], species="human")

for hit in result["hits"]:
     if "ensembl" in hit and "gene" in hit["ensembl"]:
          print(hit["ensembl"]["gene"])

Thank you!

ensembl python genome • 487 views
ADD COMMENTlink modified 12 months ago • written 12 months ago by iannos0
2
gravatar for Alex Reynolds
12 months ago by
Alex Reynolds29k
Seattle, WA USA
Alex Reynolds29k wrote:

Haplotypes, maybe, after looking at the Ensembl records for those two accessions. Why am I getting different ensembl gene ids for a given gene symbol?

ADD COMMENTlink modified 12 months ago by Emily_Ensembl19k • written 12 months ago by Alex Reynolds29k
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1439 users visited in the last hour