# OpenFold 3, capsid
Fold one capsid protein with OpenFold3 and assemble an AAV 60-subunit icosahedral capsid.
- Job type: `CAPSID_FOLD_OPENFOLD3`
- Task: Structure prediction
- Price: 5 credits for one structure
- Workload: A fixed number of designs; time scales with the count.
- Behavior and limits: Tiles OpenFold3-preview2 over five chains at a time and holds the 60 chains on AAV2 icosahedral sites (shell radius 104.6 A), so it fits capsids about the size of AAV2 and refuses others at its own checks. Takes about 70 minutes on one H100, runs two samples and selects one by close contacts. Requires an MSA whose query matches the sequence. Optional reference scoring runs on CPU. Outputs are computational hypotheses, not experimental or therapeutic claims.
- Source: pending
- Paper: citation pending

## Example

### CLI

```bash
phi jobs submit CAPSID_FOLD_OPENFOLD3 \
  --input sequence=NLYIQWLKDGGPSSGRPPPS \
  --input preset=aav_icosahedral_60 \
  --input msa_uri="<gs:// uri from POST /v1/uploads/url>" \
  --param samples=2 \
  --wait --out out
```

### Python

```python
from phi import PhiClient

with PhiClient() as phi:
    msa = phi.files.upload(path="msa.a3m")
    job = phi.jobs.submit(
        "CAPSID_FOLD_OPENFOLD3",
        inputs={
        "sequence": [
                "NLYIQWLKDGGPSSGRPPPS"
        ],
        "preset": "aav_icosahedral_60",
        "msa_uri": msa
        },
        params={
        "samples": 2
        },
    )
    print(phi.jobs.wait(job.job_id).status)
```

### HTTP

```bash
curl -X POST https://api.dynophi.com/v1/jobs \
  -H "x-api-key: $PHI_KEY" -H "content-type: application/json" \
  -d '{
  "job_type": "CAPSID_FOLD_OPENFOLD3",
  "inputs": {
    "sequence": [
      "NLYIQWLKDGGPSSGRPPPS"
    ],
    "preset": "aav_icosahedral_60",
    "msa_uri": "<gs:// uri from POST /v1/uploads/url>"
  },
  "params": {
    "samples": 2
  }
}'
```

## Parameters

| Name | Type | Default | Description |
|---|---|---|---|
| `samples` (essential) | integer | `2` | Fixed at two capsid assemblies per run for the initial priced preset. |
| `keep_confidence_files` | boolean | `false` | Upload each sample's OpenFold3 per-sample confidence JSON and predicted CIF (per-residue pLDDT over the 5-chain window, not the whole capsid) under the output prefix. Default false keeps nothing; metrics.json carries the summary confidence regardless. |

## Inputs

| Name | Type | Default | Description |
|---|---|---|---|
| `sequence` (essential) | string |  | Single 400–800-residue capsid-protein sequence using standard amino acids. |
| `msa_uri` (essential) | string | `null` | gs:// URI to a precomputed .a3m MSA. Mutually exclusive with use_msa_server. |
| `use_msa_server` (essential) | boolean | `false` | Generate and cache a ColabFold MSA. Mutually exclusive with msa_uri. Sends the sequence to the public ColabFold MSA server, run by the ColabFold project, not by Dyno. It is outside Dyno's confidentiality commitments. To avoid this, attach your own alignment with msa_uri. |
| `preset` (essential) | string | `"aav_icosahedral_60"` | Capsid assembly preset. |
| `reference_structure` (essential) | FileRef | `null` | Optional experimental PDB or mmCIF reference for capsid analysis. |

---
Source: https://dynophi.com/docs/models/CAPSID_FOLD_OPENFOLD3. From the live API schema and phi-api's model catalog, 2026-11-23.