Skip to main content

Converts Entrez Gene Id to UniProt, HGNC ID to Entrez Gene Id, Ensembl gene Transcript Id to Entrez Gene Id

Project description

# PyEntrezId Converts Ensembl Transcript Gene ID to Entrez Gene Id

Example Code 1:

from PyEntrezId import Conversion

EnsemblId = ‘ENST00000407559’ Id = Conversion() EntrezId = Id.convert_ensembl_to_entrez(EnsemblId) print(EntrezId) # Returns a String #########################################################

Example Code 2

from PyEntrezId import Conversion

HGNCID = 9245 # hgncid ca be just the number or ‘HGNC:9425’ Id = Conversion() EntrezId = Id.convert_hgnc_to_entrez(HGNCID) print EntrezID # Returns a dictionary containing Symbol and Entrez Id #########################################################

Example Code 3

from PyEntrezId import Conversion

EntrezID = 39 Id = Conversion() UniProtId = Id.convert_entrez_to_uniprot(EntrezID) print UniProtId # Returns a string #########################################################

Example Code 4

from PyEntrezId import Conversion

UniProtId = ‘Q9BWD1’ Id = Conversion() EntrezID = Id.convert_uniprot_to_entrez(UniProtId) pritn EntrezID # Returns a string ########################################################

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

PyEntrezId-1.4.tar.gz (1.9 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page