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
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
46fc96b38f5331646065600341161d97bbb8068404d909297e01fc15ce035f1c
|
|
| MD5 |
ab93b8f6e6896336ea1fb1dc0de3fc1e
|
|
| BLAKE2b-256 |
097fe8bfd32609c5b71ba1b51d6d9436fa1ea114ac4402991501b2b2fb6b2a6d
|
Provenance
The following attestation bundles were made for kombinekm-2.1.0-py3-none-any.whl:
Publisher:
ci-cd.yml on AstroPathJHU/KoMbine
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
kombinekm-2.1.0-py3-none-any.whl -
Subject digest:
46fc96b38f5331646065600341161d97bbb8068404d909297e01fc15ce035f1c - Sigstore transparency entry: 1244530166
- Sigstore integration time:
-
Permalink:
AstroPathJHU/KoMbine@b55451135a6754e041f8d7ab26952e4a3aa77a59 -
Branch / Tag:
refs/tags/v2.1.0 - Owner: https://github.com/AstroPathJHU
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci-cd.yml@b55451135a6754e041f8d7ab26952e4a3aa77a59 -
Trigger Event:
push
-
Statement type: