# KRAS groups and overall survival in public pancreatic cancer data

In the MSK pancreatic adenocarcinoma cohort, KRAS groups are associated with survival after specimen collection. G12R and the profiled/no-reported-KRAS-mutation group have longer estimated survival than G12D. These are exploratory observational associations; they do not establish a causal effect of the mutation or predict treatment benefit.

## Cohort and endpoint

We selected cBioPortal pdac_msk_2024 (MSK, Nature Medicine 2024) after comparing its metadata with TCGA PanCancer Atlas and QCMG. Its 2,336 patients have one sample each and pancreatic adenocarcinoma labels. The endpoint starts at sample collection, not diagnosis. TCGA's diagnosis-origin endpoint was not pooled with it.

Usable survival records exist for 2,270 patients (1,521 deaths; 749 censored). Sixty-six lack both survival time and status. Multiple or unresolved mutation calls account for 21 patients, summarized descriptively; the five-group inferential set contains 2,249 patients and 1,505 deaths.

## Results

All confidence intervals below are 95%. Medians are unadjusted Kaplan–Meier estimates in months from collection. Hazard ratios (HRs) compare with G12D and adjust for age, sex and diagnosis stage; they are approximate summaries because stage violates the proportional-hazards assumption.

| Group | Patients / deaths | Median survival, months (CI) | Adjusted HR (CI) |
|---|---:|---:|---:|
| G12D | 870 / 630 | 15.5 (14.2–16.9) | 1, reference |
| G12V | 680 / 446 | 17.9 (16.1–19.9) | 0.89 (0.79–1.01) |
| G12R | 339 / 199 | 20.4 (18.0–24.0) | 0.77 (0.65–0.90) |
| Other KRAS | 237 / 152 | 18.0 (15.3–20.5) | 0.86 (0.72–1.02) |
| No reported KRAS mutation | 123 / 78 | 24.0 (19.0–29.8) | 0.64 (0.51–0.82) |
| Multiple/ambiguous | 21 / 16 | 21.0 (11.1–24.6) | Not modeled |

The global five-group log-rank statistic is 18.9062 on 4 degrees of freedom, p=0.0008200. Four comparisons versus G12D were prespecified, with Holm correction: G12R p=0.004787, no reported mutation p=0.004787, G12V p=0.050194 and Other KRAS p=0.067070. There is no basis to declare all mutation groups different from one another. In particular, these are not direct tests of G12R versus G12V.

At 24 months, estimated survival is 31.9% (28.5–35.4%) for G12D, 36.6% (32.5–40.7%) for G12V, 44.2% (38.1–50.2%) for G12R, 36.7% (29.9–43.6%) for Other KRAS, and 49.4% (39.4–58.6%) with no reported mutation. Corresponding numbers still at risk are 189, 155, 89, 57 and 44. These are unadjusted estimates, not adjusted absolute effects. The ambiguous group's 24-month estimate has only four at risk and is explicitly flagged as weakly supported.

Reverse-KM median follow-up is 35.5, 32.7, 27.8, 36.9 and 38.0 months across those five groups. It is not estimable in the small ambiguous group. Sparse late risk sets make long-term curve tails uncertain even when a plotted pointwise confidence band looks narrow.

## Evidence quality and robustness

The age/sex/stage-adjusted model uses 2,246 patients and 1,502 deaths; three top-coded ages (>90) were omitted from continuous-age modeling but retained in descriptive survival estimates. There are eight fitted parameters and about 188 deaths per parameter. No convergence warnings occurred; package deprecation warnings are retained in the model audit.

Rank-transformed Schoenfeld tests and residual plots identify nonproportionality for metastatic stage (p=6.83e-7). KRAS-term tests do not flag clear time dependence (p=0.32–0.86), but that does not prove the whole model is correctly specified. Reported HRs are therefore supportive average associations, not constant effects. Continuous age is modeled linearly on log hazard; this functional form and residual confounding remain limitations.

