PRAXIS is a closed-loop learning system that acquires knowledge through autonomous experimental interaction — iteratively perturbing a biological system, measuring its response, and learning from the resulting feedback. It couples a generative protein language model for sequence design with a fully autonomous robotic laboratory for gene assembly, protein expression, and biochemical characterization, in a continuous experimental loop.
At each iteration the model proposes protein variants, the laboratory constructs and characterizes them, and the resulting measurements are fed back into the model to guide the next round of design. Applied to Family 1 glycoside hydrolase (GH1) enzymes, the system runs as a coordinated multi-agent platform in which three agents independently optimize activity toward glucose, xylose, and mannose while sharing experimental knowledge through a common learning model — discovering enzyme variants with substantially altered substrate specificities toward non-native sugars across a fully autonomous multi-week campaign.
This repository accompanies:
Learning protein function through autonomous experimental interaction Coban Brooks, Pascal Notin, Philip A. Romero bioRxiv (2026) · 10.64898/2026.08.14.744985
| Path | Role in the loop |
|---|---|
agent/ |
The generative agent: a ProteinNPT-based protein language model that learns sequence–function relationships from accumulated measurements and proposes new variants via uncertainty-guided (UCB) acquisition. |
agent/insilico_analysis/ |
In-silico benchmarks: deep mutational scanning datasets (Pab1, GB1, Ube4b, avGFP) used as ground-truth oracles to validate the agent's search before coupling it to the laboratory. |
environment/ |
The experimental environment: software that operates the autonomous robotic laboratory — constructing and characterizing designed variants and returning measurements to the agent. |
The agent and environment run independently and communicate over HTTP/SSH, so the agent and benchmarks can be run with no laboratory hardware.
Agent and in-silico benchmarks (agent/)
- OS: Linux (x86_64). Tested on Ubuntu 24.04 LTS.
- GPU: an NVIDIA GPU with CUDA 12.1 support is required for ProteinNPT training and scoring. Developed and tested on 3× NVIDIA L40S (48 GB each); each benchmark run uses a single GPU.
- Software (tested versions): Python 3.10.14, PyTorch 2.3.1, CUDA 12.1,
proteinnpt1.5.1,fair-esm2.0.0, pandas 2.2.1, SciPy 1.13.0, scikit-learn 1.4.2. The complete pinned list is inagent/self_driving_env.yml. - Disk: about 5 GB for the ESM2-650M and Tranception Large weights downloaded by
setup.sh.
Experimental environment (environment/)
- Python 3 with the packages in
environment/requirements.txt. - Running the closed loop requires the robotic laboratory described in the paper: Dynamic Devices
Lynx LM730i liquid handler, Peak Robotics KX2-750 arm, Analytik Jena Biometra TRobot II thermal
cycler, Agilent BioTek Synergy H1 plate reader and the custom refrigerator in
environment/hardware/. This hardware is not needed for the in-silico benchmarks or for scoring sequences with a trained model.
cd agent
conda env create -f self_driving_env.yml && conda activate self_driving_env
bash setup.sh # download ESM2-650M + Tranception Large weights (DMS datasets are bundled)Typical install time: about 30 minutes, mostly the conda solve and the weight download.
Validate the agent's ability to select informative experiments against deep mutational scanning datasets used as ground-truth oracles:
cd agent
conda env create -f self_driving_env.yml && conda activate self_driving_env
bash setup.sh # download ESM2 + Tranception weights (DMS datasets are bundled)
bash insilico_analysis/run_full_benchmark.sh 0 # 4 datasets × 5 search strategies × 5 seedsEach search starts from a 10-sequence random seed (round 1) and runs 19 acquisition rounds of
10 sequences each (200 measured in total), comparing ProteinNPT + UCB against simpler baselines. See
agent/README.md.
The full benchmark is 100 searches. To check an installation, run a single search: ProteinNPT + UCB on the GB1 dataset, seed 0, on GPU 0.
cd agent
conda activate self_driving_env
bash insilico_analysis/run_full_benchmark.sh 0 gb1 full_pipeline 0Expected run time: about 12–15 hours on one NVIDIA L40S. The model is retrained at each of the 20 rounds.
Expected output (in agent/insilico_analysis/dataset_oracle/gb1/results/):
gb1_frontier_gb1_final_seed0_full_pipeline.csv: all 200 sequences selected during the search, with their GB1 fitness values taken from the dataset (the oracle).gb1_frontier_gb1_final_seed0_full_pipeline_round_log.csv: one row per acquired sequence, with columnsround(1–20),sequenceandfunctional_score.
The best fitness found should rise over the rounds. Across seeds, ProteinNPT + UCB on GB1 reaches
fitness 35–47% higher than the plateaus of the baseline strategies (paper, Fig. 1d). A single seed
varies around this. To plot trajectories from the round logs, run
python insilico_analysis/plot_paper_figures.py --dataset_dir insilico_analysis/dataset_oracle --output_dir insilico_analysis/figures.
cd agent
bash self_driving_single.sh # a single agent / objective
bash self_driving_multiple.sh # the multi-agent campaign (glucose / xylose / mannose)See agent/README.md.
cd environment
python -m venv venv && source venv/bin/activate
pip install -r requirements.txt
cp configs/lab_config.example.yml configs/lab_config.yml # then edit
python lab_controller.pyThe benchmark oracle datasets (agent/insilico_analysis/dataset_oracle/<protein>/<protein>_SeqFxnDataset.pkl,
~80 MB for Pab1/GB1/Ube4b/avGFP) are bundled in the repository, so the benchmarks are
self-contained. Model weights (ESM2-650M, Tranception Large) are downloaded by agent/setup.sh.
Precomputed embeddings and closed-loop result databases are regenerated by the agent's
precompute_* scripts and optimization runs.
The agent builds on ProteinNPT
(proteinnpt==1.5.1, installed via the conda environment file). ESM2 and Tranception weights are
downloaded by agent/setup.sh.
@article{brooks_autonomous_interaction,
title = {Learning protein function through autonomous experimental interaction},
author = {Brooks, Coban and Notin, Pascal and Romero, Philip A.},
year = {2026}
}