Run the workflow

A reproducible first run

From the main project folder, after activating your environment:

python scripts/python/check_inputs.py data/synthetic
python scripts/python/run_workflow.py data/synthetic results/synthetic
python scripts/python/verify_protein.py data/synthetic results/synthetic SYN00001
python scripts/python/create_report.py results/synthetic reports/synthetic-report.html

The first command checks the input contract. The second saves results and figures. The third recalculates a protein independently from input values. The fourth builds a portable HTML report with embedded figures; open it in a browser.

For the published enrichment example:

python scripts/python/check_inputs.py data/ubiquitin
python scripts/python/run_workflow.py data/ubiquitin results/ubiquitin
python scripts/python/verify_protein.py data/ubiquitin results/ubiquitin UBI01843
python scripts/python/create_report.py results/ubiquitin reports/ubiquitin-report.html

What happens inside the analysis

  1. Validate identifiers, declared scale, groups and design. The script reorders metadata to abundance columns; it never matches rows by position alone.
  2. Log2-transform positive linear intensities. Missing values remain missing.
  3. Identify coverage-eligible proteins: at least three observed samples in each synthetic group, or two in each published-study group.
  4. Apply the declared normalization. Synthetic sample medians are aligned using coverage-eligible proteins. The published LFQ values receive no additional centering in the primary analysis.
  5. Estimate observed group means and their difference; run Welch tests when counts and variance permit. Keep every protein in the output with a tested/untested status.
  6. Apply BH correction to all finite tests. Mark proteins with adjusted p ≤ 0.05; separately highlight those also having |log2 fold change| ≥ 1.
  7. Make PCA and correlations from complete, variable proteins only. Repeat the analysis with the alternative normalization as a sensitivity check.

There is no inferential imputation, no automated sample removal and no hidden covariate adjustment.

Find your outputs

Output Purpose
tables/differential-abundance.tsv Every protein’s coverage, effect, uncertainty, p-value, adjusted p-value and test status
tables/normalized-abundance.tsv Measurements used for the primary comparison
tables/sample-qc.tsv Coverage, sample medians and offsets
tables/pca-input.tsv, pca-scores.tsv Exact PCA input and scores
tables/normalization-sensitivity.tsv Primary and alternative effects and decisions
tables/analysis-summary.json Counts and analysis scope
tables/parameters.json, run-record.json Settings, package versions and input/script checksums
figures/*.png Fourteen explanatory figure families

Rerunning a workflow overwrites its named outputs in the selected result folder. Use a separate output folder for an intentional alternative analysis. Keep private data in data/my-study/ and reports in ignored reports/.