Skip to main content

KoMbine is a software package for propagating statistical and systematic uncertainties in a biomedical analysis. KoMbine provides Kaplan-Meier curve analysis functionality, while ROC Picker provides similar functionality for ROC curves.

Project description

ROC Picker and KoMbine

ROC Picker logo

Welcome!

ROC Picker is a software package for propagating statistical and systematic uncertainties in a biomedical analysis using ROC curves.

KoMbine provides Kaplan-Meier curve analysis functionality with uncertainty propagation using likelihood-based methods.

Full documentation

For detailed information and examples, please see the documentation. The source is in the docs/ folder, and you can download the output (latest version from the main branch, compiled by Github Actions) from this link for KoMbine and from this link for ROC Picker.

Quick start

To install ROC Picker and KoMbine, clone the repository, enter its folder, and do

pip install .

Here is a simple ROC Picker example:

from roc_picker.discrete import DiscreteROC
responders = [1, 1, 2, 3, 9, 10]
nonresponders = [2, 3, 3, 4, 6, 8, 9, 10, 10, 10, 10, 11, 12, 13]
DiscreteROC(
  responders=responders,
  nonresponders=nonresponders,
).make_plots(
  npoints=100,
  yupperlim=20,
  #if you want to save the output plots
  filenames=("roc.pdf", "auc_scan.pdf", "roc_errors.pdf"),
  #if you're running in a jupyter notebook or similar, and want to see the plots
  show=True,
)

Here is a simple KoMbine example:

from kombine.datacard import Datacard
import pathlib

# Load a datacard with Kaplan-Meier data
datacardfile = pathlib.Path("test/kombine/datacards/simple_examples/simple_km_few_deaths.txt")
datacard = Datacard.parse_datacard(datacardfile)

# Create Kaplan-Meier likelihood curves for low and high parameter groups
kml_low = datacard.km_likelihood(parameter_min=-float('inf'), parameter_max=0.45)
kml_high = datacard.km_likelihood(parameter_min=0.45, parameter_max=float('inf'))

# Plot the results
kml_low.plot()
kml_high.plot()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

kombinekm-2.1.0-py3-none-any.whl (92.3 kB view details)

Uploaded Python 3

File details

Details for the file kombinekm-2.1.0-py3-none-any.whl.

File metadata

  • Download URL: kombinekm-2.1.0-py3-none-any.whl
  • Upload date:
  • Size: 92.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for kombinekm-2.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 46fc96b38f5331646065600341161d97bbb8068404d909297e01fc15ce035f1c
MD5 ab93b8f6e6896336ea1fb1dc0de3fc1e
BLAKE2b-256 097fe8bfd32609c5b71ba1b51d6d9436fa1ea114ac4402991501b2b2fb6b2a6d

See more details on using hashes here.

Provenance

The following attestation bundles were made for kombinekm-2.1.0-py3-none-any.whl:

Publisher: ci-cd.yml on AstroPathJHU/KoMbine

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