Skip to main content

Prostate Nomograms

A simple implementation of prostate cancer nomograms.

Prostate cancer nomograms are prediction tools designed to help patients and their physicians understand the nature of their prostate cancer, assess risk based on specific characteristics of a patient and his disease, and predict the likely outcomes of treatment. 1

Installation

Latest stable version :

pip install prostate-nomograms

Latest (possibly unstable) version :

pip install git+https://github.com/MaxenceLarose/prostate-cancer-nomograms

Quick usage preview

import pandas as pd

from prostate_nomograms import MskccPreRadicalProstatectomyNomogram, ClassificationOutcome

mskcc_nomogram = MskccPreRadicalProstatectomyNomogram(outcome=ClassificationOutcome.LYMPH_NODE_INVOLVEMENT)

dataframe = pd.read_csv("data.csv")

probability = mskcc_nomogram.predict_proba(dataframe)

Motivation

Nomograms are typically implemented as web-based applications in which a physician must fill in certain boxes using a patient's medical information. Once all the boxes are filled in, the prediction tool can either calculate the probability of several clinical outcomes or calculate a risk score associated with the patient's health status, depending on the type of nomogram. The purpose of this application is to speed up the process for a very large number of patients. Indeed, the statistical models of the nomograms are reproduced in Python which allows to calculate in a few seconds the probabilities and the scores of thousands of patients. The coefficients of the models are read from the web sites, then used for the calculations.

Which nomograms are currently implemented?

Currently, the nomograms of two major centers are implemented, namely :

  1. Memorial Sloan Kettering Cancer Center (MSKCC)
  2. UCSF - CAPRA

The MSKCC nomogram directly gives the probability and risk of different outcomes. The UCSF one gives a CAPRA score, which is then converted to probability using logistic regression or cox regression on patient data.

Note that a custom nomogram is also implemented, i.e. a simple logistic regression or cox regression using arbitrary variables.

Getting started

You can find examples here.

License

This code is provided under the Apache License 2.0.

Citation

@misc{prostate-nomograms,
  title={prostate-nomograms: Prediction tools based on existing prostate cancer nomograms},
  author={Maxence Larose},
  year={2022},
  publisher={Université Laval},
  url={https://github.com/MaxenceLarose/prostate-nomograms},
}

Contact

Maxence Larose, B. Ing., maxence.larose.1@ulaval.ca

Metadata

Release files for prostate-nomograms 0.0.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for prostate-nomograms 0.0.9
File Size Uploaded
prostate-nomograms-0.0.9.tar.gz 18.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for prostate-nomograms 0.0.9
File Interpreter ABI Platform
prostate_nomograms-0.0.9-py3-none-any.whl Python 3 none any Details

Total release size: 46.3 kB

Release files / prostate-nomograms-0.0.9.tar.gz

Download URL prostate-nomograms-0.0.9.tar.gz
Size 18.7 kB
Tags Source
SHA-256 checksum
How to use checksums
5057fcdb3a9cf76a12e93b8d60d099e2efaab51da1159158e4df4841fb1d64ec
BLAKE2b-256 checksum
How to use checksums
ce1c42f7fb4a653a43815264f8d986daa5b0d6be00b97f79144c44ebd2ef6b33
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.2

Release files / prostate_nomograms-0.0.9-py3-none-any.whl

Download URL prostate_nomograms-0.0.9-py3-none-any.whl
Size 27.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1e136c55abfa26b3f5a3740b3a0854cc5c366d3a4246f64b282c341bd1e92619
BLAKE2b-256 checksum
How to use checksums
e8e5c506cf1384be33dd2b86975c93296e3324e45af716a2a75c80281c1884d3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.2

Release history Release notifications | RSS feed

This release

0.0.9 This release

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page