Converts UniProt, HGNC, and Ensembl Transcript Ids to Entrez Gene Id. Also, converts accession number to Taxonomy id
Project description
Python package to convert between various gene or protein IDs
Quick Start
$ pip install --upgrade pyEntrezId
Examples
Convert 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
Convert HGNC ID to Entrez Gene Id
from PyEntrezId import Conversion
HGNCID = 9245 # HGNCID can 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
Convert 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
Convert 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
Convert 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
Contributing
Contributions to this library are always welcome and highly encouraged.
See CONTRIBUTING for more information on how to get started.
License
The MIT License (MIT) - See LICENSE for more information.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file PyEntrezId-1.5.4.tar.gz.
File metadata
- Download URL: PyEntrezId-1.5.4.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2612fcfa252e7668529b51974c8a3ca541daf4a45208f598a1094e77e8beec44
|
|
| MD5 |
e8fa29c5ee9d0b48954b4a3c0ccdd4ab
|
|
| BLAKE2b-256 |
b99d5b75441548bab89090eee072f9576312cb46e067059710f9adf32138da3f
|