Sample report

Does the three-gene blood signature for active tuberculosis hold in an RNA-seq cohort it has never seen?

A second-cohort validation of a published claim, using only public GEO data.

Generated 2026-12-02. Produced end to end by an AI agent and not reviewed by a human. Public data only.

All 3 pre-specified genes replicated in the second cohort. Each gene moved in the claimed direction in GSE107994 with a genome-wide adjusted p-value below 0.05 in both DESeq2 and edgeR. A rotation test of the 3 genes as a set, signed by claimed direction, gives p ≤ 5.0e-05 for a shift in the claimed direction (the smallest value this many rotations can return). The combined signature score separates the arms with an area under the ROC curve of 0.95 (95% interval 0.90 to 0.99). The input audit raised 2 flags, listed below. The count of replicated genes is the same in each of the 2 sensitivity analyses.

The claim and how it was tested

A 2016 multicohort analysis of public microarray data derived a three-gene set in whole blood, GBP5, DUSP3 and KLF2, described as highly diagnostic for active tuberculosis. Its abstract reports an area under the ROC curve of 0.88 (95% CI 0.84 to 0.92) for separating active from latent tuberculosis. The paper defines the tuberculosis score as (GBP5 + DUSP3) / 2 - KLF2, which fixes the direction of each gene: GBP5 and DUSP3 higher in active disease, KLF2 lower. Source: Sweeney TE et al., Lancet Respir Med 2016 (PMID 26907218).

The hypothesis is these 3 genes and no others: GBP5, DUSP3, KLF2. The direction of each effect was taken from the publication before the second cohort was analysed. The decision rule was set in advance: a gene counts only if its direction agrees between DESeq2 and edgeR and its genome-wide BH-adjusted p-value is below alpha in both.

The cohorts, the contrast tested in each, and the model
RoleCohortPublicationContrast (n)Model
Second cohortGSE107994
A modular transcriptional signature identifies phenotypic heterogeneity of human tuberculosis infection [Leicester progressor]
Singhania A et al., Nat Commun 2018 (PMID 29921861)active tuberculosis (53) vs latent infection (49)~ group

Which samples were analysed, and why the numbers differ from the original study

A report can analyse fewer samples than the study that produced them, for two reasons. Both are fixed before any hypothesis is tested. First, a report tests one contrast, and samples from other groups or conditions in the same series are not part of it. Second, a standing rule. A sample is left out when its data contradict its own record: its expression shows one sex where its record, or the series description, gives the other, or its counts are identical to another sample's; in a blocked design the samples sharing its block are left out with it. For such a sample we cannot tell whether the record or the data is right, and if it is not the sample its label names, its group may be wrong as well, so we do not analyse it. This is a rule about what we are willing to analyse. It is not a finding about the original study.

GSE107994. The series holds 175 samples. The contrast specified for this report (active tuberculosis against latent infection) covers 102 of them; the rest belong to groups or conditions outside it. All 102 were analysed: none met the rule for leaving a sample out. 1 sample elsewhere in the series (GSM2886399) meets the same rule and is outside this contrast, so it was never a candidate for it.

Result

The 3 pre-specified genes in GSE107994, by three methods
GeneClaimedGSE107994 (second cohort)Verdict
DESeq2 log2FCDESeq2 adj. pedgeR log2FCedgeR adj. pvoom log2FC
GBP5up+2.324.0e-34+2.324.4e-18+2.49replicated
DUSP3up+1.192.1e-30+1.182.3e-18+1.10replicated
KLF2down-0.221.6e-04-0.232.0e-04-0.21replicated

log2FC: log2 fold change, active tuberculosis over latent infection. adj. p: Benjamini-Hochberg across all 16,904 tested genes.

Expression of the pre-specified genes by arm in the second cohort

The genes as one score

Signatures are usually applied as a single score. Here the score is the mean log2-CPM of genes claimed up minus mean log2-CPM of genes claimed down (up: GBP5, DUSP3; down: KLF2). It separates active tuberculosis from latent infection with an area under the ROC curve of 0.95 (95% bootstrap interval 0.90 to 0.99, 2,000 resamples; Wilcoxon p = 3.7e-15). The score uses no covariates, and its thresholds were not tuned on this cohort.

Signature score by arm in the second cohort

Input audit

