# DockQ
Compare a predicted complex against a native reference with DockQ.
- Job type: `DOCKQ`
- Task: Analysis
- Price: 1 credit a run
- Source: Wallner Lab (https://github.com/bjornwallner/DockQ)
- Paper: Basu and Wallner, DockQ: a quality measure for protein-protein docking models. PLOS ONE 2016. doi:10.1371/journal.pone.0161879

## Example

### CLI

```bash
# designs takes a list the example cannot fill; pass it from Python or HTTP
# native_chain_ids takes a list the example cannot fill; pass it from Python or HTTP
phi jobs submit DOCKQ \
  --input native_complex_pdb_uri="<gs:// uri from POST /v1/uploads/url>" \
  --wait --out out
```

### Python

```python
from phi import PhiClient

with PhiClient() as phi:
    native_complex_pdb = phi.files.upload(path="native_complex.pdb")
    job = phi.jobs.submit(
        "DOCKQ",
        inputs={
        "designs": [],
        "native_complex_pdb_uri": native_complex_pdb,
        "native_chain_ids": []
        },
        params={},
    )
    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": "DOCKQ",
  "inputs": {
    "designs": [],
    "native_complex_pdb_uri": "<gs:// uri from POST /v1/uploads/url>",
    "native_chain_ids": []
  },
  "params": {}
}'
```

## Parameters

| Name | Type | Default | Description |
|---|---|---|---|
| `metric_profile` | string | `"dockq"` | Fixed. DOCKQ is defined by this profile; naming another would run a different metric set under the same job type. |

## Inputs

| Name | Type | Default | Description |
|---|---|---|---|
| `designs` (essential) | list of DockQDesign |  | Predicted complexes to score. |
| `native_complex_pdb_uri` (essential) | string | `null` | gs:// URI to the reference complex shared by every design. |
| `native_chain_ids` (essential) | list of string | `null` | Reference chain IDs shared by every design. |

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