Skip to main content

VICC normalization routines for genes

Project description

Gene Normalizer

image image image Actions status 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,
    "gene": {
        "conceptType": "Gene",
        "id": "normalize.gene.hgnc:1097"
        "primaryCoding": {
            "id": "hgnc:1097",
            "code": "HGNC:1097",
            "system": "https://www.genenames.org/data/gene-symbol-report/#!/hgnc_id/",
        },
        "name": "BRAF",
        "extensions": [
            {
                "name": "aliases",
                "value": [
                    "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.gene.primaryCoding.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


Release history Release notifications | RSS feed

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.11.2.tar.gz (1.2 MB view details)

Uploaded Source

Built Distribution

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

gene_normalizer-0.11.2-py3-none-any.whl (64.9 kB view details)

Uploaded Python 3

File details

Details for the file gene_normalizer-0.11.2.tar.gz.

File metadata

  • Download URL: gene_normalizer-0.11.2.tar.gz
  • Upload date:
  • Size: 1.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for gene_normalizer-0.11.2.tar.gz
Algorithm Hash digest
SHA256 51476d949659b4e64eb8c8d9315c42a23be990a9c6fc95ce8c6b203993d958a3
MD5 5d3124a94ef134f893a6f8cd09adb031
BLAKE2b-256 7f47f794ba2a1a8e9080a4bc84cb123a02cdb370a1e3cfa09252a21f1d8fcf09

See more details on using hashes here.

Provenance

The following attestation bundles were made for gene_normalizer-0.11.2.tar.gz:

Publisher: release.yml on cancervariants/gene-normalization

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file gene_normalizer-0.11.2-py3-none-any.whl.

File metadata

File hashes

Hashes for gene_normalizer-0.11.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0a5cd774c8cfc0ad05b62238ae98615c58c08d5babae5a2e9d3dc9ce850151f9
MD5 7a6aad1f81e05dd8069c70f3c85479cf
BLAKE2b-256 2914dac6958204ecc9240c24a9ae304757ac01a0dec9e9b5e6e9c6eb97958d07

See more details on using hashes here.

Provenance

The following attestation bundles were made for gene_normalizer-0.11.2-py3-none-any.whl:

Publisher: release.yml on cancervariants/gene-normalization

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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