Skip to main content

Converts UniProt, HGNC, and Ensembl Transcript Ids to Entrez Gene Id

Project description

==========
PyEntrezId
==========


Example Code 1
--------------
Converts Ensemble Transcript Gene Id to Entrez Gene Id ::
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
from PyEntrezId import Conversion

EnsemblId = 'ENST00000407559'
Id = Conversion('sampleemail@nih.gov') #include your email address
EntrezId = Id.convert_ensembl_to_entrez(EnsemblId)
print(EntrezId) # Returns a String


Example Code 2
--------------
Converts HGNC ID to Entrez Gene Id ::
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

from PyEntrezId import Conversion

HGNCID = 9245 # hgncid ca be just the number or 'HGNC:9425'
Id = Conversion('sampleemail@nih.gov') #include your email address
EntrezId = Id.convert_hgnc_to_entrez(HGNCID)
print EntrezID # Returns a dictionary containing Symbol and Entrez Id


Example Code 3
--------------
Converts Entrez Gene Id to Uniprot ID ::
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

from PyEntrezId import Conversion

EntrezID = 39
Id = Conversion('sampleemail@nih.gov') #include your email address
UniProtId = Id.convert_entrez_to_uniprot(EntrezID)
print UniProtId # Returns a string


Example Code 4
--------------
Converts Uniprot Id to Entrez Gene Id ::
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

from PyEntrezId import Conversion

UniProtId = 'Q9BWD1'
Id = Conversion('sampleemail@nih.gov') #include your email address
EntrezID = Id.convert_uniprot_to_entrez(UniProtId)
print EntrezID # Returns a string


Example Code 5
--------------
Converts Accession Id to Taxonomy Id ::
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

from PyEntrezId import Conversion

AccessionId = 'AC131209'
Id = Conversion('sampleemail@nih.gov') #include your email address
TaxID = Id.convert_accesion_to_taxid(AccesionId)
print TaxID # 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.6.tar.gz (2.3 kB view details)

Uploaded Source

File details

Details for the file PyEntrezId-1.4.6.tar.gz.

File metadata

  • Download URL: PyEntrezId-1.4.6.tar.gz
  • Upload date:
  • Size: 2.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for PyEntrezId-1.4.6.tar.gz
Algorithm Hash digest
SHA256 a66c43a5d2b10b47d8715e6eaf2cae2ca444e639f88934e4ca05866b99f2225b
MD5 1a5b332741ab69169b0cc8a6ff02259a
BLAKE2b-256 fa567d382be9181c65a290186fe05984acd2341f4ade126e07b8383a1a436eb0

See more details on using hashes here.

Provenance

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