Before any hypothesis is tested, the pipeline checks whether the data agree with their own description. Flags come first.

  • Flag GSE107994. Recorded sex (field gender) and expression disagree for 1 of 175 samples in the series: GSM2886399 (recorded male, expression female). It is not in the contrast specified here. The data cannot say whether the record or the sample is at fault.
  • Flag GSE107994. 7 samples flagged as correlation outliers (GSM2886302, GSM2886332, GSM2886333, GSM2886334, GSM2886346, GSM2886424 and 1 more).
  • Pass GSE107994. Every sample in the contrast has its own patient_id: no person is counted twice.
  • Pass GSE107994. Inferred sex by arm (active tuberculosis: 18 female, 35 male; latent infection: 21 female, 28 male). Both sexes occur in both arms, so the standing rule applies: refitting with inferred sex in the model gives 3 of 3 genes replicated.
  • Pass GSE107994. Standing rule: refit without the flagged outliers. 95 samples remain, and 3 of 3 genes replicated, against 3 of 3 in the analysis reported.
  • Pass GSE107994. Library sizes range from 15.8 to 44.5 million counts (median 28.7); 0 below half the median.
Sex inferred from expression, second cohort

Sex rule. Y = mean log2-CPM of RPS4Y1, DDX3Y, KDM5D, UTY, EIF1AY. Male: Y > 3 and Y exceeds XIST by more than 1. Female: Y < 2, XIST > 1 and XIST exceeds Y by more than 3. Anything else is not called. Dotted lines mark the rule.

Do independent methods agree?

Agreement between the three methods, for each analysis
AnalysisModelSamplesGenes testedDESeq2 sig.edgeR sig.limma-voom sig.Jaccard (DESeq2, edgeR)Spearman of log2FCPre-specified genes confirmedGene-set p
GSE107994 primary~ group10216,90410,43310,47610,1540.980.9943 of 3≤ 5.0e-05
GSE107994 without flagged outliers~ group9516,9379,8649,9799,5970.960.9943 of 3≤ 5.0e-05
GSE107994 adjusted for inferred sex~ inferred sex + group10217,81310,94911,02010,6130.980.9953 of 3≤ 5.0e-05

sig.: adjusted p < 0.05 genome-wide. Gene-set p: limma roast, 9,999 rotations over the pre-specified genes; for the second cohort it tests a shift in the claimed direction.

Volcano plot, second cohort
PCA, second cohort

What this does not show

  • The publications behind the claim and the second cohort share no author names as PubMed lists them. That is a check on names, not on funding, consortia or shared samples.
  • The signature was derived on microarrays and is tested here on RNA-seq. Agreement across platforms is part of what is being tested, and a difference in the area under the curve can reflect the platform as well as the population.
  • The source claim concerns pulmonary tuberculosis. The active arm here also includes patients recorded as non-pulmonary. The contrast was specified by group before the analysis and was not narrowed afterwards.
  • The second cohort was recruited in one English city and compares active disease with latent infection only. It says nothing about separating tuberculosis from other diseases, which is the harder clinical question and the one where the abstract reports its lowest accuracy.
  • Latent infection that later progressed to disease is a separate group in this cohort and was left out of the contrast, as the spec states. Including it would test a different claim.
  • Counts are the NCBI-generated GRCh38 matrices distributed by GEO, not the authors' own processing. Differences from published values can come from alignment and annotation as well as from statistics.
  • Nothing here is clinical or diagnostic advice.
  • No human has reviewed this report. It was produced end to end by an AI agent, and the safeguard is that every number can be regenerated from public inputs with the command below.

Reproduce every number

python pipeline/run.py specs/tuberculosis-three-gene-signature.json

That command downloads the inputs below from NCBI if they are absent, checks them, runs the audit and the three analyses, and rebuilds this page.

Inputs, with the date each was fetched and its checksum
CohortInputFetchedSHA-256
GSE107994GSE107994_raw_counts_GRCh38.p13_NCBI.tsv.gz2026-12-01783203b217cc7dc55739542184dea725c771287060c1b980cd1907c0e698455d
GSE107994GSE107994_family.soft.gz2026-12-0173cc299e7d391c0922e5c02b043f1e162b719e3c4dc99e3bae01e6ef318c559c
annotationHuman.GRCh38.p13.annot.tsv.gz2026-12-01a0b6ff49b0851334c709edbd52ae9c80ae998d66d9a30185de364ffb4a59efea

R version 4.5.3 (2026-03-11). DESeq2 1.50.2, edgeR 4.10.7, limma 3.68.5. The random seed is fixed, and full session info is written next to each results file.