gene-thesaurus


Namegene-thesaurus JSON
Version 2.0.0 PyPI version JSON
download
home_page
SummaryGeneThesaurus is a Python package that translates gene aliases and old gene symbols to the current HGNC standard gene symbols.
upload_time2023-11-16 14:11:24
maintainer
docs_urlNone
author
requires_python>=3.8
licenseMIT 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 freezegun idna importlib-metadata iniconfig lexid looseversion packaging pip-tools pluggy pyproject-hooks pytest python-dateutil requests six toml tomli urllib3 wheel zipp
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # GeneThesaurus v2.0.0

GeneThesaurus is a Python package that translates between different gene standards using publicly available data from [HGNC](https://www.genenames.org/).

Presently, GeneThesaurus supports translating:
- gene aliases and old gene symbols to the current HGNC standard gene symbols
- gene symbols to 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() ###
#########################

translated_genes = gt.translate_genes(input, source='symbol', target='ensembl_id')
print(translated_genes)
{'TNFSF2': 'ENSG00000232810', 'ETV6': 'ENSG00000139083'}

```

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "gene-thesaurus",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "",
    "keywords": "genomics,gene,HGNC",
    "author": "",
    "author_email": "Mariya Lysenkova Wiklander <mariya.lysenkova@medsci.uu.se>",
    "download_url": "https://files.pythonhosted.org/packages/7f/07/c359b493b3fc205cfe78eececdf25c2b91429c6453c72b8b7bc42fd9b3a9/gene-thesaurus-2.0.0.tar.gz",
    "platform": null,
    "description": "# GeneThesaurus v2.0.0\n\nGeneThesaurus is a Python package that translates between different gene standards using publicly available data from [HGNC](https://www.genenames.org/).\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\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\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": "2.0.0",
    "project_urls": {
        "Homepage": "https://github.com/Molmed/gene-thesaurus"
    },
    "split_keywords": [
        "genomics",
        "gene",
        "hgnc"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7f07c359b493b3fc205cfe78eececdf25c2b91429c6453c72b8b7bc42fd9b3a9",
                "md5": "92d4fae7b6d94fa02d01e900cc2c661d",
                "sha256": "b87aeb846a473ff3ffd460b51edf5c32b5738f71a1eb109c69dbaa2b3088a2da"
            },
            "downloads": -1,
            "filename": "gene-thesaurus-2.0.0.tar.gz",
            "has_sig": false,
            "md5_digest": "92d4fae7b6d94fa02d01e900cc2c661d",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 5096,
            "upload_time": "2023-11-16T14:11:24",
            "upload_time_iso_8601": "2023-11-16T14:11:24.818593Z",
            "url": "https://files.pythonhosted.org/packages/7f/07/c359b493b3fc205cfe78eececdf25c2b91429c6453c72b8b7bc42fd9b3a9/gene-thesaurus-2.0.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-11-16 14:11:24",
    "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.0.3"
                ]
            ]
        },
        {
            "name": "bumpver",
            "specs": [
                [
                    "==",
                    "2023.1129"
                ]
            ]
        },
        {
            "name": "certifi",
            "specs": [
                [
                    "==",
                    "2023.7.22"
                ]
            ]
        },
        {
            "name": "charset-normalizer",
            "specs": [
                [
                    "==",
                    "3.3.1"
                ]
            ]
        },
        {
            "name": "click",
            "specs": [
                [
                    "==",
                    "8.1.7"
                ]
            ]
        },
        {
            "name": "colorama",
            "specs": [
                [
                    "==",
                    "0.4.6"
                ]
            ]
        },
        {
            "name": "exceptiongroup",
            "specs": [
                [
                    "==",
                    "1.1.3"
                ]
            ]
        },
        {
            "name": "freezegun",
            "specs": [
                [
                    "==",
                    "1.2.2"
                ]
            ]
        },
        {
            "name": "idna",
            "specs": [
                [
                    "==",
                    "3.4"
                ]
            ]
        },
        {
            "name": "importlib-metadata",
            "specs": [
                [
                    "==",
                    "6.8.0"
                ]
            ]
        },
        {
            "name": "iniconfig",
            "specs": [
                [
                    "==",
                    "2.0.0"
                ]
            ]
        },
        {
            "name": "lexid",
            "specs": [
                [
                    "==",
                    "2021.1006"
                ]
            ]
        },
        {
            "name": "looseversion",
            "specs": [
                [
                    "==",
                    "1.3.0"
                ]
            ]
        },
        {
            "name": "packaging",
            "specs": [
                [
                    "==",
                    "23.2"
                ]
            ]
        },
        {
            "name": "pip-tools",
            "specs": [
                [
                    "==",
                    "7.3.0"
                ]
            ]
        },
        {
            "name": "pluggy",
            "specs": [
                [
                    "==",
                    "1.3.0"
                ]
            ]
        },
        {
            "name": "pyproject-hooks",
            "specs": [
                [
                    "==",
                    "1.0.0"
                ]
            ]
        },
        {
            "name": "pytest",
            "specs": [
                [
                    "==",
                    "7.4.3"
                ]
            ]
        },
        {
            "name": "python-dateutil",
            "specs": [
                [
                    "==",
                    "2.8.2"
                ]
            ]
        },
        {
            "name": "requests",
            "specs": [
                [
                    "==",
                    "2.31.0"
                ]
            ]
        },
        {
            "name": "six",
            "specs": [
                [
                    "==",
                    "1.16.0"
                ]
            ]
        },
        {
            "name": "toml",
            "specs": [
                [
                    "==",
                    "0.10.2"
                ]
            ]
        },
        {
            "name": "tomli",
            "specs": [
                [
                    "==",
                    "2.0.1"
                ]
            ]
        },
        {
            "name": "urllib3",
            "specs": [
                [
                    "==",
                    "2.0.7"
                ]
            ]
        },
        {
            "name": "wheel",
            "specs": [
                [
                    "==",
                    "0.41.3"
                ]
            ]
        },
        {
            "name": "zipp",
            "specs": [
                [
                    "==",
                    "3.17.0"
                ]
            ]
        }
    ],
    "lcname": "gene-thesaurus"
}
        
Elapsed time: 0.14720s