Question: Gene IDs turn into mutiple Ensembl IDs?
0
gravatar for iannos
21 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 • 897 views
ADD COMMENTlink modified 21 months ago • written 21 months ago by iannos0
2
gravatar for Alex Reynolds
21 months ago by
Alex Reynolds30k
Seattle, WA USA
Alex Reynolds30k 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 21 months ago by Emily_Ensembl21k • written 21 months ago by Alex Reynolds30k
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: 641 users visited in the last hour