Verify and explain
Recalculate one protein
python scripts/python/verify_protein.py data/synthetic results/synthetic SYN00001The verifier independently reads the raw input TSV, reconstructs normalization offsets, recalculates all finite tests for the BH denominator, and compares the selected protein with the saved output. It does not import the workflow’s calculation functions. It first checks that input checksums still match the run record.
Expected: PASS followed by these approximate values:
| Quantity | SYN00001 |
|---|---|
| Numerator observations | 8 |
| Denominator observations | 8 |
| Log2 fold change | 1.481801905 |
| Standard error | 0.108854369 |
| Welch degrees of freedom | 13.577506203 |
| Two-sided p-value | 2.67112705e-09 |
| BH-adjusted p-value | 1.73474862e-07 |
| Nominal 95% interval | 1.247649 to 1.715955 |
Explain the calculation
For observed numerator values A and denominator values B, the log2 difference is mean(A) − mean(B). The standard error is the square root of s²(A)/n(A) + s²(B)/n(B). Welch’s degrees of freedom account for unequal estimated variances. The saved interval uses a t-distribution critical value, not a fixed 1.96 multiplier.
The adjusted p-value uses the whole tested family; you cannot recover it by correcting only the top ten displayed proteins. The confidence interval is nominal and is not adjusted for selection.
Write an explanation supported by the data
“The synthetic comparison tested 1,169 fictional proteins. 178 met both the adjusted p-value and effect-size display rules. SYN00001 had an estimated Treatment–Control difference of 1.48 log2 units. This verifies calculations within a simulation rather than establishing a biological finding.”
Challenge your conclusion
Compare primary and alternative normalization. Inspect individual points and missingness. A PASS validates agreement between calculations; it cannot resolve sample dependence, nonrandom missingness or upstream protein-identification errors.
AI prompt: Critique this paragraph using the result table and study metadata. Identify unsupported claims and explain which limitation could change the interpretation.