Skip to content

Which molecular signature predicts the outcome?

Point it at a cohort with an outcome. It reads the design off the sample records, keeps the technical variables in the model, and repeats every selection inside cross-validation, so a signature is judged on patients it never saw. Here, GSE78220: 28 libraries of melanoma biopsies from patients treated with anti-PD-1.

localhost · Inflexa Pro

Question: Which genes and pathways distinguish responders to pembrolizumab in GSE78220?

Plan: Anti-PD-1 responder DE and GSEA. Steps: Cohort assembly, Responder DE, Immune and stromal mix, GSEA on hallmark sets, Survival association.

Findings: Gene selection repeats inside every fold; Recorded sex is checked against the transcriptome.

Sessions built from public datasets: GSE78220, the Hugo et al. anti-PD-1 cohort.

  • 28 libraries in one FPKM table
  • 26 patients with a biopsy before treatment
  • 14 vs 12 responders against progressors, by patient
  • 7 stranded libraries, all five from VIC among them
  • 2 technical variables on record, site and strandedness
The plan

How the analysis runs.

Each step is one node of the plan beside it, approved before anything ran.

Anti-PD-1 responder DE and GSEA

bulk RNA-seq · 5 steps on 4 tracks

Contrast responders with non-responders at baseline, then test whether any score survives cross-validation.

  • T1S1Cohort assembly, completed, depends on no step
  • T1S2Responder DE, completed, depends on T1S1
  • T4S1Immune and stromal mix, completed, depends on T1S1
  • T2S1GSEA on hallmark sets, completed, depends on T1S2
  • T5S1Survival association, completed, depends on T1S2
Approved by you
  1. 01

    T1S1

    Cohort assembly

    It reads the design off GEO's sample records and keeps one pre-treatment library per patient: Pt27's two runs count once, and Pt16, biopsied on treatment, stays out. Each patient's recorded sex is checked against their sex-linked genes before their labels are used.

  2. 02

    T1S2

    Responder DE

    GEO deposits FPKM, so the contrast is limma-trend on log2(FPKM + 1), with strandedness and the clinical covariates in the design: 14 responders, complete or partial, against 12 with progressive disease.

  3. 03

    T4S1

    Immune and stromal mix

    Marker-based immune and stromal scores for every biopsy, read as scores beside the contrast, since marker genes track cell proportions only loosely.

  4. 04

    T2S1

    GSEA on hallmark sets

    Ranked enrichment on the MSigDB Hallmark sets from the contrast's moderated statistics, each set with its threshold stated.

  5. 05

    T5S1

    Survival association

    Any survival score is refit inside cross-validation with its gene selection repeated in every fold, so no fold is judged on the genes it helped choose.

The evidence

Three chapters from the GEO record and the plan.

No run on GSE78220 is published. Each chapter is one thing the GEO record shows or one check the plan runs, the decision it leads to, and the figure behind it with its source.

01

GEO records 28 libraries, and 26 patients biopsied before treatment.

Hugo and colleagues profiled melanoma biopsies from patients treated with anti-PD-1 (PMID 26997480), and GEO deposits one FPKM table of 28 libraries. Pt27 contributes two runs and Pt16 was biopsied on treatment, so one library per patient before treatment leaves 26 patients.

The decision

Contrast patients, one pre-treatment biopsy each: 14 responders, complete or partial, against 12 with progressive disease.

Response by library and by patient GEO GSE78220 sample records, read 2026-10-26
Values in the chart
UnitComplete or partial responseProgressive diseaseTotal
Libraries151328
Patients before treatment141226

Best response as each sample's GEO record gives it. The patient row keeps one pre-treatment library per patient: Pt27A and Pt27B are one patient, and Pt16's biopsy was taken on treatment.

02

Two technical variables are on record, and they nearly coincide.

Each GEO record names its study site and its library protocol. All five VIC libraries are stranded, and so are Pt27's two runs at UCLA; the other 21 UCLA libraries are unstranded. A cluster that follows one variable follows the other.

The decision

Check the principal components by site and by strandedness, and keep strandedness in the design.

Libraries by site and library type GEO GSE78220 sample records, read 2026-10-26
Values in the chart
SiteUnstrandedStrandedTotal
UCLA21223
VIC055

