Oncology and pathology analyses for jamovi and R
OncoPath is a jamovi module and R package for oncology and pathology research. It is one of the modules of the ClinicoPath project and adds five analyses under the OncoPath menu in jamovi: patient timelines, tumor burden response, diagnostic test accuracy meta-analysis, regional heterogeneity of an immunohistochemistry (IHC) marker, and pathology interrater reliability.
The results are for research and exploratory description. They are not a substitute for a protocol-specified trial analysis or for clinical judgment.
| Analysis (jamovi menu) | R function | Menu subgroup | What it does |
|---|---|---|---|
| Swimmer Plot | swimmerplot |
Patient Follow-Up Plots | One lane per patient from start and end times (numbers or dates), colored by response; optional censoring status, up to five milestones, event markers and a grouping variable. Reports ORR and DCR with exact CIs, median follow-up (reverse Kaplan-Meier when a censoring status is given) and person-time by best response. |
| Treatment Response: Patient-Level Burden | waterfall |
Patient Follow-Up Plots | Waterfall and spider plots from one tumor burden value per patient (a percent change) or per visit (a raw measurement). Assigns CR/PR/SD/PD with thresholds adapted from RECIST v1.1, measures progression against the nadir, and reports ORR and DCR with exact CIs, group comparisons, time to response and duration of response. |
| Diagnostic Test Meta-Analysis for Pathology | diagnosticmeta |
Meta-Analysis | Pools 2x2 tables (TP, FP, FN, TN) from independent studies: bivariate random-effects model (Reitsma), proportional-hazards SROC model (Holling), heterogeneity, meta-regression on one study-level covariate, Deeks’ funnel-plot test, and forest, SROC and funnel plots. |
| IHC Heterogeneity Analysis | ihcheterogeneity |
IHC Analysis | For one continuous IHC measurement (for example percent positive cells or an H-score) taken in several regions of the same case: how well regions (biopsies, cores, fields) agree with a reference measurement or with one another. Spearman correlation, ICC(2,1) and ICC(3,1), per-case CV, Bland-Altman limits of agreement, equivalence-margin judgments, and optional variance components, sample-size planning and spatial-compartment comparisons. |
| Pathology Interrater Reliability | pathagreement |
Agreement | Categorical and ordinal agreement across two or more pathologists: Cohen’s (unweighted, linear, quadratic weighted), Fleiss’ and Conger’s kappa, Krippendorff’s alpha, Gwet’s AC1/AC2, PABAK, consensus scoring, Usubutun diagnostic style clustering, and independent-reader clinical-cutoff workflows (overall and near-cutoff disagreement, nondiagnostic tracking, paired-modality long-format comparisons, and patient-cluster bootstrap intervals). |
- Treatment Response is not a RECIST v1.1 implementation. It never sees individual lesions, so it cannot sum target lesions, detect a new lesion, judge non-target progression or confirm a response. Its categories and ORR/DCR are unconfirmed and exploratory.
- Swimmer Plot reads the response categories you supply. It shows ORR and DCR only when every response value is a RECIST category (CR, PR, SD, PD or NE).
- IHC Heterogeneity analyzes one marker at a time and measures
regional (sampling) variability within each case. It does not measure
agreement between observers; use Pathology Interrater Reliability
(
pathagreement) for rater agreement or ordinal scoring scales. - Pathology Interrater Reliability evaluates categorical or ordinal rater agreement and fixed selected readers; reader-workflow intervals do not generalize to untested readers, and agreement against a consensus or method comparator reports PPA/NPA rather than disease sensitivity and specificity.
- Diagnostic Test Meta-Analysis expects one 2x2 table per independent study. Several readers, cutoffs or algorithms applied to the same cohort are not independent studies.
- Report the analysis denominator: swimmer response rates include all analyzed patients; waterfall reports evaluable-patient rates and also identifies not-evaluable patients. Neither denominator automatically represents a randomized intention-to-treat population.
- Waterfall DCR is based on best response, with no minimum stable-disease duration. Its response duration is progression-based, censoring at the last measured assessment; there is no separate death input. Time to response is summarized among responders.
- Regional IHC differences include biological and technical variation. A high correlation, an ICC band or a small average bias does not validate interchangeability at a clinical cutoff.
- Kappa values are prevalence-dependent; read observed agreement, Gwet’s AC1/AC2, PABAK, and near-cutoff discordance alongside kappa, and treat percentile cluster bootstrap intervals and the exploratory kappa-balanced score as exploratory.
- Diagnostic pooling does not remove bias, cohort overlap or differences in threshold and case mix. Predictive values use pooled point estimates at an assumed prevalence, without uncertainty propagation.
Version 1.1.6 adds Pathology Interrater Reliability
(pathagreement) and addresses logical, statistical, and edge-case
findings across all five analyses. Re-run saved analyses before using
their results. See NEWS.md for details.
OncoPath needs jamovi 2.7.27 or later.
- When OncoPath is listed in the jamovi library: Modules (top right) → jamovi library → search for OncoPath → Install.
- Until then, a module file (
.jmo) can be side-loaded through Modules → jamovi library → Sideload, when one is attached to a GitHub release.
# install.packages("remotes")
remotes::install_github("sbalci/OncoPath")Each function takes a data frame and column names as strings.
library(OncoPath)
# 1. Swimmer plot: patient timelines with response
data("swimmerplot_sample", package = "OncoPath")
swim <- swimmerplot(
data = swimmerplot_sample,
patientID = "PatientID",
startTime = "StartTime",
endTime = "EndTime",
responseVar = "Response"
)
# 2. Treatment response from percent change (one row per patient)
data("waterfall_percentage_basic", package = "OncoPath")
wf <- waterfall(
data = waterfall_percentage_basic,
patientID = "PatientID",
responseVar = "Response",
inputType = "percentage",
groupVar = "Treatment"
)
# 3. Treatment response from raw measurements (one row per patient per visit)
data("waterfall_raw_longitudinal", package = "OncoPath")
wf_raw <- waterfall(
data = waterfall_raw_longitudinal,
patientID = "PatientID",
responseVar = "Measurement",
timeVar = "Time",
inputType = "raw",
measurementUnit = "mm",
showSpiderPlot = TRUE
)
# 4. Diagnostic test accuracy meta-analysis
data("diagnosticmeta_test_categorical", package = "OncoPath")
dta <- diagnosticmeta(
data = diagnosticmeta_test_categorical,
study = "study",
true_positives = "true_positives",
false_positives = "false_positives",
false_negatives = "false_negatives",
true_negatives = "true_negatives",
covariate = "imaging_modality",
heterogeneity_analysis = TRUE,
meta_regression = TRUE
)
# 5. IHC heterogeneity: four biopsies against a whole-section reference
data("ihcheterogeneity_test", package = "OncoPath")
ihc <- ihcheterogeneity(
data = ihcheterogeneity_test,
wholesection = "wholesection",
biopsy1 = "biopsy1",
biopsy2 = "biopsy2",
biopsy3 = "biopsy3",
biopsy4 = "biopsy4",
spatial_id = "spatial_id"
)
# 6. Pathology interrater reliability: 12 raters and diagnostic style clustering
data("pathagreement_clustering", package = "OncoPath")
pa <- pathagreement(
data = pathagreement_clustering,
vars = LETTERS[1:12],
caseID = "Case_ID",
referenceStandard = "Reference",
kripp = TRUE,
krippMethod = "ordinal",
performClustering = TRUE,
nStyleGroups = 3
)
# 7. Independent-reader clinical-cutoff workflow with patient-cluster bootstrap
data("ihc_reader_reproducibility", package = "OncoPath")
pa_cutoff <- pathagreement(
data = ihc_reader_reproducibility,
readerWorkflow = "numeric_cutoff",
readerScores = c("score1", "score2", "score3"),
clinicalCutoff = "50",
positiveRule = "ge",
nearCutoffWidth = "5",
referenceStandard = "reference",
referencePositive = "Present",
referenceNegative = "Absent",
caseID = "case_id",
readerCluster = "patient_id",
readerBootstrap = TRUE,
bootstrapSamples = 500,
seed = 42
)
# Results are jmvcore objects: print one, or read a table as a data frame
wf$summaryTable$asDFAll example datasets are synthetic. They were generated to demonstrate the analyses and do not come from patients.
In jamovi, open them from the main menu (☰) → Open → Data Library → OncoPath:
| jamovi example | Analysis | Contents |
|---|---|---|
swimmerplot_sample.omv |
Swimmer Plot | 20 patients: start and end times in months, best response, four milestone times and an event column |
waterfall_percentage_basic.omv |
Treatment Response | 20 patients: best percent change from baseline and treatment arm (Drug A / Drug B) |
waterfall_raw_longitudinal.omv |
Treatment Response | 15 patients: tumor measurements at months 0, 2, 4 and 6 |
diagnosticmeta_test_categorical.omv |
Diagnostic Test Meta-Analysis | 20 studies: 2x2 counts, year, a quality score and imaging modality (CT 5, MRI 9, ultrasound 6) |
ihcheterogeneity_test.omv |
IHC Heterogeneity | 50 cases: whole-section reference, four biopsies and a spatial compartment |
pathagreement_clustering.omv |
Pathology Interrater Reliability | 80 endometrial cases: 12 pathologists (A through L) plus reference diagnosis for multi-rater kappa, consensus and style clustering |
ihc_reader_reproducibility.omv |
Pathology Interrater Reliability | 180 specimens from 90 clustered patients: three readers’ numeric scores, ordered grades and binary/indeterminate calls with binary reference |
The R datasets and saved jamovi examples are separate teaching fixtures
and may contain different values and analysis setups; use the output
belonging to the fixture you ran. In R, all seven datasets are available
with data(), together with diagnostic_studies (five 2x2 tables) and
histopathology (a general-purpose clinicopathological data frame from
the ClinicoPath project, not used by an OncoPath analysis).
- Website: https://www.serdarbalci.com/OncoPath/
- ClinicoPath project: https://www.serdarbalci.com/ClinicoPathJamoviModule/
- Source code: https://github.com/sbalci/OncoPath/
- Bug reports and feature requests: https://github.com/sbalci/OncoPath/issues
If you use OncoPath in your research or publications, please cite:
@manual{balci2026oncopath,
title = {OncoPath: Oncology and Pathology Analyses for jamovi},
author = {Serdar Balci},
year = {2026},
note = {R package and jamovi module version 1.1.6},
url = {https://www.serdarbalci.com/OncoPath/}
}OncoPath has no DOI of its own. The ClinicoPath project, from which it is distributed, is archived on Zenodo as 10.5281/zenodo.3997188.
OncoPath is licensed under GPL (>= 2); see the GNU licenses
page. It
imports packages under other licenses, including mada (GPL-2 only),
ggrepel (GPL-3), RColorBrewer (Apache-2.0) and ggswim (MIT). Users
who redistribute OncoPath together with its dependencies should check
that the combination meets their licensing needs.