# ColabDock
Dock protein chains into a complex guided by sparse experimental restraints.
- Job type: `COLABDOCK`
- Task: Structure prediction
- Price: 1 credit a run
- Workload: A fixed number of designs; time scales with the count.
- Behavior and limits: Restraints are JSON only, addressed in author {chain, resnum}; at least one is required. A100-only. Each seed yields ColabDock's top-5 ranked poses; metrics for all poses and PAE for the ranked ones are in poses.json and the output prefix.
- Source: ColabDock authors (https://github.com/JeffSHF/ColabDock)
- Paper: citation pending

## Example

### CLI

```bash
# chains takes a list the example cannot fill; pass it from Python or HTTP
# seeds takes a list the example cannot fill; pass it from Python or HTTP
phi jobs submit COLABDOCK \
  --input target_cif=@target.cif \
  --input target_pdb=@target.pdb \
  --param res_thres=8 \
  --param rep_thres=8 \
  --wait --out out
```

### Python

```python
from phi import PhiClient

with PhiClient() as phi:
    target_cif = phi.files.upload(path="target.cif")
    target_pdb = phi.files.upload(path="target.pdb")
    job = phi.jobs.submit(
        "COLABDOCK",
        inputs={
        "target_cif_gcs_uri": target_cif,
        "target_pdb_gcs_uri": target_pdb,
        "chains": []
        },
        params={
        "seeds": [],
        "res_thres": 8,
        "rep_thres": 8
        },
    )
    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": "COLABDOCK",
  "inputs": {
    "target_cif_gcs_uri": "<gs:// uri from POST /v1/uploads/url>",
    "target_pdb_gcs_uri": "<gs:// uri from POST /v1/uploads/url>",
    "chains": []
  },
  "params": {
    "seeds": [],
    "res_thres": 8,
    "rep_thres": 8
  }
}'
```

## Parameters

| Name | Type | Default | Description |
|---|---|---|---|
| `gpu` | string one of a100, t4, a100_80gb, h100, a100_or_h100, a100_80gb_or_h100, a100_preferred, h100_preferred | `null` | Per-job GPU class override. |
| `seed` | integer | `null` | Single seed (default 101). Mutually exclusive with `seeds`. |
| `seeds` (essential) | list of integer | `null` | Multiple seeds. Mutually exclusive with `seed`. |
| `rounds` | integer | `1` | Optimization rounds (ColabDock config.py: 1). |
| `steps` | integer | `50` | Gradient steps per round (ColabDock config.py: 50). |
| `res_thres` (essential) | number | `8` | Contact-satisfaction distance threshold in Å (ColabDock config.py: 8.0). |
| `rep_thres` (essential) | number | `8` | Repulsive-restraint distance threshold in Å (ColabDock config.py: 8.0). |
| `crop_len` | integer | `null` | Segment length for segment-based optimization of large complexes; null optimizes the whole complex (ColabDock config.py: None). |
| `save_every_n_step` | integer | `1` | Save a pose every N steps (ColabDock config.py: 1). |
| `use_multimer` | boolean | `true` | Use the AF2-multimer weights (ColabDock config.py: True). |
| `bfloat` | boolean | `true` | Run the AF2 forward pass in bfloat16 (ColabDock config.py: True). |

## Inputs

| Name | Type | Default | Description |
|---|---|---|---|
| `target_cif` | string | `null` | Target structure as base64-encoded CIF (preferred). Falls back to target_cif_gcs_uri, then target_pdb / target_pdb_gcs_uri. |
| `target_cif_gcs_uri` (essential) | string | `null` | gs:// URI to the target CIF. |
| `target_pdb` | string | `null` | Target structure as base64-encoded PDB (CIF is auto-converted). |
| `target_pdb_gcs_uri` (essential) | string | `null` | gs:// URI to the target PDB. |
| `chains` (essential) | list of string |  | Chains to dock, in the order that defines the 1-based concatenated index ColabDock restraints address. |
| `fixed_chains` | list of list of string | `null` | Chain groups held rigid together during optimization. |
| `native_complex_pdb_uri` | string | `null` | gs:// URI to an experimental reference complex for RMSD. |
| `native_pdb` | string | `null` | Reference complex as base64-encoded PDB (alternative to the URI). |
| `native_chain_ids` | list of string | `null` | Reference chain IDs, ordered to pair positionally with `chains`. |
| `contacts` (essential) | list of ColabDockContact |  | 1v1 contact restraints. |
| `any_of_n` | list of ColabDockAnyOfN |  | 1vN (any-of-N) contact restraints. |
| `m_of_n` | list of ColabDockMOfN |  | M-of-N contact restraints. |
| `repulsive` | list of ColabDockContact |  | Repulsive restraints: residues held apart. |

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