Study site and library protocol as each sample's GEO record gives them. Seven libraries are stranded: all five from VIC, and Pt27A and Pt27B at UCLA.

03

Every selection is repeated inside the folds, and the labels are checked first.

No run on GSE78220 is published, so this chapter is the plan's checks and what each guards against. A score whose genes were chosen on every patient looks better in cross-validation than it is, and a swapped sample puts one patient's response on another's transcriptome.

The decision

Report a survival score only from folds that chose their own genes, and hold out any patient whose recorded sex disagrees with their transcriptome until it is explained.

Illustration: The checks the plan runs
CheckStepWhat it guards against
Gene selection repeated inside every foldT5S1A score judged on the genes it helped choose
Recorded sex against sex-linked genesT1S1A sample swap between patients
One pre-treatment library per patientT1S1A patient counted twice, or a biopsy taken on treatment
Principal components by site and strandednessT1S2A technical axis read as biology

What each check guards against, by the step that runs it. A run would write each check's result into its record.

From other runs

Two results from published runs on other cohorts.

Each tab is one result from a hosted report, with its source under its title.

A run on TCGA-BRCA contrasts tumors from patients of African (AA) and European (EA) ancestry (limma, adjusted for subtype, age, stage). 11,424 genes pass FDR 0.05, most with small effects: 158 pass a twofold change. The strongest hits may track germline ancestry, which would make them poor tumor markers. OX40 (TNFRSF4) is higher in AA tumors (d = 0.82), and PD-1, CTLA-4 and LAG-3 are higher too. There is no detectable survival difference after adjustment (HR 1.05, p 0.84, 137 events in 957 patients), and the cohort cannot rule out a moderate effect.

Prognostic signatures by ancestry Ancestry report (TCGA-BRCA), Survival & Prognosis
AncestryGenesC-indexPatientsEvents
European ancestry820.652726101
African ancestry850.40810613

Each group's prognostic signature and its C-index as the report prints them, and its patients and events as the report prints each analysis's n. The two share 2 genes, GNG4 and RPS6KA6, of 165 between them. Gene lists like these overlap little even between random halves of one cohort, so the overlap alone cannot show that each group needs its own model. On 13 events, the AA signature's C-index of 0.408 is no better than chance.

Findings and the record

What the plan checks, and how each result is recorded.

Each finding names the step that runs it. No run on GSE78220 is published, so the findings state checks without values. A run writes a content hash for every file, lineage for every figure and a signature over the record.

  • Gene selection repeats inside every fold

    no reference

    Any survival score is refit with its gene selection repeated inside every cross-validation fold, so no fold is judged on the genes it helped choose.

    High confidenceT5S1
  • Recorded sex is checked against the transcriptome

    no reference

    Each patient's sex in the GEO metadata is compared with their sex-linked genes before their labels are used, to catch a sample swap.

    Medium confidenceT1S1
  • Two technical variables are on record

    no reference

    Study site and library strandedness are in every GEO sample record and nearly coincide, so the plan checks the principal components by both and keeps strandedness in the design.

    High confidenceT1S1

Illustration

inflexa · prov

$ inflexa prov lineage output/responder_de.csv

output/responder_de.csv sha256:3e91…a7c4

t1s2_responder_de exit 0

output/cohort_baseline.tsv sha256:b20d…5f18

t1s1_cohort_assembly exit 0

GSE78220_PatientFPKM.xlsx source

model qwen/qwen3.8-27b · step T1S2

signed ed25519:6c2a…e90b

$ inflexa prov verify

ok · chain intact · signature valid

The record's shape a run on GSE78220 would write, with placeholder hashes. Each file carries its hash and each step its exit code.

Who it is for

For anyone choosing which signature to take forward.

  • Biomarker scientist

    Discover and prioritize biomarker candidates from high-dimensional omics data with every selection repeated inside its folds.

  • Diagnostics lead

    Evaluate biomarker candidates by effect size, reproducibility, and population specificity.

  • Clinical data scientist

    Keep technical variables in the model and one sample per patient, so a score is not driven by a technical variable or a repeated patient.

  • Academic researcher

    Re-analyze a published cohort without a bioinformatics core, and leave with a record of how each result was produced.

Start with a question you already have.

Install the CLI and pay nobody but your model provider, open a free Cloud account, or talk to us about Pro for your team.