Evaluate cfDNA fragmentomics features for ctDNA detection
Project description
kreview
Advanced cfDNA Fragmentomics Core Evaluation Engine
🧬 Overview
kreview is a production-grade, notebook-first (nbdev) evaluation engine designed for high-throughput cancer liquid biopsy fragmentomics feature analysis. Developed at Memorial Sloan Kettering (MSKCC), it processes cohorts containing tens of thousands of samples using an embedded DuckDB query engine with chunked I/O and automatic retry logic.
🚀 Features
- 5-Tier ctDNA Taxonomy: MSK-IMPACT paired-inference to label
True ctDNA+,Possible ctDNA+,Possible ctDNA−,Healthy Normal, andInsufficient Data. - DuckDB Dynamic Data Lake: In-memory
read_parquetbindings with chunked I/O and exponential backoff retry. Builds a merged SQL-queryablekreview_lake.duckdbon demand. - Multi-Model Evaluation: Random Forest, XGBoost, and Logistic Regression with Stratified K-Fold CV, SHAP explainability, and subgroup analysis.
- Interactive Dashboards: Plotly-native HTML reports with ROC curves, violin plots, SHAP beeswarm/waterfall, and per-cancer-type sensitivity tables.
- 26 Built-In Evaluators: Modular extractors covering fragment sizes (FSC, FSD, FSR), nucleosome protection (WPS, TFBS), cleavage motifs (EndMotif, BreakPointMotif), chromatin accessibility (ATAC), motif divergence (MDS), and orientation (OCF).
⚙️ Quick Start
Installation
[!IMPORTANT] Quarto is strictly required for programmatic dashboard generation. Because
quarto-cliwrapper packages are unreliable across Python environments,kreviewassumes the Quarto executable is installed dynamically on your OS or container.
Option 1: Docker (Recommended "Batteries-Included" Method)
The easiest way to run kreview without managing external dependencies is to use our pre-built Docker container (hosted on GHCR). It natively ships with Python 3.12, all ML libraries, and the underlying quarto linux binaries configured flawlessly:
docker pull ghcr.io/msk-access/kreview:latest
docker run -v /your/data:/data ghcr.io/msk-access/kreview:latest \
kreview run --cancer-samplesheet /data/cancer.csv ...
Option 2: Local Install (Pip)
If you install via pip, you must separately install Quarto via your OS manager:
- Install Quarto: Follow the official Quarto Installation Guide (e.g.
brew install quartoon macOS). - Install kreview:
git clone https://github.com/msk-access/kreview.git
cd kreview
pip install -e .
Running the Pipeline
PYTHONUNBUFFERED=1 kreview run \
--cancer-samplesheet "/path/to/cancer/samplesheet.csv" \
--healthy-xs1-samplesheet "/path/to/healthy/xs1/samplesheet.csv" \
--healthy-xs2-samplesheet "/path/to/healthy/xs2/samplesheet.csv" \
--cbioportal-dir "/path/to/cBioPortal_MAF_CNA_SV/" \
--krewlyzer-dir "/path/to/unified_krewlyzer_results" \
--output output/ \
--workers 4 \
--export-duckdb
Dashboard Access
Once finished, open the generated HTML reports:
open output/reports/ATAC_dashboard.html
🏗️ nbdev Architecture
This project operates as an nbdev repo. Do not edit .py scripts manually in kreview/. Build natively inside Jupyter notebooks within nbs/ and trigger:
nbdev-export
📚 Resources
- Documentation — Full user and developer guide
- Contributing — How to contribute
- Changelog — Version history
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 Distribution
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 kreview-0.0.6.tar.gz.
File metadata
- Download URL: kreview-0.0.6.tar.gz
- Upload date:
- Size: 67.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
51c16fb1d36116286c8604bdef0b5dcbf4583e9abd81aa4eee7955a957936b89
|
|
| MD5 |
2d28b67e8301d3b3ecbfb29bc268ddcc
|
|
| BLAKE2b-256 |
04d69f63df95a5d71cc4fb1e59910c78df0aaebca431608b5a0c9f6107e4287e
|
Provenance
The following attestation bundles were made for kreview-0.0.6.tar.gz:
Publisher:
release.yml on msk-access/kreview
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
kreview-0.0.6.tar.gz -
Subject digest:
51c16fb1d36116286c8604bdef0b5dcbf4583e9abd81aa4eee7955a957936b89 - Sigstore transparency entry: 1273747617
- Sigstore integration time:
-
Permalink:
msk-access/kreview@55a6e2f668507d84930717bfa8bf3cebf93a6aff -
Branch / Tag:
refs/tags/v0.0.6 - Owner: https://github.com/msk-access
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@55a6e2f668507d84930717bfa8bf3cebf93a6aff -
Trigger Event:
push
-
Statement type:
File details
Details for the file kreview-0.0.6-py3-none-any.whl.
File metadata
- Download URL: kreview-0.0.6-py3-none-any.whl
- Upload date:
- Size: 82.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e910b5a5530b637a872e0e3d42d6eba77d94190a29d30b262e2af54ec1952db0
|
|
| MD5 |
26c35c626641268f0561e25b877e1602
|
|
| BLAKE2b-256 |
c7c8d28e505c5ab31b4c5c3cf61624b565f8fca86e7e0f4d476b6a534300790f
|
Provenance
The following attestation bundles were made for kreview-0.0.6-py3-none-any.whl:
Publisher:
release.yml on msk-access/kreview
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
kreview-0.0.6-py3-none-any.whl -
Subject digest:
e910b5a5530b637a872e0e3d42d6eba77d94190a29d30b262e2af54ec1952db0 - Sigstore transparency entry: 1273747708
- Sigstore integration time:
-
Permalink:
msk-access/kreview@55a6e2f668507d84930717bfa8bf3cebf93a6aff -
Branch / Tag:
refs/tags/v0.0.6 - Owner: https://github.com/msk-access
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@55a6e2f668507d84930717bfa8bf3cebf93a6aff -
Trigger Event:
push
-
Statement type: