Skip to main content

GeneThesaurus is a Python package that translates gene aliases and old gene symbols to the current HGNC standard gene symbols.

Project description

GeneThesaurus v1.0.2

GeneThesaurus is a Python package that translates gene aliases and old gene symbols to the current HGNC standard gene symbols.

Installation

You can install GeneThesaurus with:

pip install gene-thesaurus

Example Usage

GeneThesaurus takes a list of gene names and returns a list where all possible values are updated to the latest HGNC standard gene symbols.

By default, if a gene name cannot be found, the original gene name is used. If 'nullify_missing' is set to True, these missing genes will be set to None instead.

Default example

import gene_thesaurus

genes = gene_thesaurus.translate_genes(['TNFSF2', 'ERBB1', 'VPF', 'ZSCAN5CP', 'MISSING_GENE'], data_dir='/tmp')

print(genes)
# ['TNF', 'EGFR', 'VEGFA', 'ZSCAN5C', 'MISSING_GENE']

Example with 'nullify_missing'

import gene_thesaurus

genes = gene_thesaurus.translate_genes(['TNFSF2', 'ERBB1', 'VPF', 'ZSCAN5CP', 'MISSING_GENE'], data_dir='/tmp', nullify_missing=True)

print(genes)
# ['TNF', 'EGFR', 'VEGFA', 'ZSCAN5C', None]

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

gene-thesaurus-1.0.2.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gene_thesaurus-1.0.2-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file gene-thesaurus-1.0.2.tar.gz.

File metadata

  • Download URL: gene-thesaurus-1.0.2.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.18

File hashes

Hashes for gene-thesaurus-1.0.2.tar.gz
Algorithm Hash digest
SHA256 0035d25718f1dd36c7b2863d8a0ec14b1026360d63a49b663d83e214949f0722
MD5 1096330f538c37ae464b3f4ab10bfe06
BLAKE2b-256 d07a5aeab99cb33aa42033167eb2d352ae9921a8cccff0ce0d25b243be3255a1

See more details on using hashes here.

File details

Details for the file gene_thesaurus-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: gene_thesaurus-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 4.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.18

File hashes

Hashes for gene_thesaurus-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e59a9b25183bedbb1d68f72649f2cbb587e745e9e4d51d87d5bded3270bed5ca
MD5 84fcf67cf2a233b94efd50e23a983084
BLAKE2b-256 c846656ff37efae639f30a75603cc930d6a95e40f5a00dcdc56ec3f2b2b610ff

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page