Run the analysis

python scripts/python/run_workflow.py data/ubiquitin results/ubiquitin

The script writes named tables and PNG figures into the selected output directory. It does not require a network connection when analyzing the bundled inputs.

Understand the primary decisions

No additional centering: the source contains MaxQuant LFQ-normalized intensities. The primary analysis logs those values without forcing pull-down distributions to agree. Affinity enrichment can legitimately shift a subset of proteins. The alternative run median-aligns coverage-eligible proteins to show the sensitivity of the result.

Observed-value comparison: for each protein, calculate the numerator and denominator means, their difference, sample variances, Welch standard error, degrees of freedom and two-sided p-value. Proteins with insufficient observations or zero/invalid variance remain in the table with an explicit status.

Testing family: BH correction includes all 1,356 valid tests. A separate effect-size rule highlights |log2 difference| ≥ 1; this is an estimated-effect filter, not a formal test that the true effect exceeds one.

No imputation: absent measurements are not replaced for inference or visualization. PCA, correlations and the variable-protein heatmap instead use complete variable proteins; report that selection because it favors consistently observed proteins.

Expected summary

Quantity Expected value
Input protein groups 2,907
Tested groups 1,356
Untested groups 1,551
Adjusted p ≤ 0.05 8
Also meeting effect cutoff 4

These exploratory counts are specific to this subset, method and missingness rule. They are not the original paper’s discovery count and do not reproduce DEP’s imputation, variance stabilization or empirical-Bayes analysis.

Recreate inputs only when needed

python scripts/python/prepare_real_study.py

This optional preparation command downloads pinned R data files and reads them with pyreadr. It validates source checksums before export. It needs internet access, but no R installation. Provenance is saved under data/provenance/ubiquitin/.

After changing inputs, rerun input checks, analysis and verification. Re-render Quarto to refresh the published figures.