GeneThesaurus v3.2.0
GeneThesaurus is a Python package that translates between different gene standards using publicly available data from HGNC and NIH.
Presently, GeneThesaurus supports translating:
- gene aliases and old gene symbols to the current HGNC standard gene symbols
- gene symbols to ensembl identifiers
- ensembl identifiers to gene symbols
- entrez (NCBI) identifiers to gene symbols or ensembl identifiers
Please get in touch (or consider submitting a pull request to this project) if you need translation between other formats.
Installation
You can install GeneThesaurus with:
pip install gene-thesaurus
Example usage
from gene_thesaurus import GeneThesaurus
gt = GeneThesaurus(data_dir='/tmp')
outdated_gene = 'TNFSF2'
up_to_date_gene = 'ETV6'
fake_gene = 'NOTAREALGENE'
input = [outdated_gene, up_to_date_gene, fake_gene]
#############################
### update_gene_symbols() ###
#############################
updated_genes = gt.update_gene_symbols(input)
print(updated_genes)
# {'TNFSF2': 'TNF'}
#########################
### translate_genes() ###
#########################
# Valid values for source and target are 'symbol', 'ensembl_id' and 'entrez_id'.
translated_genes = gt.translate_genes(input, source='symbol', target='ensembl_id')
print(translated_genes)
{'TNFSF2': 'ENSG00000232810', 'ETV6': 'ENSG00000139083'}
Metadata
Release files for gene-thesaurus 3.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| gene_thesaurus-3.2.0.tar.gz | 9.0 kB | Without provenance | Details for gene_thesaurus-3.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gene_thesaurus-3.2.0-py3-none-any.whl | Python 3 | none | any | Details for gene_thesaurus-3.2.0-py3-none-any.whl |
Total release size: 17.8 kB
Release files / gene_thesaurus-3.2.0.tar.gz
| Download URL | gene_thesaurus-3.2.0.tar.gz |
|---|---|
| Size | 9.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4bb85c46650cde3dea2b1d60ca4065a930756339a8d3ed7a0ea572d02a6095d2
|
|
BLAKE2b-256 checksum How to use checksums |
5f08d2cc5afca95f5bc65fd7534c316549b1b2ee1cac7a04c74dab030a3ed79e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.8.20
|
Release files / gene_thesaurus-3.2.0-py3-none-any.whl
| Download URL | gene_thesaurus-3.2.0-py3-none-any.whl |
|---|---|
| Size | 8.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
252601a5cac0cbffaccd48391eec358d03ce30ab693a5d18372682934a6120c8
|
|
BLAKE2b-256 checksum How to use checksums |
d3bcce2192167efafbe419a1d1dd911f0260cbfa3cad6f576bfe70ef6010705f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.8.20
|
Security for gene-thesaurus 3.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.