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",
        "primaryCoding": {
            "id": "ncit:C34803",
            "code": "C34803",
            "system": "https://ncit.nci.nih.gov/ncitbrowser/ConceptReport.jsp?dictionary=NCI_Thesaurus&code=",
        },
        "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.primaryCoding.id
'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.11.2.tar.gz (318.2 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.11.2-py3-none-any.whl (56.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: disease_normalizer-0.11.2.tar.gz
  • Upload date:
  • Size: 318.2 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.11.2.tar.gz
Algorithm Hash digest
SHA256 c35a757a6b0d2e48f107b37a3824ffe94a2cfb1c41f0e792af8b8d07abcd75f2
MD5 c73fe70922a2e6999ee79f1017585371
BLAKE2b-256 3c5fa5605dffcaac8fe0e39638fabe3f671f08dbfe3b7eb88da3143705501a4e

See more details on using hashes here.

Provenance

The following attestation bundles were made for disease_normalizer-0.11.2.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.11.2-py3-none-any.whl.

File metadata

File hashes

Hashes for disease_normalizer-0.11.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e1eb15406a1699307f13f06b110f10f3a5190280a33c40092069e0568f3f62a7
MD5 77f564724cc1d6fe0530223f333a40f2
BLAKE2b-256 a8b199f8cfd1518b1d5741ae0b5881995a57979c3bfbf13aaaecd4554c4ff537

See more details on using hashes here.

Provenance

The following attestation bundles were made for disease_normalizer-0.11.2-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