Prespecified sensitivities additionally considered collection disease status and diagnosis-to-collection interval, primary specimens only, metastatic stage at diagnosis only, exclusion of subthreshold calls, and exclusion of zero-time outcomes. G12R HRs remain about 0.71–0.78 and no-reported-mutation HRs about 0.53–0.70 versus G12D. G12V and Other KRAS show less stable evidence across subsets. These are overlapping observational analyses, not independent validation; their pointwise confidence intervals and Cox p-values are exploratory and not multiplicity-adjusted.

The timing model excludes 22 negative intervals plus the three top-coded ages (2,224 patients, 1,487 deaths). Some remaining intervals are unusually long, including a maximum of 37.8 years, limiting confidence in this covariate. Excluding ten living patients with zero follow-up leaves the Cox coefficients unchanged, as expected because they were censored before any positive-time death.

Missingness is not balanced: 48/731 resectable patients lack survival records, compared with 10/581 borderline/locally advanced and 8/1,024 metastatic patients. Missingness also concentrates in primary specimens (58/1,424 versus 8/912 metastatic specimens). Complete-case outcome analysis could therefore be biased. Independent censoring is assumed, not demonstrable from these records.

Mutation ascertainment matters. Twenty-two clinical subthreshold calls would have been misclassified if absence of a mutation-table row were equated with wild type. One additional unresolved clinical KRAS-MUT record is kept ambiguous. The no-reported-mutation group is confirmed profiled and free of reported clinical/molecular mutation evidence; it can still contain undetected mutations. Other KRAS combines biologically different variants and should not be interpreted as a single mechanism.

## Methods and reproducibility

The group rules and test family were frozen before group survival estimates or associations were examined. Kaplan–Meier confidence bands use the library's log-log method; median intervals invert the survival bands. Risk counts are immediately before each displayed month. Log-rank tests use right-censored outcomes. Cox models use Efron handling of tied deaths, G12D as reference, age per decade, male versus female, and stage indicators versus resectable disease; the metastatic-only model omits invariant stage covariates. No survival imputation, package installation or configuration changes were performed.

The numerical analysis was rerun in a fresh Python namespace from checksum-verified source snapshots; patient assignments, audit counts, Kaplan–Meier, log-rank and Cox results matched. An independent product-limit calculation agrees with lifelines within 3.6e-15. The complete offline pipeline, including CSV export and figure generation, ran successfully in the existing runtime. Figures passed text-overlap and canvas checks and visual inspection. This verifies computational consistency, not primary clinical-record accuracy or causal validity.

Files include source snapshots and provenance, a runnable analysis.py, the frozen specification, package versions, patient-level derived records and exclusions, results, risk tables, missingness and model diagnostics. See README.md inside reproducibility.zip for offline replay. Saved source bytes pin this analysis; current online data may differ.

## Figure captions

survival_figure.png: Kaplan–Meier post-collection survival for six mutually exclusive KRAS groups, with shaded 95% pointwise confidence intervals and numbers at risk immediately before each month. The ambiguous group is descriptive only; curves stop at each group's final observed follow-up. Groups have different case mix. Individual censor marks are omitted for legibility.

model_diagnostics.png: Scaled Schoenfeld residuals for the primary adjusted Cox model (2,246 patients; 1,502 deaths). Gray dots represent deaths; blue lines are unweighted, non-robust LOWESS smooths, and dashed lines mark zero. The metastatic-stage trend supports the proportional-hazards warning. Smooths are diagnostics, not fitted survival effects.

## Sources

[cBioPortal study](https://www.cbioportal.org/study/summary?id=pdac_msk_2024), [public DataHub files](https://github.com/cBioPortal/datahub/tree/master/public/pdac_msk_2024), and the study citation provided in metadata: Varghese, Anna M et al., Nature Medicine 2024, [PMID 39753968](https://pubmed.ncbi.nlm.nih.gov/39753968/). Data retrieved 2026-09-28. Candidate definitions and source-access limitations are detailed in cohort_assessment.md.

The defensible conclusion is evidence of group-associated post-collection survival differences in this selected cohort, strongest for G12R and no reported mutation versus G12D. It is insufficient for mutation-specific treatment decisions or a general population prognosis.
