Four transcriptomic scores for lung adenocarcinoma in one package: a 10-gene B-cell infiltration score, a 20-gene hypoxia score, a metabolic composite (glycolysis + OXPHOS + hypoxia) and the usual immune signatures used for checkpoint-blockade response (GEP18, T-effector, cytolytic, checkpoint). Every score is the mean z-score of its panel genes, so the arithmetic is easy to audit.
pip install -e ".[dev]"
luad-scores list
luad-scores score --score bcell --input data/synthetic/expr.csv --out bcell.json
luad-scores survival --input data/synthetic/expr.csv \
--clinical data/synthetic/clinical.csv --score bcell --out survival.jsonpython -m luad_scores ... works the same way. Expression input is samples x
genes; use --transpose when genes are in rows. Survival output contains a Cox
model for the continuous score and a median-split Kaplan–Meier comparison.
| Name | Panel | Direction |
|---|---|---|
bcell |
CD19, MS4A1, CD79A/B, CD22, BLK, TNFRSF13C, FCRL5, PAX5, BANK1 | protective |
hypoxia |
20-gene panel from the original test card | adverse |
metabolic |
glycolysis + OXPHOS + hypoxia (composite) | adverse |
immuno |
GEP18, T-effector, cytolytic, B-cell, checkpoint, immune-hot | predictive |
These are the original cohort results. The JSON files are committed under
results/; a flat table is in results/real_metrics.csv.
| Score | Cohort | Result |
|---|---|---|
| B-cell | TCGA-LUAD, Cox (age + physiotype) | HR 0.78, p = 0.0035 |
| B-cell | 4-cohort random effects | HR 0.84 [0.77–0.92], p = 8·10⁻⁵ |
| Hypoxia | TCGA-LUAD, Cox (age + stage) | HR 2.52 [1.68–3.79], p = 9·10⁻⁶ |
| Hypoxia | GSE72094 | HR 3.18 [1.92–5.28], p = 7.3·10⁻⁶ |
| Hypoxia | 3-cohort random effects | HR 1.85 [1.09–3.15], p = 0.023 |
| Metabolic | TCGA-LUAD | HR 1.45 [1.20–1.74], p = 9.2·10⁻⁵ |
| Metabolic | 4-cohort random effects | HR 1.46 [1.31–1.63], I² = 0 |
| Immuno | GSE176307 response (TMB + T-effector) | AUC 0.800 |
| Immuno | GSE176307, GEP18 on treatment | HR 0.64 [0.45–0.92], p = 0.015 |
The synthetic cohort in data/synthetic/ is a contract test, not a benchmark:
80 samples, B-cell Cox HR 0.32, log-rank p = 1.1·10⁻⁴.
Real TCGA/GEO matrices are not redistributed. data/README.md has accessions,
formats and the expected preprocessing. The original topo-stress workspace is
needed to recompute the historical pipeline end to end.
Two honest gaps:
- metabolic panels are documented proxies for the MSigDB Hallmark glycolysis/OXPHOS sets used in the original composite;
- external validation is uneven: hypoxia is significant in 2 of 3 GEO cohorts, the B-cell gene-level transfer only in 1 of 3. The module-level cross-platform meta-analysis is the stronger result.
The data are retrospective, there is no prospective or clinical validation, and the scores are prognostic/predictive research tools only.
Research use only. Not a medical device. Not for clinical decision-making.
pytest python scripts/run_all.py
run_all.py writes the synthetic score table, survival summary, a KM figure and
results/versions.json. CI runs ruff and pytest with a 70% coverage floor on
Python 3.10–3.12. Per-score background is in docs/scores/.
MIT licence, see LICENSE.