This file is for autoresearch mode only. For a manual pipeline run, use the
direct workflow in README.md.
The root loop runs the phosphopeptide design pipeline and lets an agent tune the experiment surface between runs.
Before starting the loop:
- Read
README.mdfor the shared setup steps. - Initialize submodules with
git submodule update --init --recursive. - Run
pixi run -e protein-dev protein-bootstrap. - Start Prefect with
pixi run -e protein-dev prefect-start. - Validate the environment with
pixi run -e protein-dev python prepare.py. - Confirm that
results.tsvexists with the expected header row.
The root train.py file is the only place the autoresearch loop should edit.
It now exposes two editable surfaces:
build_plan()for run-level parameters- the inlined
pipeline.run(...)graph insiderun()
The baseline there starts from:
10RFD3 backbones5MPNN sequences per backbone
The loop should compare runs using the printed summary:
- higher
pass_count - lower
best_peptide_ca_rmsd - higher
best_phosphosite_hbonds - higher
best_po4_fraction_buried
Run each experiment with:
pixi run -e protein-dev python train.py > run.log 2>&1Append each attempt to results.tsv as tab-separated values using the
summary fields from train.py.
Suggested statuses:
keepwhen the score improvesdiscardwhen the score is equal or worsecrashwhen the run fails before printing a summary
The basic loop is:
- inspect the current branch and commit
- edit
train.py - run the pipeline
- read the summary
- record the result
- keep or discard the change based on the score
Do not use this file for direct pipeline runs. Use the README workflow instead.