Name | gene-thesaurus JSON |
Version |
3.1.0
JSON |
| download |
home_page | None |
Summary | GeneThesaurus is a Python package that translates gene aliases and old gene symbols to the current HGNC standard gene symbols. |
upload_time | 2025-08-12 14:31:52 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.8 |
license | MIT License Copyright (c) 2023 Uppsala University, Department of Medical Sciences, Molecular Precision Medicine Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
keywords |
genomics
gene
hgnc
|
VCS |
 |
bugtrack_url |
|
requirements |
build
bumpver
certifi
charset-normalizer
click
colorama
exceptiongroup
flake8
freezegun
idna
importlib-metadata
iniconfig
lexid
mccabe
numpy
packaging
pandas
pip-tools
pluggy
pycodestyle
pyflakes
pyproject-hooks
pytest
python-dateutil
pytz
requests
six
toml
tomli
typing-extensions
tzdata
urllib3
wheel
zipp
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# GeneThesaurus v3.1.0
GeneThesaurus is a Python package that translates between different gene standards using publicly available data from [HGNC](https://www.genenames.org/) 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'}
```
Raw data
{
"_id": null,
"home_page": null,
"name": "gene-thesaurus",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": null,
"keywords": "genomics, gene, HGNC",
"author": null,
"author_email": "Mariya Lysenkova Wiklander <mariya.lysenkova@medsci.uu.se>",
"download_url": "https://files.pythonhosted.org/packages/9e/56/73fbe99736a9f8ca266bb960fe11b74b85db7a152e4c6ac54c874ce19749/gene_thesaurus-3.1.0.tar.gz",
"platform": null,
"description": "# GeneThesaurus v3.1.0\n\nGeneThesaurus is a Python package that translates between different gene standards using publicly available data from [HGNC](https://www.genenames.org/) and NIH.\n\nPresently, GeneThesaurus supports translating:\n- gene aliases and old gene symbols to the current HGNC standard gene symbols\n- gene symbols to ensembl identifiers\n- ensembl identifiers to gene symbols\n- entrez (NCBI) identifiers to gene symbols or ensembl identifiers\n\nPlease get in touch (or consider submitting a pull request to this project) if you need translation between other formats.\n\n# Installation\n\nYou can install GeneThesaurus with:\n```\npip install gene-thesaurus\n```\n\n# Example usage\n```\nfrom gene_thesaurus import GeneThesaurus\ngt = GeneThesaurus(data_dir='/tmp')\n\noutdated_gene = 'TNFSF2'\nup_to_date_gene = 'ETV6'\nfake_gene = 'NOTAREALGENE'\ninput = [outdated_gene, up_to_date_gene, fake_gene]\n\n#############################\n### update_gene_symbols() ###\n#############################\n\nupdated_genes = gt.update_gene_symbols(input)\nprint(updated_genes)\n# {'TNFSF2': 'TNF'}\n\n#########################\n### translate_genes() ###\n#########################\n\n# Valid values for source and target are 'symbol', 'ensembl_id' and 'entrez_id'.\n\ntranslated_genes = gt.translate_genes(input, source='symbol', target='ensembl_id')\nprint(translated_genes)\n{'TNFSF2': 'ENSG00000232810', 'ETV6': 'ENSG00000139083'}\n\n```\n",
"bugtrack_url": null,
"license": "MIT License Copyright (c) 2023 Uppsala University, Department of Medical Sciences, Molecular Precision Medicine Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ",
"summary": "GeneThesaurus is a Python package that translates gene aliases and old gene symbols to the current HGNC standard gene symbols.",
"version": "3.1.0",
"project_urls": {
"Homepage": "https://github.com/Molmed/gene-thesaurus"
},
"split_keywords": [
"genomics",
" gene",
" hgnc"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "d14e928644c75d3ae094a131ca5ee3a3770a7231252ca4dd8bbc225aebea1b55",
"md5": "6f091de275b2d8cbdfa9d693e794d114",
"sha256": "5adb009a5f14ab42f0f1b29c062048f262eebb603c8dc64dc829f48fc9bb8ac5"
},
"downloads": -1,
"filename": "gene_thesaurus-3.1.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "6f091de275b2d8cbdfa9d693e794d114",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 8746,
"upload_time": "2025-08-12T14:31:51",
"upload_time_iso_8601": "2025-08-12T14:31:51.184250Z",
"url": "https://files.pythonhosted.org/packages/d1/4e/928644c75d3ae094a131ca5ee3a3770a7231252ca4dd8bbc225aebea1b55/gene_thesaurus-3.1.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "9e5673fbe99736a9f8ca266bb960fe11b74b85db7a152e4c6ac54c874ce19749",
"md5": "b60a9cd285339d67930a1e6070d17226",
"sha256": "faf51caf3d76911584f4fcc94c23db0a06c85a6b37852adce5a411fa681aceb1"
},
"downloads": -1,
"filename": "gene_thesaurus-3.1.0.tar.gz",
"has_sig": false,
"md5_digest": "b60a9cd285339d67930a1e6070d17226",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 8892,
"upload_time": "2025-08-12T14:31:52",
"upload_time_iso_8601": "2025-08-12T14:31:52.639426Z",
"url": "https://files.pythonhosted.org/packages/9e/56/73fbe99736a9f8ca266bb960fe11b74b85db7a152e4c6ac54c874ce19749/gene_thesaurus-3.1.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-08-12 14:31:52",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "Molmed",
"github_project": "gene-thesaurus",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [
{
"name": "build",
"specs": [
[
"==",
"1.2.2.post1"
]
]
},
{
"name": "bumpver",
"specs": [
[
"==",
"2024.1130"
]
]
},
{
"name": "certifi",
"specs": [
[
"==",
"2025.4.26"
]
]
},
{
"name": "charset-normalizer",
"specs": [
[
"==",
"3.4.2"
]
]
},
{
"name": "click",
"specs": [
[
"==",
"8.1.8"
]
]
},
{
"name": "colorama",
"specs": [
[
"==",
"0.4.6"
]
]
},
{
"name": "exceptiongroup",
"specs": [
[
"==",
"1.3.0"
]
]
},
{
"name": "flake8",
"specs": [
[
"==",
"7.1.2"
]
]
},
{
"name": "freezegun",
"specs": [
[
"==",
"1.5.1"
]
]
},
{
"name": "idna",
"specs": [
[
"==",
"3.10"
]
]
},
{
"name": "importlib-metadata",
"specs": [
[
"==",
"8.5.0"
]
]
},
{
"name": "iniconfig",
"specs": [
[
"==",
"2.1.0"
]
]
},
{
"name": "lexid",
"specs": [
[
"==",
"2021.1006"
]
]
},
{
"name": "mccabe",
"specs": [
[
"==",
"0.7.0"
]
]
},
{
"name": "numpy",
"specs": [
[
"==",
"1.24.4"
]
]
},
{
"name": "packaging",
"specs": [
[
"==",
"25.0"
]
]
},
{
"name": "pandas",
"specs": [
[
"==",
"2.0.3"
]
]
},
{
"name": "pip-tools",
"specs": [
[
"==",
"7.4.1"
]
]
},
{
"name": "pluggy",
"specs": [
[
"==",
"1.5.0"
]
]
},
{
"name": "pycodestyle",
"specs": [
[
"==",
"2.12.1"
]
]
},
{
"name": "pyflakes",
"specs": [
[
"==",
"3.2.0"
]
]
},
{
"name": "pyproject-hooks",
"specs": [
[
"==",
"1.2.0"
]
]
},
{
"name": "pytest",
"specs": [
[
"==",
"8.3.5"
]
]
},
{
"name": "python-dateutil",
"specs": [
[
"==",
"2.9.0.post0"
]
]
},
{
"name": "pytz",
"specs": [
[
"==",
"2025.2"
]
]
},
{
"name": "requests",
"specs": [
[
"==",
"2.32.3"
]
]
},
{
"name": "six",
"specs": [
[
"==",
"1.17.0"
]
]
},
{
"name": "toml",
"specs": [
[
"==",
"0.10.2"
]
]
},
{
"name": "tomli",
"specs": [
[
"==",
"2.2.1"
]
]
},
{
"name": "typing-extensions",
"specs": [
[
"==",
"4.13.2"
]
]
},
{
"name": "tzdata",
"specs": [
[
"==",
"2025.2"
]
]
},
{
"name": "urllib3",
"specs": [
[
"==",
"2.2.3"
]
]
},
{
"name": "wheel",
"specs": [
[
"==",
"0.45.1"
]
]
},
{
"name": "zipp",
"specs": [
[
"==",
"3.20.2"
]
]
}
],
"lcname": "gene-thesaurus"
}