Skip to main content

VICC normalization routines for genes

Project description

Gene Normalizer

PyPI - Python Version tests DOI

Overview

The Gene Normalizer provides tools for resolving ambiguous human gene references to consistently-structured, normalized terms. For gene concepts extracted from NCBI Gene, Ensembl, and HGNC, it designates a CURIE, and provides additional metadata like current and previously-used symbols, aliases, database cross-references and associations, and coordinates.


Live service

Documentation · Installation · Usage · API reference


Install

The Gene Normalizer is available on PyPI:

python3 -m pip install gene-normalizer

See installation instruction in the documentation for a description of installation options and data setup requirements.

Examples

Use the live service to programmatically normalize gene terms, as in the following truncated example:

$ curl 'https://normalize.cancervariants.org/gene/normalize?q=BRAF' | python -m json.tool
{
    "query": "BRAF",
    "match_type": 100,
    "normalized_id": "hgnc:1097",
    "gene": {
        "type": "Gene",
        "id": "normalize.gene.hgnc:1097"
        "label": "BRAF",
        "gene_id": "hgnc:1097",
        "aliases": [
            "BRAF1",
            "B-RAF1",
            "NS7",
            "RAFB1",
            "B-raf",
            "BRAF-1"
        ]
    }
    # ...
}

Or utilize the Python API for fast access:

>>> from gene.database import create_db
>>> from gene.query import QueryHandler
>>> q = QueryHandler(create_db())
>>> result = q.normalize("KRAS")
>>> result.normalized_id
'hgnc:6407'

See the usage and normalization entries in the documentation for more.

Feedback and contributing

We welcome bug reports, feature requests, and code contributions from users and interested collaborators. The documentation contains guidance for submitting feedback and contributing new code.

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-normalizer-0.3.0.dev1.tar.gz (54.1 kB view details)

Uploaded Source

Built Distribution

gene_normalizer-0.3.0.dev1-py3-none-any.whl (63.8 kB view details)

Uploaded Python 3

File details

Details for the file gene-normalizer-0.3.0.dev1.tar.gz.

File metadata

  • Download URL: gene-normalizer-0.3.0.dev1.tar.gz
  • Upload date:
  • Size: 54.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for gene-normalizer-0.3.0.dev1.tar.gz
Algorithm Hash digest
SHA256 4d4acad6c96dc7cf2015de0d758ab63022585a629db2436b54db19b89d4be983
MD5 0e5e3cf60802467bcb9dfb2e0e2539a4
BLAKE2b-256 aef6f6b271b94a3b6db7493eac3e3c0bd9aad7fd84de36bcd4830cd6b84fb80e

See more details on using hashes here.

File details

Details for the file gene_normalizer-0.3.0.dev1-py3-none-any.whl.

File metadata

File hashes

Hashes for gene_normalizer-0.3.0.dev1-py3-none-any.whl
Algorithm Hash digest
SHA256 87215320599cff7bc84a78041d857d626061792de7a049febe5e9482b0cae501
MD5 bc1acbeea566351ddc13a4bbe1e3d5fb
BLAKE2b-256 450ed31e96bf3b14c0f1149de77927c8080088244df25933cdfa731bb8eabd6e

See more details on using hashes here.

Supported by

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