Skip to main content

VICC normalization routines for diseases

Project description

Disease Normalizer

image image image Actions status

The Disease Normalizer resolves ambiguous references and descriptions of human diseases to consistently-structured, normalized terms. For concepts extracted from NCIt, Mondo Disease Ontology, The Human Disease Ontology, OMIM, and OncoTree, it designates a CURIE, and provides additional metadata like aliases and cross-references.


Documentation · Installation · API reference


Installation

The Disease Normalizer is available via PyPI:

python3 -m pip install disease-normalizer

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


Examples

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

$ curl -s 'https://normalize.cancervariants.org/disease/normalize?q=liver%20cancer' | python -m json.tool
{
    "query": "liver cancer",
    "warnings": null,
    "match_type": 80,
    "disease": {
        "conceptType": "Disease",
        "primaryCode": "ncit:C34803",
        "id": "normalize.disease:liver%20cancer",
        "name": "Primary Malignant Liver Neoplasm",
        # ...
    }
}

Or utilize the Python API for fast local access:

>>> from disease.query import QueryHandler
>>> from disease.database import create_db
>>> q = QueryHandler(create_db())
>>> result = q.normalize("NSCLC")
>>> result.disease.primaryCode.root
'ncit:C2926'

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

disease_normalizer-0.10.0.tar.gz (318.4 kB view details)

Uploaded Source

Built Distribution

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

disease_normalizer-0.10.0-py3-none-any.whl (56.0 kB view details)

Uploaded Python 3

File details

Details for the file disease_normalizer-0.10.0.tar.gz.

File metadata

  • Download URL: disease_normalizer-0.10.0.tar.gz
  • Upload date:
  • Size: 318.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for disease_normalizer-0.10.0.tar.gz
Algorithm Hash digest
SHA256 3942c5c10b8edfa5e309e697c44fe6648d3b62c3d4955693382be5b7f704bf82
MD5 6ae0e407f414aa259d24bd4267341766
BLAKE2b-256 e321c4514ab8ba8db3262840055ffd21cba0d051e2d5bfe8422b98d59cb355ba

See more details on using hashes here.

Provenance

The following attestation bundles were made for disease_normalizer-0.10.0.tar.gz:

Publisher: release.yml on cancervariants/disease-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 disease_normalizer-0.10.0-py3-none-any.whl.

File metadata

File hashes

Hashes for disease_normalizer-0.10.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ca0465abb4e2b2c4ee4282640a8c65717614997f2a0214a4b2beb2a4ae2b20d8
MD5 cc190945d2b6250125f7b1db1dbcd80f
BLAKE2b-256 898d1561e46679d86515ee6190582555ef28c47d179c881dcdcc96a98342edb2

See more details on using hashes here.

Provenance

The following attestation bundles were made for disease_normalizer-0.10.0-py3-none-any.whl:

Publisher: release.yml on cancervariants/disease-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