# Lacuna
Find cryptic binding pockets by generating and analysing a conformer ensemble.
- Job type: `LACUNA`
- Task: Pocket discovery
- Price: 1 credit a run
- Workload: A fixed number of designs; time scales with the count.
- Behavior and limits: Runs on CPU unless `boltz` is set.
- Source: pending
- Paper: citation pending

## Example

### CLI

```bash
phi jobs submit LACUNA \
  --input target_cif=@target.cif \
  --input target_pdb=@target.pdb \
  --param num_conformers=20 \
  --param boltz=false \
  --param openmm=false \
  --param plm=false \
  --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(
        "LACUNA",
        inputs={
        "target_cif_gcs_uri": target_cif,
        "target_pdb_gcs_uri": target_pdb
        },
        params={
        "num_conformers": 20,
        "boltz": false,
        "openmm": false,
        "plm": false
        },
    )
    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": "LACUNA",
  "inputs": {
    "target_cif_gcs_uri": "<gs:// uri from POST /v1/uploads/url>",
    "target_pdb_gcs_uri": "<gs:// uri from POST /v1/uploads/url>"
  },
  "params": {
    "num_conformers": 20,
    "boltz": false,
    "openmm": false,
    "plm": false
  }
}'
```

## Parameters

| Name | Type | Default | Description |
|---|---|---|---|
| `num_conformers` (essential) | integer | `20` | Conformers to generate for the ensemble (lacuna --conformers). |
| `openmm` (essential) | boolean | `false` | Use the OpenMM implicit-solvent MD backend (lacuna[openmm], CPU) instead of the default normal-mode analysis. |
| `plm` (essential) | boolean | `false` | Rank pockets with the PLM-assisted ranker (lacuna[plm], ESM-2). |
| `boltz` (essential) | boolean | `false` | Use the experimental Boltz-2 diffusion-sampling backend (lacuna[boltz]); this is the only add-on that runs on a GPU. |

## 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. |

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