Verify and explain

Recalculate one protein

python scripts/python/verify_protein.py data/ubiquitin results/ubiquitin UBI01843

The 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 UBI01843
Numerator observations 3
Denominator observations 3
Log2 fold change 4.440114002
Standard error 0.198563726
Welch degrees of freedom 3.940545008
Two-sided p-value 2.67278221e-05
BH-adjusted p-value 0.0243578032
Nominal 95% interval 3.885517 to 4.994711

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

“In this exploratory six-sample enrichment subset, 1,356 protein groups were tested using observed log2 LFQ measurements. UBI01843, annotated SQSTM1, had an estimated Ubi4–Ctrl difference of 4.44 log2 units (nominal 95% interval 3.89–4.99; BH-adjusted p 0.024). This is an enrichment association conditional on independent replicates, not evidence of increased whole-cell abundance or direct binding.”

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.