11# Phi CLI Reference
22
3- ** ` phi ` ** is the command-line interface for the dyno protein design platform.
3+ ** ` phi ` ** is the command-line interface for the dyno protein analysis platform.
44Submit and monitor computational biology jobs, manage datasets, run structure
55prediction and inverse-folding pipelines, and download results — all from your
66terminal.
@@ -23,8 +23,6 @@ terminal.
2323 - [ phi datasets] ( #phi-datasets )
2424 - [ phi dataset] ( #phi-dataset )
2525 - [ phi ingest-session] ( #phi-ingest-session )
26- - [ phi design / rfdiffusion3] ( #phi-design--rfdiffusion3 )
27- - [ phi boltzgen] ( #phi-boltzgen )
2826 - [ phi folding / esmfold] ( #phi-folding--esmfold )
2927 - [ phi complex_folding / alphafold] ( #phi-complex_folding--alphafold )
3028 - [ phi inverse_folding / proteinmpnn] ( #phi-inverse_folding--proteinmpnn )
@@ -50,23 +48,14 @@ terminal.
5048pip install dyno-phi
5149```
5250
53- For local biomodal development (deploying Modal GPU apps):
54-
55- ``` bash
56- pip install " dyno-phi[biomodals]"
57- ```
58-
59- ** Set your API key** (obtain from Settings → API keys in the dyno web app):
51+ ** Set your API key** (obtain from ** Settings → API keys** at
52+ ` http://localhost:3000/dashboard/settings ` ):
6053
6154``` bash
6255export DYNO_API_KEY=ak_...
6356```
6457
65- Optionally override the API base URL:
66-
67- ``` bash
68- export DYNO_API_BASE_URL=https://api.dynotx.com
69- ```
58+ The key is cached to ` .phi/state.json ` after first use.
7059
7160Verify your connection:
7261
@@ -120,8 +109,6 @@ Active: dataset [d7c3a1b2-...] · job [cb4553f5-...]
120109| ` phi datasets ` | — | List your datasets |
121110| ` phi dataset ` | — | Show details for a single dataset |
122111| ` phi ingest-session ` | — | Check the status of an ingest session |
123- | ` phi design ` | ` rfdiffusion3 ` | Backbone generation — binder design, de novo, motif scaffolding |
124- | ` phi boltzgen ` | — | All-atom generative design from a YAML spec |
125112| ` phi folding ` | ` esmfold ` | Fast single-sequence structure prediction (ESMFold) |
126113| ` phi complex_folding ` | ` alphafold ` | Monomer or multimer structure prediction (AlphaFold2) |
127114| ` phi inverse_folding ` | ` proteinmpnn ` | Sequence design via inverse folding (ProteinMPNN) |
@@ -297,125 +284,6 @@ phi ingest-session SESSION_ID [--json]
297284
298285---
299286
300- ### phi design / rfdiffusion3
301-
302- Generate protein backbones using ** RFdiffusion3** . Supports binder design
303- (targeting a receptor), de novo backbone generation, and motif scaffolding.
304- Runtime: ~ 2–5 min per design.
305-
306- ```
307- phi design [mode options] [binder options] [generation options] [job options]
308- ```
309-
310- ** Design mode (pick one):**
311-
312- | Flag | Description |
313- | ---| ---|
314- | ` --target-pdb FILE ` | Target PDB for binder design |
315- | ` --target-pdb-gcs URI ` | Cloud storage URI to target PDB (` gs://… ` ) |
316- | ` --length N ` | Backbone length for de novo generation (no target) |
317- | ` --motif-pdb FILE ` | Motif PDB for scaffolding |
318- | ` --motif-pdb-gcs URI ` | Cloud storage URI to motif PDB (` gs://… ` ) |
319-
320- ** Binder design options:**
321-
322- | Flag | Description |
323- | ---| ---|
324- | ` --target-chain CHAIN ` | Target chain ID (e.g., ` A ` ) |
325- | ` --hotspots A45,A67 ` | Comma-separated hotspot residues for interface design |
326- | ` --motif-residues 10-20,45-55 ` | Comma-separated motif residue ranges |
327-
328- ** Generation parameters:**
329-
330- | Flag | Default | Description |
331- | ---| ---| ---|
332- | ` --num-designs N ` | ` 10 ` | Number of backbone designs to generate |
333- | ` --steps N ` | ` 50 ` | Diffusion inference steps — higher improves quality |
334- | ` --contigs STR ` | — | Contig specification string for advanced control |
335- | ` --symmetry C3 ` | — | Symmetry specification (e.g., ` C3 ` , ` D2 ` , ` C5 ` ) |
336-
337- ** Job options** (shared with all model commands):
338-
339- | Flag | Default | Description |
340- | ---| ---| ---|
341- | ` --run-id ID ` | — | Optional run label |
342- | ` --wait ` | on | Poll until job completes |
343- | ` --no-wait ` | — | Return immediately after submission |
344- | ` --out DIR ` | — | Download results to this directory when done |
345- | ` --json ` | — | Output raw JSON |
346-
347- ** Examples:**
348- ``` bash
349- # Binder design targeting a receptor
350- phi design --target-pdb target.pdb --hotspots A45,A67 --num-designs 50
351-
352- # With uploaded target (GCS URI from phi fetch --upload)
353- phi design --target-pdb-gcs gs://bucket/target.pdb --hotspots A45,A67 --num-designs 100
354-
355- # De novo backbone generation
356- phi design --length 80 --num-designs 20
357-
358- # Motif scaffolding
359- phi design --motif-pdb motif.pdb --motif-residues 10-20,45-55 --num-designs 30
360-
361- # Symmetric design
362- phi design --length 120 --symmetry C3 --num-designs 10
363- ```
364-
365- ---
366-
367- ### phi boltzgen
368-
369- All-atom generative binder design using ** BoltzGen** . Takes a YAML design
370- specification and runs diffusion + inverse folding. Supports proteins, peptides,
371- antibodies, nanobodies, and small molecule binders.
372- Runtime: ~ 10–20 min.
373-
374- ```
375- phi boltzgen (--yaml FILE | --yaml-gcs URI) [options]
376- ```
377-
378- ** Input (pick one):**
379-
380- | Flag | Description |
381- | ---| ---|
382- | ` --yaml FILE ` | Local YAML design specification file |
383- | ` --yaml-gcs URI ` | Cloud storage URI to YAML file (` gs://… ` ) |
384- | ` --structure-gcs URI ` | Cloud storage URI to a structure file referenced in the YAML |
385-
386- ** Generation parameters:**
387-
388- | Flag | Default | Description |
389- | ---| ---| ---|
390- | ` --protocol PROTOCOL ` | ` protein-anything ` | Design protocol. Choices: ` protein-anything ` , ` peptide-anything ` , ` protein-small_molecule ` , ` antibody-anything ` , ` nanobody-anything ` , ` protein-redesign ` |
391- | ` --num-designs N ` | ` 10 ` | Intermediate designs to generate. Use ` 10,000–60,000 ` for production campaigns |
392- | ` --budget N ` | ` num_designs // 10 ` | Final diversity-optimized design count |
393- | ` --boltzgen-steps STEPS ` | — | Specific pipeline steps, space-separated (e.g., ` design inverse_folding folding ` ). Omit to run full pipeline |
394-
395- ** Inverse folding only:**
396-
397- | Flag | Description |
398- | ---| ---|
399- | ` --only-inverse-fold ` | Run inverse folding on an existing structure YAML — skips backbone design |
400- | ` --inverse-fold-num-sequences N ` | Sequences per design when using ` --only-inverse-fold ` (default: ` 2 ` ) |
401-
402- ** Examples:**
403- ``` bash
404- # Full protein binder design pipeline
405- phi boltzgen --yaml design.yaml --protocol protein-anything --num-designs 10
406-
407- # Peptide binder design
408- phi boltzgen --yaml peptide.yaml --protocol peptide-anything --num-designs 50
409-
410- # Production-scale campaign
411- phi boltzgen --yaml binder.yaml --num-designs 20000 --budget 200
412-
413- # Run only inverse folding on existing designs
414- phi boltzgen --yaml structures.yaml --only-inverse-fold --inverse-fold-num-sequences 4
415- ```
416-
417- ---
418-
419287### phi folding / esmfold
420288
421289Fast single-sequence structure prediction using ** ESMFold** .
@@ -878,38 +746,22 @@ rather than signal and results in better-calibrated confidence scores.
878746
879747## Workflows
880748
881- ### Binder design — full pipeline
749+ ### Score a batch of structures — full pipeline
882750
883751``` bash
884752# 1. Fetch and prepare target
885753phi fetch --pdb 4ZQK --chain A --residues 56-290 --out target.pdb
886754
887- # 2. Generate backbones
888- phi design --target-pdb target.pdb --hotspots A45,A67 --num-designs 50
889-
890- # 3. Upload backbones for batch validation
891- phi upload --dir ./rfdiffusion_outputs/ --file-type pdb
755+ # 2. Upload structures for batch validation
756+ phi upload ./designs/
892757
893- # 4 . Run full filter pipeline
758+ # 3 . Run full filter pipeline
894759phi filter --preset default --wait --out ./results/
895760
896- # 5 . Review scores
761+ # 4 . Review scores (also linked from dashboard)
897762phi scores --top 30
898763```
899764
900- ### BoltzGen binder design
901-
902- ``` bash
903- # 1. Fetch target and upload to get GCS URI
904- phi fetch --uniprot Q9NZQ7 --trim-low-confidence 70 --upload
905-
906- # 2. Create YAML spec referencing the GCS URI, then run
907- phi boltzgen --yaml design.yaml --protocol protein-anything --num-designs 10000
908-
909- # 3. Download top designs
910- phi download --out ./boltzgen_results/
911- ```
912-
913765### Validate a batch of existing sequences
914766
915767``` bash
0 commit comments