Check the inputs

Run from the main project folder:

python scripts/python/check_inputs.py data/ubiquitin results/ubiquitin/checks

Expected: 2,907 protein groups and 6 samples. The command saves checks/input-checks.json and fails on inconsistent identifiers, duplicate samples, invalid intensities, undeclared scales or an unsupported design.

Review the scientific checks

  1. Match every sample ID exactly. Do not use spreadsheet row order to infer correspondence.
  2. Confirm the two groups and the numerator/denominator in study-metadata.json.
  3. Inspect missingness and coverage. The primary analysis needs at least 2 observed values in each group.
  4. Confirm that technical injections have not been counted as independent biological samples.
  5. Check the source’s contaminant, reverse/decoy and site-only exclusions before importing an unfiltered proteinGroups table.
  6. Confirm that group is not confounded with batch. This engine refuses declared multiple batches, repeated subjects and paired designs instead of silently ignoring them.

Replicate numbers in the source design are experiment labels, not subject IDs. The supplied metadata does not establish pairing or biological independence. Do not invent pairing by matching the suffixes _1, _2 and _3. Retain the exploratory qualification in every interpretation.

Make a proceed/stop decision

Input checks establish a consistent table, not a valid biological design. If the model assumptions are not defensible, stop inferential interpretation and resolve the design before using p-values. You can still inspect coverage and observed abundances descriptively.

Your task: save the check output and write one sentence explaining why the analysis can proceed and what remains uncertain.