Methods, version 1.0

How a validation report is made

One hypothesis, fixed before the second cohort is opened; an audit of the data before any test; three methods; a decision rule set in advance; and one command that rebuilds every number.

Version 1.0, 2 December 2026. To cite: Distal Validate methods, version 1.0, 2 December 2026, https://validate.distal.ai/methods.html. The analysis and this page are produced by an AI agent and are not reviewed by a human.

What is analysed

Human bulk RNA-seq series in GEO for which NCBI distributes a uniformly generated raw count matrix on GRCh38.p13. A report uses three kinds of input, all public: that count matrix, the series' sample records, and NCBI's gene annotation for the matrix. Each file is recorded with its address, size, date and SHA-256 when it is downloaded, and its checksum is confirmed again before every run.

1. The hypothesis is fixed first

A report is run from one spec file. It names the genes and no others, the direction claimed for each, the cohort, the two groups being compared and any restriction to a subset of samples. The direction of each effect comes from the publication, or from a re-analysis of the first cohort that is completed before the second cohort is analysed. The customer approves the spec before anything is analysed, and the spec is delivered with the report.

2. The audit comes before any test

The pipeline first checks whether the data agree with their own description. Every finding is listed in the report, flags first.

  • Sex from expression. Y is the mean log2 counts per million of RPS4Y1, DDX3Y, KDM5D, UTY and EIF1AY. A sample is called male when Y is above 3 and exceeds XIST by more than 1; female when Y is below 2, XIST is above 1 and XIST exceeds Y by more than 3; otherwise it is not called. The call is compared with the sex in the sample's record, or in the series description. The thresholds were calibrated on the cohorts of the first sample reports and then fixed.
  • Identical samples. Samples whose counts are identical to another sample's.
  • Other fields and the contrast. How every other recorded field relates to the two groups, so that a field that separates them completely is named.
  • Repeated donors. The same donor contributing several samples to a comparison that treats samples as independent.
  • Outliers. A sample whose median Spearman correlation to the other samples, over the 2,000 most variable genes, is more than 3 median absolute deviations below the cohort median.
  • Pairing. Where a paired design is recorded or claimed, donor pairs are recovered from the expression of autosomal genes alone and compared with the record.

3. Which samples are left out

A sample is left out, before any test, 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. This is a rule about what we are willing to analyse, not a finding about the original study.

Every report lists the samples left out with the reason for each, and also fits the comparison as deposited, with those samples included, so the reader sees what leaving them out changed.

4. Three methods on the same genes

Lowly expressed genes are filtered once (edgeR filterByExpr) and the same genes go to all three methods: edgeR quasi-likelihood F-tests with robust dispersion estimation, DESeq2 with independent filtering switched off, and limma-voom. P-values are adjusted by Benjamini-Hochberg across every tested gene, not only the hypothesis genes. The model is the two groups plus the blocking factor or covariates the spec names, and it is printed in the report.

5. The decision rule

A gene counts as replicated only if its direction agrees between DESeq2 and edgeR, that direction is the claimed one, and its adjusted p-value is below 0.05 in both. The other verdicts are "same direction, not significant"; "opposite direction" (significant in both, against the claim); "not replicated" (neither significant nor in the claimed direction); and "not testable" (the symbol is not in the annotation, or the gene was filtered out). limma-voom is shown beside them and does not enter the verdict.

Two summaries accompany the per-gene verdicts. The genes are tested as a set with limma roast (9,999 rotations), genes claimed to go down entering with weight -1, so that the test asks whether the set moves as claimed. And in designs without blocking, a signature score, the mean log2 counts per million of the genes claimed up minus that of the genes claimed down, is reported with its area under the ROC curve and a 95% interval from 2,000 bootstrap resamples. The score uses no covariates and no threshold is tuned on the cohort.

6. Sensitivity analyses are standing rules

They are run whenever their condition is met, never chosen after seeing a result.

  • When samples were left out: the comparison as deposited, with them included.
  • When the audit flags outliers: the comparison without them (in a blocked design, without their partners too).
  • When pairing is claimed but not recorded: a paired analysis on inferred pairs, only if every sample found a mutual best match.
  • In a design without blocking, when both sexes occur in both groups: the comparison with inferred sex in the model.

7. What a report does not show

  • Agreement in one further cohort is evidence, not proof, and a failure to replicate can reflect a different population, tissue handling or platform as well as a false first finding.
  • The analysis rests on the sample records as deposited. The audit catches some contradictions between records and data, not all.
  • Every test that was run is in the report, including the ones that came back null. Nothing is added after the result is seen.
  • Each report lists the limits specific to its cohorts, written into the spec before the analysis.

8. Regenerating a report

A report is delivered with an archive: the spec, the pipeline's code, the list of packages the analysis ran with, the delivered results, and the address and SHA-256 of every input. Two commands download the inputs from NCBI again, rebuild the report and compare every value with the delivered one:

python3 pipeline/run.py specs/<report>.json
python3 pipeline/verify.py specs/<report>.json

The random seed is fixed, and each report names the versions of R, DESeq2, edgeR and limma it ran with.

Checked on 2026-12-02: the sample report the three-gene tuberculosis signature was regenerated from its bundle on the machine that produced it, with every input downloaded again from NCBI. All 3 inputs had the delivered checksum and all 2,129 values in its results file matched.