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.0.0-py3-none-any.whl (72.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: kombinekm-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 72.8 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.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4307f0d3585503a6399a33f59ca213b892383baf482540d5230595c1c01b5a4a
MD5 0170bc27991e76d7282bd5eb36287b88
BLAKE2b-256 a6dce1cf3a2f58f8b0d424e2f5cfc03f2b2ab0f87f216cc1eaa5e15586afebfd

See more details on using hashes here.

Provenance

The following attestation bundles were made for kombinekm-2.0.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