Metadata-Version: 2.4
Name: azulene-studio
Version: 0.5.27
Summary: A CLI and Python library to interact with Azulene Studio
Author-email: Azulene Labs <contact@azulenelabs.com>
Project-URL: Homepage, https://www.azulenelabs.com/
Project-URL: Repository, https://github.com/Azulene-Labs/opal-cli
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: typer<1.0,>=0.12
Requires-Dist: httpx<1.0,>=0.27
Requires-Dist: supabase<3.0,>=2.4
Requires-Dist: rich<15.0,>=13.7
Requires-Dist: qrcode<9.0,>=7.4
Provides-Extra: dev
Requires-Dist: pytest; extra == "dev"
Dynamic: license-file

<a name="quickstart"></a>
## Azulene Studio Quick Start Guide: 

- [Azulene Studio Quick Start Guide](#quickstart)
- [Azulene Studio](#Azulene-Opal)
- [Chaining a macrocycle run into Protein-Ligand Interaction Energy / Protein-Ligand Pose Refinement](#macrocycle-chaining)
- [Azulene Studio Job Types](#job-types)


This guide walks you through a **complete working example** of using Azulene Studio to submit and monitor an `Absolute Binding Free Energy (ABFE)` job using a protein and ligand file.

You will learn how to:

a. Install `azulene-studio` from PyPI  
b. Log in  
c. Place your protein + ligand files in the correct location  
d. Submit an `absolute_binding` job (including automatic file upload)  
e. Check job status and retrieve results  

---

## Create and activate a virtual environment (optional)

### For conda
```bash
conda create -n azulene-env python=3.11 -y
conda activate azulene-env
```

### For Python
```bash
# Create a virtual environment
python -m venv azulene-env

# Activate the environment on Windows
azulene-env\Scripts\activate

# Activate the environment on macOS / Linux
source azulene-env/bin/activate
```

---

## a. Install `azulene-studio` from PyPI

```bash
pip install azulene-studio
```

Confirm installation:

```bash
python -m azulene.main --help
```

### CLI commands: `azulene` / `azu`

Installing the package adds two equivalent console commands — **`azulene`** and its
short alias **`azu`** — so every example below can be run as `azulene <command>` or
`azu <command>` (e.g. `azulene login` / `azu login`), or as `python -m azulene.main <command>`.

> **Deprecation:** the old `opal` command (and `import opal`) still work but are
> deprecated aliases from the pre–Azulene Studio naming, and will be removed in a
> future release. Prefer `azulene` / `azu` (and `import azulene`).

### Choosing a backend (`azulene config env`)

Everything talks to **production** unless you say otherwise, and most people
never need to change that. If you are testing against the development backend:

```bash
azulene config env            # which one am I on, and what else is there
azulene config env devel      # use development from now on
azulene config env --reset    # back to production
```

Each environment is a separate account with its own jobs and credits, so each
needs its own `azulene login`; sessions are kept apart, and switching back does
not ask you to log in again. `azulene whoami` always prints which one you are on.

For a single command, or in a script, `AZULENE_ENV=devel azulene ...` does the
same without saving anything. To reach a project neither name covers — a branch
deployment, a local stack — set `AZULENE_SUPABASE_URL` **and**
`AZULENE_SUPABASE_ANON_KEY` together; setting only one is an error rather than a
silent fallback to the production value for the other. In Python these are read
when `azulene` is imported, so export them before `import azulene`, not after.

---

## b. Log in

Run:

```bash
python -m azulene.main login
```

The CLI will securely prompt you:

```
Your email: example@gmail.com
Your password: **********
```

After this, Azulene Studio stores your auth tokens locally so you don’t need to log in again.

---

## c. Example protein and ligand files

Azulene Studio ships with bundled example files you can use right away:

```python
from azulene.examples import T4_LYSOZYME_BENZENE_PDB, BENZENE_BOUND_SDF, TOLUENE_SDF
```

The CLI will automatically detect these as **local files**, upload them to Azulene Studio, and replace the paths with storage URLs.

---

## d. Submit an `absolute_binding` job

The job type is:

```
absolute_binding
```

The required parameters are:

```json
{
  "pdb_file": "",
  "ligand_file": "",
  "ligand_smiles": ""
}
```

### **Example 1: Using the bundled sample files**

```python
from azulene import jobs
from azulene.examples import T4_LYSOZYME_BENZENE_PDB, BENZENE_BOUND_SDF

result = jobs.submit(
    job_type="absolute_binding",
    input_data={
        "pdb_file": str(T4_LYSOZYME_BENZENE_PDB),
        "ligand_file": str(BENZENE_BOUND_SDF),
        "ligand_smiles": "c1ccccc1"
    }
)

print(result)
```

You should see something like:

```
📤 Uploading local files...
✅ Job submitted successfully
{
  "job_id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "submitted",
  "message": "Job submitted successfully"
}
```

### **Example 2: Absolute Binding Free Energy (ABFE) (Ligand Already in PDB)**

This example runs an absolute_binding job using:
- A protein PDB file
- A ligand inside the PDB file
- A SMILES string for the ligand
- Shortened equilibration & production lengths
- Only 1 protocol repeat

```python
from azulene import auth, jobs
from azulene.examples import FKB_MODEL_PDB

# 1. Log in (Only if you haven't logged in)
auth.login(email="your@email.com", password="yourpassword")

# 2. Submit the job
input_data = {
    "pdb_file": str(FKB_MODEL_PDB),
    "ligand_smiles": "CS(=O)C",
    "protocol_repeats": 1,
    "ligand_in_pdb_file": True,
    "complex_prod_length": 0.1,
    "solvent_prod_length": 0.1,
    "complex_equil_length": 0.02,
    "solvent_equil_length": 0.02
}

result = jobs.submit(
    job_type="absolute_binding",
    input_data=input_data
)

print(result)
```

---

## e. Submit an `Absolute Hydration Free Energy` job

The job type is:

```text
aqueous_solvation
````

The required parameters are:

```json
{
  "smiles": ""
}
```

### **Example: Using a simple SMILES (`CCO`)**


```python
from azulene import jobs

result = jobs.submit(
    job_type="aqueous_solvation",
    input_data={
        "smiles": "CCO"
    }
)

print(result)
```

You should see something like:

```text
✅ Job submitted successfully
{
  "job_id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
  "status": "submitted",
  "message": "Job submitted successfully"
}
```


## f. Other useful commands

### **1. List your jobs**

Last 5 jobs (default):

```bash
python -m azulene.main jobs get-jobs
```

All jobs:

```bash
python -m azulene.main jobs get-jobs --all
```

Filter by job type and status:

```bash
python -m azulene.main jobs get-jobs \
  --job-type absolute_binding \
  --status completed
```

Filter by date:

```bash
python -m azulene.main jobs get-jobs \
  --start-date 2025-12-01T00:00:00Z \
  --end-date   2025-12-05T00:00:00Z
```

---

### **2. Check a specific job**

```bash
python -m azulene.main jobs get --job-id YOUR_JOB_ID
```

This returns:

* job status
* input data
* results (if completed)
* timestamps
* any error messages

---

### **3. Poll running jobs**

```bash
python -m azulene.main jobs check-running-jobs
```

Use this to check on running jobs.

---

### **4. Cancel a job**

```bash
python -m azulene.main jobs cancel --job-id YOUR_JOB_ID
```

Only works if the job is still running.

---

## g. Running jobs on a SLURM cluster

If an admin has granted your account SLURM access, you can run single jobs on a SLURM
cluster (for example `rune`) instead of Modal. You need no cluster account or SSH, and the
job costs the same credits.

```bash
# which clusters, partitions and limits your account can use
azulene clusters list
azulene clusters show rune --job-type docking

# run one job on SLURM
azulene jobs submit --job-type generate_conformers \
  --input-data '{"smiles": "CCO", "num_conformers": 2}' \
  --platform slurm --cluster rune

# or save the choice for this environment
azulene config compute --platform slurm --cluster rune
```

See **[docs/slurm.md](docs/slurm.md)** for the full guide: resource flags (`--cpus`, `--mem`,
`--time-limit`), how flags, `AZULENE_COMPUTE_*` variables and saved defaults combine, bounding
queue time with `jobs wait --queue-timeout`, cancels and submits the cluster has not confirmed yet
(never resubmit an unconfirmed job), error codes, batches, and library usage
(`jobs.submit(..., compute=...)`).

---

<a name="Azulene-Opal"></a>
# Azulene Studio


This guide shows how to:

1. Log in
2. Submit a job
3. Inspect and filter jobs
4. Get / cancel a specific job
5. Poll running jobs
6. Check service health & job types
7. Submit a batch of jobs

---

## How to download Azulene Studio

```shellscript
pip install azulene-studio
```

## 0. Imports (Python)

```python
from azulene import auth, jobs
```

---

## 1. Log in


```python
from azulene import auth

res = auth.login(email="test@example.com", password="pass123")
print(res)  # {"ok": True, "message": "Logged in successfully!"}
```

You stay logged in via locally stored tokens until you explicitly log out.

---

## 2. Check who you are


```python
from azulene import auth

res = auth.whoami()
print(res)
# {
#   "ok": True,
#   "user": { ... full user object ... },
#   "slim": {
#       "email": "...",
#       "role": "...",
#       "approved": True,
#       ...
#   }
# }
```

---

## 3. Submit a single job

Example job type: `generate_conformers` with a SMILES and number of conformers.

```python
from azulene import jobs

res = jobs.submit(
    job_type="generate_conformers",
    input_data={"smiles": "CCO", "num_conformers": 5},  # dict
)
print(res)
# {"ok": True, "data": {"job_id": "...", "status": "submitted", ...}}
```

(You *can* also pass a JSON string instead of a dict if you want.)

---

## 4. List and filter jobs

By default, the server returns **the last 5 jobs** for the current user.
You can ask for all jobs, limit, or filter by job_type, status, or date range.


```python
from azulene import jobs

# Last 5 jobs (default)
print(jobs.get_jobs())

# All jobs
print(jobs.get_jobs(all_jobs=True))

# Last 10 jobs
print(jobs.get_jobs(limit=10))

# Filter by job_type and status
print(
    jobs.get_jobs(
        job_type="generate_conformers",
        status="completed",
    )
)

# Filter by created_at date range (ISO timestamps)
print(
    jobs.get_jobs(
        start_date="2025-12-01T00:00:00Z",
        end_date="2025-12-05T00:00:00Z",
    )
)
```

Each call returns something like:

```python
{"ok": True, "data": [ { "id": "...", "job_type": "...", ... }, ... ]}
```

---

## 5. Get a specific job

Once you have a `job_id`, you can fetch that job’s details.


```python
from azulene import jobs

res = jobs.get(job_id="YOUR_JOB_ID")
print(res)
# {"ok": True, "data": { "id": "...", "status": "...", "input_data": {...}, "results": {...}, ... }}
```

---

## 6. Cancel a job

If a job is still running, you can cancel it.


```python
from azulene import jobs

res = jobs.cancel(job_id="YOUR_JOB_ID")
print(res)
# {"ok": True, "data": {...}}
```

---

## 7. Poll running jobs

This endpoint checks any currently running jobs and update their statuses.


```python
from azulene import jobs

res = jobs.check_running_jobs()
print(res)
# {"ok": True, "data": {...}}  # depends on your backend payload
```

---

## 8. Health check

Check that the Azulene Studio backend is reachable.


```python
from azulene import jobs

res = jobs.check_health()
print(res)
# {"ok": True, "data": {...}}  on success
```


---

## 9. Discover available job types

List job types supported by the current backend.


```python
from azulene import jobs

res = jobs.get_job_types()
print(res)
# {"ok": True, "data": {"job_types": [{"id": "generate_conformers", "name": "3D Molecular Conformer Generation", ...}, ...]}}
```


---

## 10. Submit a batch of jobs (same job_type, many inputs)

You can submit **multiple jobs at once** for a single `job_type`.
Each entry in the list becomes a **separate job** under the hood.


```python
from azulene import jobs

small_input_list = [
    {"smiles": "CCO",   "num_conformers": 5},
    {"smiles": "CCCO",  "num_conformers": 3},
    {"smiles": "CCcndO","num_conformers": 2},
]

res = jobs.submit_batch_jobs(
    job_type="generate_conformers",
    input_data=small_input_list,
)
print(res)
# {
#   "ok": True,
#   "results": [
#       {
#         "index": 0,
#         "input": {...},
#         "response": {
#             "ok": True,
#             "data": {
#                 "job_id": "...",
#                 "status": "submitted",
#                 "message": "Job submitted successfully",
#                 ...
#             }
#         }
#       },
#       ...
#   ]
# }
```

---

## 11. Log out

When you’re done, you can clear the local tokens.


```python
from azulene import auth

res = auth.logout()
print(res)  # {"ok": True}
```

---

## TL;DR minimal workflows

```python
from azulene import auth, jobs

# 1) Log in
auth.login(email="test@example.com", password="pass123")

# 2) Submit a job
submit_res = jobs.submit(
    job_type="generate_conformers",
    input_data={"smiles": "CCO", "num_conformers": 5},
)
print(submit_res)

# 3) List recent jobs
print(jobs.get_jobs())

# 4) Fetch that job by ID
job_id = submit_res["data"]["job_id"]
print(jobs.get(job_id=job_id))
```


### Help Commands

```bash
python -m azulene.main --help

python -m azulene.main jobs --help

python -m azulene.main jobs submit --help
```


<a name="macrocycle-chaining"></a>
## Chaining a macrocycle run into Protein-Ligand Interaction Energy / Protein-Ligand Pose Refinement

`boltz_macrocycle` folds the complex twice.

The **peptide fold** is the tool's primary output and is unchanged: it produces
`affinity_pkd`, the crosslink report, the `top_k_*` interface scores and the
`pose_*.pdb` files shown in the viewer.

The **ligand fold** co-folds the same system a second time with the binder
declared as a molecule from its own SMILES, affinity head off. It exists only
for what happens after prediction: **Protein-Ligand Interaction Energy** (`opal_ml_score`) and
**Protein-Ligand Pose Refinement** (`opal_ml_optimize`) take a ligand, so without it the binder's
chemistry has to be re-perceived from diffusion coordinates — which on a stapled
peptide returned an amide as a hemiaminal and a hydrocarbon staple as a
bicyclobutane. Set the `ligand_arm` input to `false` to skip it: the result goes
back to a single fold and the run takes roughly half as long.

### The one thing to get right when you chain

Submit the `opal_ml_inputs` block the result publishes, and read
`opal_ml_inputs.from_arm` to know which fold it describes.

* `from_arm: "ligand"` — the ligand fold ran, and this block is **its** complex,
  chains and `ligand_smiles`. Those coordinates are not the `pose_*.pdb` files,
  and `affinity_pkd` does not refer to them. `arm_note` says the same thing in
  the payload.
* `from_arm: "peptide"` — the ligand fold was turned off, or could not resolve
  the binder to a molecule. The block is the two-chain peptide hand-off as
  before, and a `warnings` entry says which of the two it was.

Either way the block is submittable as it stands. Do not rebuild it from
`pose_*.pdb`.

Both folds' hand-offs are reachable. `opal_ml_inputs` is the recommended one;
`opal_ml_inputs_by_arm` is `{"peptide": {...}, "ligand": {...}}`, carrying
whichever arms produced a usable hand-off. Reach for it when you specifically
want to score the peptide complex `affinity_pkd` describes rather than the
recommended one — which is the one case where the recommended block is not what
you want.

```python
from azulene import jobs

results = jobs.get(job_id=macrocycle_job_id)["data"]["results"]
handoff = results["opal_ml_inputs"]

print(handoff["from_arm"])        # "ligand" or "peptide"
print(handoff["usage"])           # the routing this job wants, in words

payload = {
    "protein_file": handoff["complex_file"]["download_url"],
    "chain_id": handoff["receptor_chain"],
    "binder_chain": handoff["binder_chain"],
}
if handoff.get("ligand_smiles"):
    payload["ligand_smiles"] = handoff["ligand_smiles"]

jobs.submit("opal_ml_score", payload)
```

### Naming the binder's chemistry

The ligand fold needs a SMILES for the binder. Three ways to get one, in the
order the job tries them:

| Input           | `ligand_smiles_source` | When to use it |
| --------------- | ---------------------- | -------------- |
| `ligand_smiles` | `supplied`             | You want a specific molecule or protonation state. Used verbatim — it is not re-charged at pH 7.4. |
| `helm`          | `helm`                 | You already describe the binder in HELM2. Read for CHEMISTRY only, never as a starting conformer. The reader here knows far fewer monomers than the one `peptide_structure` uses, so a valid HELM naming an ncAA may not parse; it then falls through to the CCD assembly with a warning and `ligand_smiles_source` comes back `ccd`, so the fold still runs and the envelope records that the HELM was not the source. |
| neither         | `ccd`                  | The default. Assembled from `binder.sequence`, `modifications` and `bonds` using the same PDB Chemical Component Dictionary entries the peptide fold uses. |

### Result keys the ligand fold adds

Present only when the ligand fold ran.

| Key                           | Type    | Meaning |
| ----------------------------- | ------- | ------- |
| `ligand_smiles`               | string  | The molecule that was folded. |
| `ligand_smiles_source`        | string  | `ccd`, `helm` or `supplied` — whether the chemistry was derived or asserted. |
| `ligand_n_heavy_atoms`        | integer | Heavy-atom count of that molecule. |
| `ligand_net_charge`           | integer | Formal net charge of that molecule. |
| `arm_interface_agreement`     | number  | Jaccard overlap of the receptor residues each fold's top pose contacts. The one cross-arm number that means something: it needs no atom correspondence between a polymer and a ligand, and it answers whether representing the binder differently moved it to a different site. |
| `arm_binder_centroid_shift_a` | number  | Distance in Ångström between the two folds' top-pose binder centroids. |
| `opal_ml_inputs_by_arm`       | object  | `{"peptide": …, "ligand": …}` — both folds' hand-offs, for when you want the one `opal_ml_inputs` did not recommend. Only arms that produced a usable hand-off appear. |
| `ligand_arm`                  | object  | The ligand fold's own block — `smiles`, `smiles_source`, `n_heavy_atoms`, `net_charge`, `largest_ring`, `n_samples`, `n_poses_returned`, `n_binder_tokens` and its own `top_k_labels` / `top_k_ipsae` / `top_k_iptm` / `top_k_pdockq2` / `top_k_mean_plddt` / `top_k_cluster_size`. |

The ligand fold's `top_k_ipsae` and `top_k_pdockq2` are nested inside
`ligand_arm` rather than placed beside the peptide fold's, because they are not
on the same scale: a polymer is one token per residue and a ligand one per atom,
so the same binder is 14 tokens in one fold and 119 in the other. Rank the
ligand fold's poses against each other with them; do not compare them across
folds. `arm_interface_agreement` is the number that does compare.

## Opal PPI naming compatibility

Use `opal_ppi` for **Rank protein-protein interfaces using Opal**. Existing
`boltz_ppi` submissions and example selectors continue to address the same
function; permissions, credits, inputs, scores, and pose ordering are unchanged.
Other Boltz tools keep their names.

This SDK requests `X-Opal-Public-Names: 1` when calling the API. PPI catalog and
result responses then use `opal_ppi`, public example URLs, and Opal download
filenames. Internal worker paths are omitted. If an existing result reader
requires the legacy response fields, set `AZULENE_LEGACY_TOOL_NAMES=1` before
calling the SDK. API clients that omit the header retain the legacy response
format. Previously generated archives retain their original contents.

Release dependency: publish the three `v1/opal/opal_ppi/` example aliases and
deploy the backend alias and response support before releasing these CLI/SDK
changes. The catalog snapshot in this branch records source changes; it is
not proof that a production deployment is ready.

<a name="job-types"></a>
<!-- BEGIN GENERATED job-types — tools/regen_job_types_docs.py -->
<!-- Generated by tools/regen_job_types_docs.py from the live get-func-defs catalog on 2026-10-28 (33 job types). Do not edit by hand. -->

## Azulene Studio Job Types

Every tool below is generated from the live Azulene Studio catalog — the same
definitions the web wizard and `azulene jobs get-job-types` read. Do not
hand-edit this section; run `python tools/regen_job_types_docs.py` instead.
The same content is kept standalone in
[Job_Types.md](https://github.com/Azulene-Labs/opal-cli/blob/main/Job_Types.md).

Field names are **not** shared between tools. For the same protein,
`absolute_binding` takes `pdb_file` and `docking` takes `structure_file`.
Copy each tool's own table.

This is the full submittable surface: fields that the Studio wizard or
`azulene jobs get-job-types` hide as operational detail (`platform`, derived
values) are documented here too.

You can fetch the same catalog live:

```bash
azulene jobs get-job-types              # id / name table
azulene jobs get-job-types --markdown   # this reference, regenerated
```

---

### Overview

| ID                             | Name                                                   | Category                 | Description |
| ------------------------------ | ------------------------------------------------------ | ------------------------ | ----------- |
| `protac_pose_prediction`       | PROTAC Ternary Complex Pose Prediction                 | Docking & Pose           | Predict up to ten ranked PROTAC ternary-complex poses from target–warhead and E3–recruiter… |
| `generate_conformers`          | 3D Molecular Conformer Generation                      | Structure Generation     | Generate 1–100 diverse 3D conformers from SMILES for docking, shape and pharmacophore… |
| `aqueous_solvation`            | Absolute Hydration Free Energy                         | Solvation & Permeability | Calculate hydration free energy in kcal/mol by alchemical decoupling in explicit water to… |
| `predict_protein_properties`   | Protein and Peptide Developability Prediction          | Mutation & Design        | Screen protein or peptide sequences for solubility, aggregation, subcellular localization… |
| `relative_fe`                  | Relative Hydration Free Energy                         | Solvation & Permeability | Calculate the relative hydration free energy (ΔΔG) of two similar molecules from A-to-B… |
| `relative_fe_uaa`              | Relative Hydration Free Energy for ncAAs               | Solvation & Permeability | Calculate relative hydration free energy (ΔΔG) for amino acid substitutions, including… |
| `solvent_transfer_free_energy` | Solvent Transfer Free Energy                           | Solvation & Permeability | Calculate transfer free energy between two solvents using alchemical transformations. Provide… |
| `nonaqueous_solvation`         | Absolute Solvation Free Energy (Non-Aqueous)           | Solvation & Permeability | Calculate absolute solvation free energy in a non-aqueous solvent using alchemical… |
| `reaction_free_energy`         | Aqueous Reaction Free Energy                           | Reactivity & pKa         | Calculates the reaction free energy in aqueous solution. |
| `deprotonation_fe`             | Deprotonation Free Energy (pKa)                        | Reactivity & pKa         | Estimate deprotonation free energy in water from gas-phase and solvation contributions… |
| `absolute_binding`             | Absolute Binding Free Energy (ABFE)                    | Binding Affinity         | Calculate absolute binding free energy for a ligand–protein complex in water. The short… |
| `relative_binding`             | Relative Binding Free Energy (RBFE)                    | Binding Affinity         | Calculates the relative binding free energy between two ligands to a protein in aqueous… |
| `lipid_permeation`             | Lipid Bilayer Permeation Free Energy                   | Solvation & Permeability | Calculate the free-energy profile of a molecule or peptide crossing a lipid bilayer using… |
| `lipid_permeation_rfe`         | Relative Lipid Bilayer Permeation Free Energy          | Solvation & Permeability | Calculate the relative free energy of lipid-bilayer permeation for two molecules using… |
| `covalent_docking`             | Covalent Docking                                       | Docking & Pose           | Predict, refine, and score covalent inhibitor poses at a specified protein residue. Supply a… |
| `docking`                      | Docking                                                | Docking & Pose           | Predict noncovalent binding poses for small molecules, macrocycles and cyclic peptides. Supply… |
| `sequential_docking`           | Cofactor & Ligand Docking                              | Docking & Pose           | Dock ligands, fragments, or cofactors in sequence, keeping earlier poses fixed for each later… |
| `opal_ml_optimize`             | Protein-Ligand Pose Refinement                         | Docking & Pose           | Refine a supplied protein–ligand or protein–peptide binding pose with Opal, then score the… |
| `opal_ml_score`                | Protein-Ligand Scoring                                 | Binding Affinity         | Score a supplied protein–ligand pose with Opal without relaxing its coordinates. For peptide… |
| `peptide_structure`            | Peptide 3D Structure Generation (HELM)                 | Structure Generation     | Generate 3D structures of linear or cyclic peptides from HELM2, including noncanonical… |
| `protein_mutation_ddg_fold`    | Protein Mutation Folding Stability (Physics-based ΔΔG) | Protein Stability        | Estimate mutation-induced changes in folding free energy (ΔΔG) using relative free-energy… |
| `boltz_prediction`             | Boltz-2 Structure + Affinity Prediction                | Co-folding               | Predict complex structures with up to 12 protein chains, 8 cofactors, and 1 ligand using… |
| `opal_ppi`                     | Rank protein-protein interfaces using Opal             | Co-folding               | Predict and rank protein–protein interfaces from two sequences, returning complex structures… |
| `boltz_macrocycle`             | Macrocycle and Cyclic Peptide Binding Prediction       | Co-folding               | Predict receptor-bound macrocyclic or stapled peptide poses and rank them by interface… |
| `chai_prediction`              | Chai-1 Complex Structure Prediction                    | Co-folding               | Predict all-atom structures of complexes containing proteins, RNA, DNA, and small molecules… |
| `openfold3_prediction`         | OpenFold3 Complex Structure Prediction                 | Co-folding               | Predict all-atom structures of proteins, RNA, DNA, and their complexes with small molecules… |
| `openfold2_prediction`         | OpenFold2 Protein Structure Prediction                 | Co-folding               | Predict single-chain or multimer protein structures with OpenFold2, including large proteins… |
| `mpnn_design`                  | ProteinMPNN Sequence Design (Inverse Folding)          | Mutation & Design        | Design candidate amino-acid sequences for a supplied backbone (inverse folding), with sequence… |
| `mpnn_stability`               | Protein Stability Prediction (ThermoMPNN)              | Protein Stability        | Predict mutation-induced changes in folding stability (ΔΔG, kcal/mol) from a protein structure… |
| `esm2_embed`                   | ESM-2 Protein Sequence Embeddings                      | Mutation & Design        | Convert protein sequences into ESM-2 embeddings: numeric vectors for similarity search… |
| `esm2_mutation_score`          | ESM-2 Zero-Shot Mutation Scoring                       | Mutation & Design        | Rank point mutations with ESM-2 without supplying training data. Higher scores indicate more… |
| `esmfold_predict`              | ESMFold Single-Chain Structure Prediction              | Structure Generation     | Predict a single-chain protein structure from up to 1024 residues without a multiple-sequence… |
| `crystal_prediction`           | Organic Crystal Structure Prediction (CSP)             | Structure Generation     | Predict organic crystal structures with Opal from either a SMILES string or an uploaded… |

---

### 1. PROTAC Ternary Complex Pose Prediction (`protac_pose_prediction`)

**Description:** Predict up to ten ranked PROTAC ternary-complex poses from target–warhead and E3–recruiter structures plus a linker SMILES. Download PROTAC and complex PDBs with ranking metrics; an optional reference enables PROTAC, pocket, and combined RMSD comparisons.

**Category:** Docking & Pose · **Docs:** <https://docs.azulenelabs.com/tools/protac_pose_prediction/> · **Submission modes:** `single`

#### Input Schema

| Field                       | Type    | Required | Default  | Description |
| --------------------------- | ------- | -------- | -------- | ----------- |
| `job_id`                    | string  | no       | —        | Assigned by the platform; any supplied value is replaced. |
| `target_pdb_content`        | file    | yes      | —        | PDB containing the target protein and its bound warhead. |
| `e3_pdb_content`            | file    | yes      | —        | PDB containing the E3 ligase and its bound recruiter. |
| `linker_smiles`             | string  | yes      | —        | A SMILES fragment with two attachment points: [*:1] bonds to the warhead, [*:2] to the E3 recruiter. |
| `warhead_attach_atom_idx`   | integer | yes      | —        | The warhead atom the linker bonds to. Count heavy atoms only, from 0, in the order they appear in the warhead ligand in the target PDB. Minimum 0. |
| `recruiter_attach_atom_idx` | integer | yes      | —        | The recruiter atom the linker bonds to. Count heavy atoms only, from 0, in the order they appear in the recruiter ligand in the E3 PDB. Minimum 0. |
| `target_chain`              | string  | no       | `A`      | One or more chain IDs of the target protein, comma separated: A, B, C. |
| `e3_chain_label`            | string  | no       | `B`      | One or more chain IDs of the E3 complex, comma separated: A, B, C. |
| `warhead_chain`             | string  | no       | `X`      | Single chain ID of the bound warhead in the target PDB. |
| `recruiter_chain`           | string  | no       | `Y`      | Single chain ID of the bound recruiter in the E3 PDB. |
| `preset`                    | string  | no       | `medium` | Choose how densely to sample target–E3 orientations. Finer searches use more compute. One of `quick`, `medium`, `long`. |
| `n_prescan_chunks`          | integer | no       | `8`      | Number of search tasks to run in parallel (1–16; recommended: 8). Range 1–16. |
| `warhead_smiles`            | string  | no       | —        | The warhead's SMILES, used to set bond orders. |
| `e3_anchor_smiles`          | string  | no       | —        | The recruiter's SMILES, used to set bond orders. |
| `gt_complex_pdb_content`    | file    | no       | —        | Experimental complex for comparing PROTAC, pocket, and combined RMSD. |
| `gt_ligand_resname`         | string  | no       | —        | The PROTAC's residue name in the reference file. Required once a reference is supplied. |
| `gt_target_chain`           | string  | no       | `A`      | Chain ID of the target protein in the reference file. |
| `gt_e3_chain`               | string  | no       | `B`      | Chain ID(s) of the E3 ligase in the reference file. |
| `keep_dirs`                 | boolean | no       | `true`   | Keep poses, overlays, and summaries in a downloadable ZIP (`opal jobs download`). Disable for the scalar JSON summary only. |

#### Example Input

```json
{
  "target_pdb_content": "<local path or storage key>",
  "e3_pdb_content": "<local path or storage key>",
  "linker_smiles": "[*:1]CCOCCOCC[*:2]",
  "warhead_attach_atom_idx": 15,
  "recruiter_attach_atom_idx": 17,
  "target_chain": "A",
  "e3_chain_label": "B,C,D",
  "preset": "quick"
}
```

`target_pdb_content`, `e3_pdb_content` take a local path — the SDK uploads it and substitutes the storage key — or a storage key you already have. Check the Required column above for which of them you have to supply.

#### Featured Examples

Run one with `azulene examples submit protac_pose_prediction <example-id>`, or fetch its inputs first with `azulene examples download`.

| Example ID            | Name                     | Description |
| --------------------- | ------------------------ | ----------- |
| `7jtp-wdr5-vhl-quick` | WDR5-VHL (7JTP) - quick  | Model the flexible MS67–WDR5–VHL complex at 20° sampling resolution and compare poses with the… |
| `6sis-brd4-vhl-quick` | BRD4-VHL (6SIS) - quick  | Model the macroPROTAC-1–BRD4–VHL complex at 20° sampling resolution and compare poses with the… |
| `7jtp-wdr5-vhl`       | WDR5-VHL (7JTP) - medium | Model MS67–WDR5–VHL at 15° resolution: the top-ranked pose was approximately 2.0 Å from 7JTP… |
| `6sis-brd4-vhl`       | BRD4-VHL (6SIS) - medium | Model macroPROTAC-1–BRD4–VHL at 15° resolution: a pose within 3 Å of 6SIS appeared in the top… |

---

### 2. 3D Molecular Conformer Generation (`generate_conformers`)

**Description:** Generate 1–100 diverse 3D conformers from SMILES for docking, shape and pharmacophore screening, and free-energy calculations. Sample torsional flexibility beyond a single lowest-energy structure.

**Category:** Structure Generation · **Docs:** <https://docs.azulenelabs.com/tools/generate_conformers/> · **Submission modes:** `single`, `batch`, `workflow_node`

#### Input Schema

| Field            | Type    | Required | Default | Description |
| ---------------- | ------- | -------- | ------- | ----------- |
| `smiles`         | string  | yes      | —       | SMILES notation of the molecule |
| `num_conformers` | integer | yes      | `5`     | Number of conformers to generate. Range 1–100. |

#### Example Input

```json
{
  "smiles": "CCO",
  "num_conformers": 5
}
```

#### Featured Examples

Run one with `azulene examples submit generate_conformers <example-id>`, or fetch its inputs first with `azulene examples download`.

| Example ID             | Name                 | Description |
| ---------------------- | -------------------- | ----------- |
| `aspirin-conformers`   | Aspirin conformers   | Generate aspirin conformers and compare the torsion angles of its flexible acetyl and carboxyl… |
| `ibuprofen-conformers` | Ibuprofen conformers | Generate five ibuprofen conformers to explore torsional variation across its four rotatable… |
| `caffeine-conformers`  | Caffeine conformers  | Generate five near-identical conformers of caffeine, a rigid molecule with no rotatable bonds. |

---

### 3. Absolute Hydration Free Energy (`aqueous_solvation`)

**Description:** Calculate hydration free energy in kcal/mol by alchemical decoupling in explicit water to compare how favorably molecules or peptides interact with water. Provide exactly one input: SMILES, HELM or a single-record SDF. SDF input retains your starting coordinates; SMILES input generates a new conformer.

**Category:** Solvation & Permeability · **Docs:** <https://docs.azulenelabs.com/tools/aqueous_solvation/> · **Submission modes:** `single`, `batch`, `workflow_node`

#### Input Schema

| Field                       | Type    | Required | Default | Description |
| --------------------------- | ------- | -------- | ------- | ----------- |
| `smiles`                    | string  | no       | —       | Molecule or peptide as SMILES. Provide exactly one of SMILES, HELM or an SDF file. |
| `sdf_file`                  | file    | no       | —       | Upload a single-record SDF instead of SMILES or HELM. Its coordinates and protonation define the starting structure; automatic protonation does not apply, so prepare the intended protonation state before upload. Multi-record SDFs are rejected. Accepts `.sdf`. |
| `helm`                      | string  | no       | —       | Peptide in HELM2 notation, for example PEPTIDE1{A.G.F.K.L}$$$$V2.0, with residue-based notation for cyclic, disulfide-bonded or non-canonical peptides. Full syntax: https://docs.azulenelabs.com/tools/peptide_structure/ |
| `conformer_method`          | string  | no       | `etkdg` | This setting has no effect; the calculation generates its own starting conformer. One of `etkdg`, `xtb`. |
| `assign_protonation_states` | boolean | no       | `true`  | Assign solute protonation at the specified pH. Disable if your inputs already have the intended protonation state. SDF input always uses the protonation in the file. |
| `ph`                        | number  | no       | `7`     | pH value for protonation state |
| `solvent_equil_length`      | number  | no       | `0.08`  | Solvent equilibration length in nanoseconds per replica. Minimum 0. |
| `solvent_prod_length`       | number  | no       | `0.4`   | Solvent production length in nanoseconds per replica. Minimum 0. |
| `vacuum_equil_length`       | number  | no       | `0.08`  | Vacuum equilibration length in nanoseconds per replica. Minimum 0. |
| `vacuum_prod_length`        | number  | no       | `0.4`   | Vacuum production length in nanoseconds per replica. Minimum 0. |
| `platform`                  | string  | no       | `CUDA`  | OpenMM compute platform for simulations. One of `CUDA`, `OpenCL`, `CPU`, `Reference`. |
| `protocol_repeats`          | integer | no       | `3`     | Number of protocol repeats for uncertainty estimation. Minimum 1. |
| `keep_dirs`                 | boolean | no       | `true`  | Keep full simulation outputs for download. |

#### Example Input

```json
{
  "smiles": "CCO"
}
```

#### Featured Examples

Run one with `azulene examples submit aqueous_solvation <example-id>`, or fetch its inputs first with `azulene examples download`.

| Example ID                   | Name                             | Description |
| ---------------------------- | -------------------------------- | ----------- |
| `ethanol`                    | Hydration free energy of ethanol | Calculate ethanol hydration free energy with a short demonstration protocol; the result is… |
| `methanol-aqueous-solvation` | Methanol hydration               | Calculate hydration free energy for methanol, whose hydroxyl group donates and accepts… |
| `toluene-aqueous-solvation`  | Toluene hydration                | Calculate hydration free energy for toluene, a hydrophobic aromatic with no hydrogen-bond… |

---

### 4. Protein and Peptide Developability Prediction (`predict_protein_properties`)

**Description:** Screen protein or peptide sequences for solubility, aggregation, subcellular localization, intrinsic disorder, toxicity, melting temperature (Tm), and MHC class I/II binding. Provide either an amino-acid sequence or HELM notation to prioritize candidates for testing.

**Category:** Mutation & Design · **Docs:** <https://docs.azulenelabs.com/tools/predict_protein_properties/> · **Submission modes:** `single`, `batch`, `workflow_node`

#### Input Schema

| Field                | Type    | Required | Default | Description |
| -------------------- | ------- | -------- | ------- | ----------- |
| `sequence`           | string  | no       | —       | Sequence using the 20 standard amino acids. Provide this or HELM, not both; sequences above 1022 residues are truncated, and those above 2044 are rejected. |
| `helm`               | string  | no       | —       | HELM2 peptide, e.g. PEPTIDE1{A.G.F.K.L}$$$$V2.0; provide this or sequence, not both. All requested properties use only the first PEPTIDE block; later blocks do not contribute to the predictions. Cyclization is ignored, and bracketed residues such as [Aib] and [dF] are deleted, shortening the sequence by one residue each. Full syntax: https://docs.azulenelabs.com/tools/peptide_structure/ |
| `properties`         | array   | no       | `[]`    | Choose properties to predict, or leave empty for the full panel. Items are any of `solubility`, `aggregation`, `disorder`, `localization`, `toxicity`, `tm`, `mhc`. |
| `properties_options` | object  | no       | `{}`    | Optional settings for MHC binding and localization; other properties have no options. Leave empty for defaults, or use, for example, {"mhc": {"peptide_length": 15, "mhc_class": "II"}}. |
| `return_per_residue` | boolean | no       | `false` | Return residue-level disorder and aggregation-hotspot scores to locate regions driving the predictions. Off by default; large results are downloadable. |
| `return_embedding`   | boolean | no       | `false` | Return a numeric sequence fingerprint for similarity search or clustering. Off by default. |
| `model_variant`      | string  | no       | `650M`  | The property predictors were trained on the 650M model, so 650M is the only choice. One of `650M`. |

#### Example Input

```json
{
  "sequence": "MKTAYIAKQRQISFVKSHFSRQLEERLGLIEVQAYLAKHIGCNHIGFRLT",
  "properties": [
    "solubility",
    "disorder",
    "tm"
  ]
}
```

#### Featured Examples

Run one with `azulene examples submit predict_protein_properties <example-id>`, or fetch its inputs first with `azulene examples download`.

| Example ID                           | Name                                     | Description |
| ------------------------------------ | ---------------------------------------- | ----------- |
| `protein-properties-alpha-synuclein` | α-synuclein (intrinsic disorder)         | Predict disorder, aggregation, and solubility for intrinsically disordered α-synuclein. |
| `protein-properties-melittin`        | Melittin (toxicity / solubility)         | Predict toxicity, solubility, and localization for the honeybee-venom peptide melittin. |
| `protein-properties-ova-peptide`     | OVA323-339 epitope (MHC-II + solubility) | Predict MHC class II binding and solubility for the OVA323-339 model epitope. |
| `ubiquitin`                          | Ubiquitin property profile               | Predict solubility, aggregation, disorder, and melting temperature for human ubiquitin. |
| `amyloid-beta-42`                    | Amyloid-beta(1-42) profile               | Predict properties of amyloid-beta(1-42), with a focus on aggregation and disorder. |

---

### 5. Relative Hydration Free Energy (`relative_fe`)

**Description:** Calculate the relative hydration free energy (ΔΔG) of two similar molecules from A-to-B transformations in water and vacuum using the same atom mapping: water minus vacuum. By default, vacuum sampling is five times longer, and total runtime is about three times that of the water calculation alone.

**Category:** Solvation & Permeability · **Docs:** <https://docs.azulenelabs.com/tools/relative_fe/> · **Submission modes:** `single`

#### Input Schema

| Field                       | Type    | Required | Default | Description |
| --------------------------- | ------- | -------- | ------- | ----------- |
| `smiles_a`                  | string  | yes      | —       | SMILES of molecule A. |
| `smiles_b`                  | string  | yes      | —       | SMILES of molecule B. |
| `assign_protonation_states` | boolean | no       | `true`  | Assign solute protonation at the specified pH. Disable if your inputs already have the intended protonation state. |
| `ph`                        | number  | no       | `7`     | pH value for protonation state |
| `equil_length`              | number  | no       | `0.08`  | Equilibration length in nanoseconds per replica for the water leg; the vacuum leg uses five times this. Minimum 0. |
| `prod_length`               | number  | no       | `0.4`   | Production length in nanoseconds per replica for the water leg; the vacuum leg uses five times this. Minimum 0. |
| `platform`                  | string  | no       | `CUDA`  | OpenMM compute platform for simulations. One of `CUDA`, `OpenCL`, `CPU`, `Reference`. |
| `protocol_repeats`          | integer | no       | `3`     | Number of protocol repeats for uncertainty estimation. Minimum 1. |
| `keep_dirs`                 | boolean | no       | `true`  | Keep full simulation outputs for download. |

#### Example Input

```json
{
  "smiles_a": "CCO",
  "smiles_b": "CCC"
}
```

#### Featured Examples

Run one with `azulene examples submit relative_fe <example-id>`, or fetch its inputs first with `azulene examples download`.

| Example ID               | Name                | Description |
| ------------------------ | ------------------- | ----------- |
| `ethanol-to-propane`     | Ethanol to propane  | Relative hydration free energy for ethanol to propane using a single-topology alchemical… |
| `benzene-to-toluene-fe`  | Benzene to toluene  | Relative hydration free energy for adding a methyl to benzene. |
| `phenol-to-catechol-fe`  | Phenol to catechol  | Relative hydration free energy for adding a hydroxyl to phenol. |
| `methanol-to-ethanol-fe` | Methanol to ethanol | Relative hydration free energy for methanol to ethanol using a short demonstration protocol… |

---

### 6. Relative Hydration Free Energy for ncAAs (`relative_fe_uaa`)

**Description:** Calculate relative hydration free energy (ΔΔG) for amino acid substitutions, including non-canonical residues, from A-to-B transformations in water and vacuum using the same atom mapping: water minus vacuum. By default, vacuum sampling is five times longer, and total runtime is about three times that of the water calculation alone.

**Category:** Solvation & Permeability · **Docs:** <https://docs.azulenelabs.com/tools/relative_fe_uaa/> · **Submission modes:** `single`

#### Input Schema

| Field                       | Type    | Required | Default | Description |
| --------------------------- | ------- | -------- | ------- | ----------- |
| `sequence_a`                | string  | yes      | —       | Peptide sequence from N to C: use uppercase letters for natural residues (`GAG`) and angle brackets for non-canonical residues by library name (`<pF-Phe>`) or SMILES (`<NC(C)(C)C(=O)O>`). Alternatively, use a lowercase placeholder (`GxG`) and define it under Advanced Settings → Placeholder definitions. |
| `sequence_b`                | string  | yes      | —       | Second sequence in the same notation, usually with one residue changed. The result is B relative to A. |
| `uaa_map`                   | string  | no       | —       | Map each lowercase placeholder to a residue. Leave empty for inline residues such as `<pF-Phe>`. |
| `assign_protonation_states` | boolean | no       | `true`  | Assign solute protonation at the specified pH. Disable if your inputs already have the intended protonation state. |
| `ph`                        | number  | no       | `7`     | pH value for protonation state |
| `equil_length`              | number  | no       | `0.08`  | Equilibration length in nanoseconds per replica for the water leg; the vacuum leg uses five times this. Minimum 0. |
| `prod_length`               | number  | no       | `0.4`   | Production length in nanoseconds per replica for the water leg; the vacuum leg uses five times this. Minimum 0. |
| `platform`                  | string  | no       | `CUDA`  | OpenMM compute platform for simulations. One of `CUDA`, `OpenCL`, `CPU`, `Reference`. |
| `protocol_repeats`          | integer | no       | `3`     | Number of protocol repeats for uncertainty estimation. Minimum 1. |
| `keep_dirs`                 | boolean | no       | `true`  | Keep full simulation outputs for download. |

##### `uaa_map` — one entry

| Field         | Type   | Required | Default | Description |
| ------------- | ------ | -------- | ------- | ----------- |
| `placeholder` | string | yes      | —       | Match the placeholder in sequence A or B: one lowercase letter, optionally followed by digits, such as x or a2. |
| `residue`     | string | yes      | —       | Residue library name or SMILES represented by the placeholder. |

#### Example Input

```json
{
  "sequence_a": "YGH",
  "sequence_b": "<pF-Phe>GH"
}
```

#### Featured Examples

Run one with `azulene examples submit relative_fe_uaa <example-id>`, or fetch its inputs first with `azulene examples download`.

| Example ID        | Name                            | Description |
| ----------------- | ------------------------------- | ----------- |
| `ygh-pf-phe-scan` | ncAA scan: Tyr to pF-Phe in YGH | Relative hydration free energy for replacing tyrosine with non-canonical… |

---

### 7. Solvent Transfer Free Energy (`solvent_transfer_free_energy`)

**Description:** Calculate transfer free energy between two solvents using alchemical transformations. Provide the solute as either SMILES or HELM; SMILES retain the specified protonation and charge, while HELM uses pH 7.4 protonation. Each solvent must be net-neutral.

**Category:** Solvation & Permeability · **Docs:** <https://docs.azulenelabs.com/tools/solvent_transfer_free_energy/> · **Submission modes:** `single`

#### Input Schema

| Field                       | Type    | Required | Default | Description |
| --------------------------- | ------- | -------- | ------- | ----------- |
| `smiles_solute`             | string  | no       | —       | Solute as SMILES, with the intended protonation state and net charge. Provide this or HELM; SMILES are simulated as written. |
| `helm`                      | string  | no       | —       | Peptide in HELM2 notation, e.g. PEPTIDE1{A.G.F.K.L}$$$$V2.0: dot-separated single-letter residues, with non-canonical residues in brackets, e.g. [Aib] or [dF]. HELM uses pH 7.4 protonation; supply SMILES instead for a different state. Full syntax: https://docs.azulenelabs.com/tools/peptide_structure/ |
| `conformer_method`          | string  | no       | `etkdg` | This setting has no effect; the calculation generates its own starting conformer. One of `etkdg`, `xtb`. |
| `smiles_solvent_a`          | string  | yes      | —       | First solvent as SMILES, with total formal charge 0. Enter `None` for vacuum. |
| `smiles_solvent_b`          | string  | yes      | —       | Second solvent as SMILES, with total formal charge 0. Enter `None` for vacuum. |
| `assign_protonation_states` | boolean | no       | `false` | This setting has no effect. Supply SMILES with the intended protonation state. |
| `ph`                        | number  | no       | `7`     | This setting has no effect; no pH-based adjustment is applied to SMILES input. |
| `solvent_equil_length`      | number  | no       | `0.08`  | Equilibration length in nanoseconds for each solvent calculation. Minimum 0. |
| `solvent_prod_length`       | number  | no       | `0.4`   | Production length in nanoseconds for each solvent calculation. Minimum 0. |
| `vacuum_equil_length`       | number  | no       | `0.08`  | Vacuum equilibration length in nanoseconds, used when either solvent is `None`. Minimum 0. |
| `vacuum_prod_length`        | number  | no       | `0.4`   | Production length in nanoseconds for the vacuum leg. Minimum 0. |
| `platform`                  | string  | no       | `CUDA`  | OpenMM compute platform for simulations. One of `CUDA`, `OpenCL`, `CPU`, `Reference`. |
| `protocol_repeats`          | integer | no       | `3`     | Independent replicas used to estimate uncertainty, combining uncertainty within each replica with variation between replicas. Minimum 1. |
| `keep_dirs`                 | boolean | no       | `false` | Keep simulation outputs for download. |

#### Example Input

```json
{
  "smiles_solute": "CCO",
  "smiles_solvent_a": "None",
  "smiles_solvent_b": "O"
}
```

#### Featured Examples

Run one with `azulene examples submit solvent_transfer_free_energy <example-id>`, or fetch its inputs first with `azulene examples download`.

| Example ID                     | Name                                | Description |
| ------------------------------ | ----------------------------------- | ----------- |
| `ethanol-water-to-methanol`    | Ethanol transfer: water to methanol | Transfer free energy of ethanol from water to methanol, calculated from absolute solvation… |
| `benzene-water-to-cyclohexane` | Benzene water to cyclohexane        | Transfer free energy of benzene between water and cyclohexane. |
| `toluene-water-to-octanol`     | Toluene water to octanol            | Transfer free energy of toluene between water and octanol (logP-type). |

---

### 8. Absolute Solvation Free Energy (Non-Aqueous) (`nonaqueous_solvation`)

**Description:** Calculate absolute solvation free energy in a non-aqueous solvent using alchemical transformations. Provide the solute as either SMILES or HELM; SMILES retain the specified protonation and charge, while HELM uses pH 7.4 protonation. The solvent must be net-neutral.

**Category:** Solvation & Permeability · **Docs:** <https://docs.azulenelabs.com/tools/nonaqueous_solvation/> · **Submission modes:** `single`

#### Input Schema

| Field                       | Type    | Required | Default | Description |
| --------------------------- | ------- | -------- | ------- | ----------- |
| `smiles_solute`             | string  | no       | —       | Solute as SMILES, with the intended protonation state and net charge. Provide this or HELM; SMILES are simulated as written. |
| `helm`                      | string  | no       | —       | Peptide in HELM2 notation, e.g. PEPTIDE1{A.G.F.K.L}$$$$V2.0: dot-separated single-letter residues, with non-canonical residues in brackets, e.g. [Aib] or [dF]. HELM uses pH 7.4 protonation; supply SMILES instead for a different state. Full syntax: https://docs.azulenelabs.com/tools/peptide_structure/ |
| `conformer_method`          | string  | no       | `etkdg` | This setting has no effect; the calculation generates its own starting conformer. One of `etkdg`, `xtb`. |
| `smiles_solvent`            | string  | yes      | —       | Organic solvent as SMILES, e.g. CCO (ethanol), CO (methanol), CCCCCC (hexane) or CS(=O)C (DMSO). Total formal charge must be 0. |
| `assign_protonation_states` | boolean | no       | `false` | This setting has no effect. Supply SMILES with the intended protonation state. |
| `ph`                        | number  | no       | `7`     | This setting has no effect; no pH-based adjustment is applied to SMILES input. |
| `solvent_equil_length`      | number  | no       | `0.08`  | Solvent equilibration length in nanoseconds per replica. Minimum 0. |
| `solvent_prod_length`       | number  | no       | `0.4`   | Solvent production length in nanoseconds per replica. Minimum 0. |
| `vacuum_equil_length`       | number  | no       | `0.08`  | Vacuum equilibration length in nanoseconds per replica. Minimum 0. |
| `vacuum_prod_length`        | number  | no       | `0.4`   | Vacuum production length in nanoseconds per replica. Minimum 0. |
| `platform`                  | string  | no       | `CUDA`  | OpenMM compute platform for simulations. One of `CUDA`, `OpenCL`, `CPU`, `Reference`. |
| `protocol_repeats`          | integer | no       | `3`     | Independent replicas used to estimate uncertainty, combining uncertainty within each replica with variation between replicas. Minimum 1. |
| `keep_dirs`                 | boolean | no       | `false` | Keep simulation outputs for download. |

#### Example Input

```json
{
  "smiles_solute": "CCO",
  "smiles_solvent": "CO"
}
```

#### Featured Examples

Run one with `azulene examples submit nonaqueous_solvation <example-id>`, or fetch its inputs first with `azulene examples download`.

| Example ID            | Name                             | Description |
| --------------------- | -------------------------------- | ----------- |
| `ethanol-in-methanol` | Solvation of ethanol in methanol | Absolute solvation free energy of ethanol in methanol by alchemical decoupling (short demo… |

---

### 9. Aqueous Reaction Free Energy (`reaction_free_energy`)

**Description:** Calculates the reaction free energy in aqueous solution.

**Category:** Reactivity & pKa · **Docs:** <https://docs.azulenelabs.com/tools/reaction_free_energy/> · **Submission modes:** `single`

#### Input Schema

| Field                    | Type    | Required | Default | Description |
| ------------------------ | ------- | -------- | ------- | ----------- |
| `smiles_reactant`        | string  | yes      | —       | Reactant SMILES, separated by commas. |
| `smiles_product`         | string  | yes      | —       | Product SMILES, separated by commas. |
| `stoichiometry_reactant` | string  | yes      | —       | Comma-separated stoichiometric coefficients, in the same order as the reactants. |
| `stoichiometry_product`  | string  | yes      | —       | Comma-separated stoichiometric coefficients, in the same order as the products. |
| `solvent_equil_length`   | number  | no       | `0.08`  | Solvent equilibration length in nanoseconds per replica. Minimum 0. |
| `solvent_prod_length`    | number  | no       | `0.4`   | Solvent production length in nanoseconds per replica. Minimum 0. |
| `vacuum_equil_length`    | number  | no       | `0.08`  | Vacuum equilibration length in nanoseconds per replica. Minimum 0. |
| `vacuum_prod_length`     | number  | no       | `0.4`   | Vacuum production length in nanoseconds per replica. Minimum 0. |
| `platform`               | string  | no       | `CUDA`  | OpenMM compute platform for simulations. One of `CUDA`, `OpenCL`, `CPU`, `Reference`. |
| `protocol_repeats`       | integer | no       | `3`     | Number of protocol repeats for uncertainty estimation. Minimum 1. |
| `use_xtb`                | boolean | no       | `true`  | Include the gas-phase reaction term from xTB. If disabled, the result contains only the solvation contribution, not the full reaction free energy. |
| `keep_dirs`              | boolean | no       | `true`  | Keep full simulation outputs for download. |

#### Example Input

```json
{
  "smiles_reactant": "CC=O",
  "smiles_product": "C=CO",
  "stoichiometry_reactant": "1",
  "stoichiometry_product": "1",
  "use_xtb": true
}
```

#### Featured Examples

Run one with `azulene examples submit reaction_free_energy <example-id>`, or fetch its inputs first with `azulene examples download`.

| Example ID                | Name                                    | Description |
| ------------------------- | --------------------------------------- | ----------- |
| `keto-enol-acetaldehyde`  | Acetaldehyde keto-enol tautomerization  | Aqueous acetaldehyde keto-enol free energy (CH3CHO → CH2=CHOH) with an xTB gas-phase reference… |
| `keto-enol-acetone`       | Acetone keto-enol                       | Aqueous keto-enol tautomerization free energy of acetone. |
| `cis-trans-2-butene`      | 2-butene cis to trans                   | Aqueous cis to trans isomerization free energy of 2-butene. |
| `co2-hydration`           | CO2 hydration to carbonic acid          | Aqueous free energy for CO2 + H2O → H2CO3 with an xTB reference and a short demonstration… |
| `cyclohexanone-keto-enol` | Cyclohexanone keto-enol tautomerization | Aqueous free energy for cyclohexanone to cyclohex-1-en-1-ol tautomerization using a short… |

---

### 10. Deprotonation Free Energy (pKa) (`deprotonation_fe`)

**Description:** Estimate deprotonation free energy in water from gas-phase and solvation contributions. Provide corresponding protonated and deprotonated forms as SMILES for small molecules or HELM for peptides.

**Category:** Reactivity & pKa · **Docs:** <https://docs.azulenelabs.com/tools/deprotonation_fe/> · **Submission modes:** `single`

#### Input Schema

| Field                  | Type    | Required | Default | Description |
| ---------------------- | ------- | -------- | ------- | ----------- |
| `smiles_prot`          | string  | no       | —       | Protonated species as SMILES. Provide this or the protonated HELM peptide. |
| `helm_protonated`      | string  | no       | —       | HELM2 notation for the protonated peptide (HA), e.g. PEPTIDE1{A.G.F.K.L}$$$$V2.0. Full syntax: https://docs.azulenelabs.com/tools/peptide_structure/ |
| `helm_deprotonated`    | string  | no       | —       | HELM2 notation for the deprotonated peptide (A-), e.g. PEPTIDE1{A.G.F.K.L}$$$$V2.0. Full syntax: https://docs.azulenelabs.com/tools/peptide_structure/ |
| `conformer_method`     | string  | no       | `etkdg` | This setting has no effect; the calculation generates its own starting conformer. One of `etkdg`, `xtb`. |
| `smiles_deprot`        | string  | no       | —       | Deprotonated species as SMILES. Provide this or the deprotonated HELM peptide. |
| `solvent_equil_length` | number  | no       | `0.08`  | Solvent equilibration length in nanoseconds per replica. Minimum 0. |
| `solvent_prod_length`  | number  | no       | `0.4`   | Solvent production length in nanoseconds per replica. Minimum 0. |
| `vacuum_equil_length`  | number  | no       | `0.08`  | Vacuum equilibration length in nanoseconds per replica. Minimum 0. |
| `vacuum_prod_length`   | number  | no       | `0.4`   | Vacuum production length in nanoseconds per replica. Minimum 0. |
| `platform`             | string  | no       | `CUDA`  | OpenMM compute platform for simulations. One of `CUDA`, `OpenCL`, `CPU`, `Reference`. |
| `protocol_repeats`     | integer | no       | `3`     | Number of protocol repeats for uncertainty estimation. Minimum 1. |
| `use_xtb`              | boolean | no       | `true`  | Include the gas-phase reaction term from xTB. If disabled, the result contains only the solvation contribution, not the full reaction free energy. |
| `keep_dirs`            | boolean | no       | `true`  | Keep full simulation outputs for download. |

#### Example Input

```json
{
  "smiles_prot": "C(=O)O",
  "smiles_deprot": "C(=O)[O-]",
  "use_xtb": true
}
```

#### Featured Examples

Run one with `azulene examples submit deprotonation_fe <example-id>`, or fetch its inputs first with `azulene examples download`.

| Example ID                  | Name                                       | Description |
| --------------------------- | ------------------------------------------ | ----------- |
| `formic-acid`               | Formic acid deprotonation                  | Deprotonation (pKa-related) free energy of formic acid to formate in water with xTB reference… |
| `acetic-acid-deprotonation` | Acetic acid pKa                            | Deprotonation free energy of acetic acid (experimental pKa about 4.76). |
| `phenol-deprotonation`      | Phenol pKa                                 | Deprotonation free energy of phenol (experimental pKa about 10). |
| `imidazole-deprotonation`   | Imidazole deprotonation (histidine analog) | Deprotonation free energy for the histidine side-chain analog imidazole to imidazolate… |

---

### 11. Absolute Binding Free Energy (ABFE) (`absolute_binding`)

**Description:** Calculate absolute binding free energy for a ligand–protein complex in water. The short default protocol totals 13.2 ns of alchemical sampling; treat it as a screening result rather than a converged binding free energy.

**Category:** Binding Affinity · **Docs:** <https://docs.azulenelabs.com/tools/absolute_binding/> · **Submission modes:** `single`, `workflow_node`

#### Input Schema

| Field                       | Type    | Required | Default | Description |
| --------------------------- | ------- | -------- | ------- | ----------- |
| `pdb_file`                  | file    | yes      | —       | PDB file of the protein. May optionally contain the ligand |
| `ligand_file`               | file    | no       | —       | File of the ligand (SDF, PDB, or CIF format) |
| `ligand_in_pdb_file`        | boolean | no       | `false` | Read the ligand from the protein PDB file. |
| `ligand_chain_id`           | string  | no       | —       | Chain ID for a PDB/CIF ligand; ignored for SDF. Auto-detected only when the ligand is read from the protein .pdb, using the largest non-water HETATM residue; otherwise specify the chain or B is assumed. Docs: https://docs.azulenelabs.com/tools/absolute_binding/ |
| `ligand_residue_name`       | string  | no       | —       | Three-letter residue name for a PDB/CIF ligand; ignored for SDF. Auto-detected only when the ligand is read from the protein .pdb, using the largest non-water HETATM residue; otherwise specify the residue name or LIG is assumed. Docs: https://docs.azulenelabs.com/tools/absolute_binding/ |
| `ligand_smiles`             | string  | yes      | —       | SMILES string representation of the ligand |
| `preserve_input_waters`     | boolean | no       | `false` | Keep receptor PDB/CIF waters as mobile starting waters; remove unwanted waters before upload. Water hydrogens are rebuilt with the configured water model, and bulk solvent is added. Severe atomic overlaps are rejected. Default: off. |
| `assign_protonation_states` | boolean | no       | `true`  | Assign ligand protonation at the specified pH. Disable if your inputs already have the intended protonation state. |
| `ph`                        | number  | no       | `7`     | pH value for protonation state |
| `solvent_equil_length`      | number  | no       | `0.02`  | Ligand-in-water equilibration length in nanoseconds per replica, across 14 replicas per repeat (default: 0.02 ns × 14 × 3 = 0.84 ns total). Also sets the conventional-MD equilibration length before alchemical sampling. Minimum 0. |
| `solvent_prod_length`       | number  | no       | `0.1`   | Ligand-in-water production length in nanoseconds per replica, across 14 replicas per repeat (default: 0.1 ns × 14 × 3 = 4.2 ns total). Minimum 0. |
| `complex_equil_length`      | number  | no       | `0.02`  | Complex equilibration length in nanoseconds per replica, across 30 replicas per repeat, including restraint windows (default: 0.02 ns × 30 × 3 = 1.8 ns total). Also sets the conventional-MD equilibration length before alchemical sampling. Minimum 0. |
| `complex_prod_length`       | number  | no       | `0.1`   | Complex production length in nanoseconds per replica, across 30 replicas per repeat (default: 0.1 ns × 30 × 3 = 9 ns total). This is the largest contributor to simulation time and usage cost. Minimum 0. |
| `platform`                  | string  | no       | `CUDA`  | OpenMM compute platform for simulations. One of `CUDA`, `OpenCL`, `CPU`, `Reference`. |
| `protocol_repeats`          | integer | no       | `3`     | Number of protocol repeats for uncertainty estimation. Minimum 1. |
| `keep_dirs`                 | boolean | no       | `true`  | Keep full simulation outputs for download. |

#### Example Input

```json
{
  "pdb_file": "<local path or storage key>",
  "ligand_file": "<local path or storage key>",
  "ligand_smiles": "CCO"
}
```

`pdb_file`, `ligand_file` take a local path — the SDK uploads it and substitutes the storage key — or a storage key you already have. Check the Required column above for which of them you have to supply.

#### Featured Examples

Run one with `azulene examples submit absolute_binding <example-id>`, or fetch its inputs first with `azulene examples download`.

| Example ID         | Name                    | Description |
| ------------------ | ----------------------- | ----------- |
| `hif2a-belzutifan` | HIF-2α inhibitor (ABFE) | ABFE for a PT-2385-class HIF-2α inhibitor using demonstration settings shorter than the… |
| `cdk2-lig-1h1q`    | CDK2 inhibitor (ABFE)   | ABFE for a neutral aminopyrimidine CDK2 inhibitor from the OpenFE benchmark, using… |
| `pfkfb3-lig-24`    | PFKFB3 inhibitor (ABFE) | ABFE for a neutral PFKFB3 inhibitor from the OpenFE benchmark, using demonstration settings… |

---

### 12. Relative Binding Free Energy (RBFE) (`relative_binding`)

**Description:** Calculates the relative binding free energy between two ligands to a protein in aqueous solution.

**Category:** Binding Affinity · **Docs:** <https://docs.azulenelabs.com/tools/relative_binding/> · **Submission modes:** `single`

#### Input Schema

| Field                       | Type    | Required | Default | Description |
| --------------------------- | ------- | -------- | ------- | ----------- |
| `pdb_file`                  | file    | yes      | —       | Upload a PDB file or fetch from RCSB by ID |
| `ligand_file_a`             | file    | no       | —       | File of the first ligand (SDF, PDB, or CIF format) |
| `ligand_file_b`             | file    | no       | —       | File of the second ligand (SDF, PDB, or CIF format) |
| `ligand_in_pdb_file_a`      | boolean | no       | `false` | Read ligand A from the protein PDB file. |
| `ligand_in_pdb_file_b`      | boolean | no       | `false` | Read ligand B from the protein PDB file. |
| `ligand_residue_name_a`     | string  | no       | `LIG`   | Residue name of the first ligand in the PDB file |
| `ligand_residue_name_b`     | string  | no       | `LIG`   | Residue name of the second ligand in the PDB file |
| `smiles_a`                  | string  | yes      | —       | SMILES string representation of the first ligand |
| `smiles_b`                  | string  | yes      | —       | SMILES string representation of the second ligand |
| `preserve_input_waters`     | boolean | no       | `false` | Keep receptor PDB/CIF waters as mobile starting waters; remove unwanted waters before upload. Water hydrogens are rebuilt with the configured water model, and bulk solvent is added. Severe atomic overlaps are rejected. Default: off. |
| `assign_protonation_states` | boolean | no       | `true`  | Assign ligand protonation at the specified pH. Disable if your inputs already have the intended protonation state. |
| `ph`                        | number  | no       | `7`     | pH value for protonation state |
| `equil_length`              | number  | no       | `0.08`  | Equilibration length in nanoseconds per replica. Minimum 0. |
| `prod_length`               | number  | no       | `0.4`   | Production length in nanoseconds per replica. Minimum 0. |
| `platform`                  | string  | no       | `CUDA`  | OpenMM compute platform for simulations. One of `CUDA`, `OpenCL`, `CPU`, `Reference`. |
| `protocol_repeats`          | integer | no       | `3`     | Number of protocol repeats for uncertainty estimation. Minimum 1. |
| `lambda_windows`            | integer | no       | `11`    | Lambda-state count for each simulation unless a separate complex or solvent count is supplied. Default: 11. Range 2–64. |
| `complex_lambda_windows`    | integer | no       | `11`    | Number of evenly spaced lambda states for each protein–ligand complex simulation. Default: 11. More windows increase compute. Range 2–64. |
| `solvent_lambda_windows`    | integer | no       | `11`    | Number of evenly spaced lambda states for each ligand-in-solvent simulation. Default: 11. More windows increase compute. Range 2–64. |
| `keep_dirs`                 | boolean | no       | `true`  | Keep full simulation outputs for download. |

#### Example Input

```json
{
  "pdb_file": "<local path or storage key>",
  "ligand_file_a": "<local path or storage key>",
  "ligand_file_b": "<local path or storage key>",
  "smiles_a": "CCO",
  "smiles_b": "CCC"
}
```

`pdb_file`, `ligand_file_a`, `ligand_file_b` take a local path — the SDK uploads it and substitutes the storage key — or a storage key you already have. Check the Required column above for which of them you have to supply.

#### Featured Examples

Run one with `azulene examples submit relative_binding <example-id>`, or fetch its inputs first with `azulene examples download`.

| Example ID             | Name                        | Description |
| ---------------------- | --------------------------- | ----------- |
| `tyk2-ejm-31-ejm-50`   | TYK2 ejm_31 → ejm_50 (RBFE) | RBFE between two TYK2 inhibitors from the OpenFreeEnergy benchmark (doi… |
| `cdk2-lig-21-lig-22`   | CDK2 pair (RBFE)            | Relative binding free energy between two neutral CDK2 inhibitors from the OpenFE benchmark. |
| `pfkfb3-lig-24-lig-33` | PFKFB3 pair (RBFE)          | Relative binding free energy between two neutral PFKFB3 inhibitors from the OpenFE benchmark. |

---

### 13. Lipid Bilayer Permeation Free Energy (`lipid_permeation`)

**Description:** Calculate the free-energy profile of a molecule or peptide crossing a lipid bilayer using umbrella sampling. Provide either SMILES or HELM.

**Category:** Solvation & Permeability · **Docs:** <https://docs.azulenelabs.com/tools/lipid_permeation/> · **Submission modes:** `single`

#### Input Schema

| Field              | Type    | Required | Default | Description |
| ------------------ | ------- | -------- | ------- | ----------- |
| `smiles`           | string  | no       | —       | Solute as SMILES. Provide this or HELM. |
| `helm`             | string  | no       | —       | Peptide in HELM2 notation, e.g. PEPTIDE1{A.G.F.K.L}$$$$V2.0: dot-separated single-letter residues, with non-canonical residues in brackets, e.g. [Aib] or [dF]. Provide this or SMILES. Full syntax: https://docs.azulenelabs.com/tools/peptide_structure/ |
| `conformer_method` | string  | no       | `etkdg` | This setting has no effect; the calculation generates its own starting conformer. One of `etkdg`, `xtb`. |
| `lipid_type`       | string  | yes      | —       | Lipid bilayer to permeate. Runs at 298.15 K. Fluid at that temperature: DOPC, DLPC (dilauroyl 12:0, not dilinoleoyl), POPC. Near their transition: DMPC (Tm 24 C), POPE (25 C). Below their transition and therefore gel-phase, so not comparable to literature fluid-phase permeabilities: DLPE (29 C), DPPC (41 C). One of `DPPC`, `DMPC`, `DOPC`, `DLPE`, `DLPC`, `POPE`, `POPC`. |
| `equil_length`     | number  | no       | `0.08`  | Equilibration length in nanoseconds per replica. Minimum 0. |
| `prod_length`      | number  | no       | `0.4`   | Production length in nanoseconds per replica. Minimum 0. |
| `platform`         | string  | no       | `CUDA`  | OpenMM compute platform for simulations. One of `CUDA`, `OpenCL`, `CPU`, `Reference`. |
| `keep_dirs`        | boolean | no       | `true`  | Keep full simulation outputs for download. |

#### Example Input

```json
{
  "smiles": "O",
  "lipid_type": "POPC"
}
```

#### Featured Examples

Run one with `azulene examples submit lipid_permeation <example-id>`, or fetch its inputs first with `azulene examples download`.

| Example ID     | Name                           | Description |
| -------------- | ------------------------------ | ----------- |
| `ethanol-popc` | Ethanol permeation across POPC | Membrane permeation free-energy profile of ethanol across a POPC lipid bilayer (short demo… |

---

### 14. Relative Lipid Bilayer Permeation Free Energy (`lipid_permeation_rfe`)

**Description:** Calculate the relative free energy of lipid-bilayer permeation for two molecules using alchemical perturbation. Provide both molecules as SMILES.

**Category:** Solvation & Permeability · **Docs:** <https://docs.azulenelabs.com/tools/lipid_permeation_rfe/> · **Submission modes:** `single`

#### Input Schema

| Field               | Type    | Required | Default | Description |
| ------------------- | ------- | -------- | ------- | ----------- |
| `smiles_a`          | string  | yes      | —       | SMILES string of the first molecule. |
| `smiles_b`          | string  | yes      | —       | SMILES string of the second molecule (a small modification of the first works best). |
| `lipid_type`        | string  | yes      | —       | Lipid bilayer to permeate. Runs at 298.15 K. Fluid at that temperature: DOPC, DLPC (dilauroyl 12:0, not dilinoleoyl), POPC. Near their transition: DMPC (Tm 24 C), POPE (25 C). Below their transition and therefore gel-phase, so not comparable to literature fluid-phase permeabilities: DLPE (29 C), DPPC (41 C). One of `DPPC`, `DMPC`, `DOPC`, `DLPE`, `DLPC`, `POPE`, `POPC`. |
| `equil_length`      | number  | no       | `0.08`  | Equilibration length in nanoseconds per replica. Minimum 0. |
| `prod_length`       | number  | no       | `0.4`   | Production length in nanoseconds per replica. Minimum 0. |
| `ion_concentration` | number  | no       | `0`     | Salt concentration in molar for the simulation box. Minimum 0. |
| `platform`          | string  | no       | `CUDA`  | OpenMM compute platform for simulations. One of `CUDA`, `OpenCL`, `CPU`, `Reference`. |
| `protocol_repeats`  | integer | no       | `3`     | Number of independent repeats of the alchemical protocol. Minimum 1. |
| `keep_dirs`         | boolean | no       | `true`  | Keep full simulation outputs for download. |

#### Example Input

```json
{
  "smiles_a": "CCO",
  "smiles_b": "CCCO",
  "lipid_type": "POPC"
}
```

#### Featured Examples

Run one with `azulene examples submit lipid_permeation_rfe <example-id>`, or fetch its inputs first with `azulene examples download`.

| Example ID                 | Name                       | Description |
| -------------------------- | -------------------------- | ----------- |
| `ethanol-to-propanol-popc` | Ethanol to propanol (POPC) | Relative permeation free energy across POPC for ethanol to 1-propanol. |
| `methanol-to-ethanol-popc` | Methanol to ethanol (POPC) | Relative permeation free energy across POPC for methanol to ethanol. |
| `benzene-to-toluene-popc`  | Benzene to toluene (POPC)  | Relative permeation free energy across a POPC bilayer for adding a methyl to benzene. |

---

### 15. Covalent Docking (`covalent_docking`)

**Description:** Predict, refine, and score covalent inhibitor poses at a specified protein residue. Supply a protein structure, inhibitor SMILES, and reactive residue and atom; supported warheads include boronic acids, acrylamides, nitriles, and sulfonyl fluorides.

**Category:** Docking & Pose · **Docs:** <https://docs.azulenelabs.com/tools/covalent_docking/> · **Submission modes:** `single`

#### Input Schema

| Field                  | Type    | Required | Default    | Description |
| ---------------------- | ------- | -------- | ---------- | ----------- |
| `structure_file`       | file    | yes      | —          | Protein structure file (PDB or CIF format) |
| `ligand_smiles`        | string  | yes      | —          | SMILES string of the covalent inhibitor (must contain a reactive warhead) |
| `drug_smiles`          | string  | no       | —          | Legacy alias for 'ligand_smiles'; use 'ligand_smiles' in new requests. |
| `chain_id`             | string  | yes      | —          | Chain identifier in the protein structure (e.g., 'A') |
| `target_resname`       | string  | yes      | —          | Three-letter name of the reactive residue. One of `SER`, `CYS`, `LYS`, `THR`, `HIS`, `TYR`. |
| `target_resid`         | integer | yes      | —          | Sequence number of the reactive residue |
| `target_atom`          | string  | yes      | —          | Required reactive atom name, e.g. OG for SER or SG for CYS; it is not auto-detected. Omitting it can run noncovalent docking without an error. |
| `covalent_element`     | string  | no       | `B`        | Element of the reactive ligand atom, e.g. C for the beta-carbon of a vinyl sulfone. Default: B here, C in Cofactor & Ligand Docking. One of `B`, `C`, `S`, `P`. |
| `warhead_smarts`       | string  | no       | —          | This SMARTS override has no effect. Warhead detection uses built-in patterns. Docs: https://docs.azulenelabs.com/tools/covalent_docking/ |
| `protonate`            | boolean | no       | `true`     | This setting has no effect. The receptor and ligand are always protonated. |
| `ph`                   | number  | no       | `7.4`      | This setting has no effect. Protonation always uses pH 7.4. Range 0–14. |
| `placement`            | string  | no       | `combined` | Unused placement setting; this setting has no effect. One of `combined`, `directed`, `tetrahedral`. |
| `max_steps`            | integer | no       | `700`      | Unused optimization-step limit; this setting has no effect. Range 100–2000. |
| `keep_cofactors`       | string  | no       | —          | Retain comma-separated residue names, e.g. 'ZN,NDP'; add HOH to retain water, or leave empty to remove all non-standard residues. Organic cofactors are treated as neutral, which shifts absolute scores for charged cofactors; compare ligands using the same receptor. Docs: https://docs.azulenelabs.com/tools/covalent_docking/ |
| `extra_chains`         | string  | no       | —          | Comma-separated additional chain IDs to include (e.g. 'B' or 'B,C'). |
| `optimize_and_score`   | boolean | no       | `false`    | Unused optimization and scoring switch; Docs: https://docs.azulenelabs.com/tools/covalent_docking/ |
| `opt_fmax`             | number  | no       | `0.05`     | Unused force threshold (eV/Å); this setting has no effect. Range 0.005–1. |
| `opt_maxiter`          | integer | no       | `200`      | Unused optimization-iteration limit; this setting has no effect. Range 10–2000. |
| `top_k`                | integer | no       | `5`        | Unused pose-count setting; this setting has no effect. Range 1–20. |
| `n_conformers`         | integer | no       | —          | Ligand conformers to sample; higher values increase runtime. Leave empty for 8 conformers, or 12 when macrocycle sampling is on. Docs: https://docs.azulenelabs.com/tools/docking/. Range 1–64. |
| `n_generative_samples` | integer | no       | —          | Additional poses to generate; higher values increase runtime and cost. Leave empty for 30 poses, or 48 when macrocycle sampling is on. Setting 0 skips this additional search and may miss alternative poses. Docs: https://docs.azulenelabs.com/tools/docking/. Range 0–256. |
| `n_poses_per_arm`      | integer | no       | —          | Refine and score up to twice this number of poses; leave empty for up to 6 poses (setting 3). Higher values increase runtime. Docs: https://docs.azulenelabs.com/tools/covalent_docking/. Range 1–10. |
| `crop_receptor`        | boolean | no       | `false`    | Crop the receptor around the reactive residue before docking. Leave off to retain the uploaded receptor, including any existing crop. Docs: https://docs.azulenelabs.com/tools/covalent_docking/ |

#### Example Input

```json
{
  "structure_file": "<local path or storage key>",
  "ligand_smiles": "OB(O)c1ccccc1",
  "chain_id": "A",
  "target_resname": "SER",
  "target_resid": 70,
  "target_atom": "OG",
  "covalent_element": "B"
}
```

`structure_file` takes a local path — the SDK uploads it and substitutes the storage key — or a storage key you already have. Check the Required column above for which of them you have to supply.

#### Featured Examples

Run one with `azulene examples submit covalent_docking <example-id>`, or fetch its inputs first with `azulene examples download`.

| Example ID              | Name                                    | Description |
| ----------------------- | --------------------------------------- | ----------- |
| `mpro-paxlovid`         | Nirmatrelvir → SARS-CoV-2 Mpro (Cys145) | Dock nirmatrelvir to Mpro Cys145 through its nitrile warhead, forming a C–S thioimidate adduct… |
| `proteasome-bortezomib` | Bortezomib → 20S proteasome (Thr1)      | Dock bortezomib to proteasome β5 Thr1 through its boronic acid, forming a tetrahedral B–O… |
| `kras-g12c`             | KRAS G12C → Cys12 (chloroacetamide)     | Dock a GTP-competitive chloroacetamide inhibitor to KRAS G12C, forming a C–S thioether at… |

---

### 16. Docking (`docking`)

**Description:** Predict noncovalent binding poses for small molecules, macrocycles and cyclic peptides. Supply a protein structure, ligand and binding-site center. Docking samples and refines candidate poses and returns downloadable structures with scores for comparing poses and prioritizing ligands.

**Category:** Docking & Pose · **Docs:** <https://docs.azulenelabs.com/tools/docking/> · **Submission modes:** `single`, `batch`, `workflow_node`

#### Input Schema

| Field                   | Type    | Required | Default | Description |
| ----------------------- | ------- | -------- | ------- | ----------- |
| `structure_file`        | file    | yes      | —       | Protein structure file (PDB or CIF format) |
| `ligand_smiles`         | string  | no       | —       | Enter ligand SMILES, or use HELM below for peptides. |
| `drug_smiles`           | string  | no       | —       | Legacy alias for 'ligand_smiles'; use 'ligand_smiles' in new requests. |
| `helm`                  | string  | no       | —       | Enter the peptide in HELM notation, or use the Ligand SMILES field. |
| `ligand_file`           | file    | no       | —       | Upload a file containing the ligand in SDF, MOL, MOL2 or PDB format. Or provide SMILES/HELM (see below). Docking generates new poses and does not preserve the uploaded coordinates. If an SDF contains multiple molecules, only the first molecule is used. Accepts `.sdf,.mol,.mol2,.pdb`. |
| `conformer_method`      | string  | no       | `etkdg` | Reserved for HELM input; currently has no effect. One of `etkdg`, `xtb`. |
| `macrocycle_sampling`   | string  | no       | `auto`  | Use expanded sampling for macrocycles. 'auto' enables it for flexible rings larger than 8 atoms and increases runtime; 'off' uses small-molecule settings. Docs: https://docs.azulenelabs.com/tools/docking/. One of `auto`, `on`, `off`. |
| `chain_id`              | string  | yes      | —       | Chain identifier in the protein structure (e.g., 'A') |
| `binding_site_center`   | string  | yes      | —       | Binding-site center (Å) in the uploaded structure’s coordinate frame. The wizard can calculate it from `binding_site_residues`. |
| `binding_site_residues` | string  | no       | —       | Residue (name, number) pairs for calculating the binding-site center. This list has no effect once a center is set. Numbers match the uploaded file across all chains, ignoring insertion codes. Docs: https://docs.azulenelabs.com/tools/docking/ |
| `placement_radius`      | number  | no       | `8`     | Unused placement radius (Å); this setting has no effect. Range 3–20. |
| `n_orientations`        | integer | no       | `8`     | Unused orientation count; this setting has no effect. Range 1–50. |
| `keep_cofactors`        | string  | no       | —       | Retain comma-separated residue names, e.g. 'ZN,NDP'; add HOH to retain water, or leave empty to remove all non-standard residues. Organic cofactors are treated as neutral, which shifts absolute scores for charged cofactors; compare ligands using the same receptor. Docs: https://docs.azulenelabs.com/tools/docking/ |
| `fmax`                  | number  | no       | `0.5`   | Unused force threshold (eV/Å); this setting has no effect. |
| `max_steps`             | integer | no       | `700`   | Unused optimization-step limit; this setting has no effect. Range 100–2000. |
| `use_electrostatics`    | boolean | no       | `true`  | This setting has no effect. Electrostatics are always enabled. |
| `protonate`             | boolean | no       | `true`  | This setting has no effect. The receptor and ligand are always protonated. |
| `ph`                    | number  | no       | `7.4`   | This setting has no effect. Protonation always uses pH 7.4. Range 0–14. |
| `n_conformers`          | integer | no       | —       | Ligand conformers to sample; higher values increase runtime. Leave empty for 8 conformers, or 12 when macrocycle sampling is on. Docs: https://docs.azulenelabs.com/tools/docking/. Range 1–64. |
| `n_generative_samples`  | integer | no       | —       | Additional poses to generate; higher values increase runtime and cost. Leave empty for 30 poses, or 48 when macrocycle sampling is on. Setting 0 skips this additional search and may miss alternative poses. Docs: https://docs.azulenelabs.com/tools/docking/. Range 0–256. |
| `n_poses_per_arm`       | integer | no       | —       | Refine and score up to twice this number of poses; leave empty for up to 6 poses (setting 3). Higher values increase runtime. Docs: https://docs.azulenelabs.com/tools/docking/. Range 1–10. |
| `crop_receptor`         | boolean | no       | `false` | Crop the receptor around the binding site before docking. Leave off to retain the uploaded receptor, including any existing crop. Docs: https://docs.azulenelabs.com/tools/docking/ |

##### `binding_site_residues` — one entry

| Field     | Type    | Required | Default | Description |
| --------- | ------- | -------- | ------- | ----------- |
| `resname` | string  | yes      | —       | Three-letter residue name, e.g. SER |
| `resid`   | integer | yes      | —       | Residue number as written in the uploaded file |

#### Example Input

```json
{
  "structure_file": "<local path or storage key>",
  "ligand_smiles": "c1ccc(cc1)C(=N)N",
  "chain_id": "A",
  "binding_site_center": "[12.5, 8.3, -4.1]",
  "binding_site_residues": "[[\"BEN\",1]]"
}
```

`structure_file` takes a local path — the SDK uploads it and substitutes the storage key — or a storage key you already have. Check the Required column above for which of them you have to supply.

#### Featured Examples

Run one with `azulene examples submit docking <example-id>`, or fetch its inputs first with `azulene examples download`.

| Example ID                            | Name                                     | Description |
| ------------------------------------- | ---------------------------------------- | ----------- |
| `t4-lysozyme-ethylbenzene`            | Ethylbenzene → T4 lysozyme               | Dock ethylbenzene into the L99A cavity and compare the pose with the crystal structure (PDB… |
| `dhfr-trimethoprim`                   | Trimethoprim → DHFR                      | Dock trimethoprim with the NADPH cofactor retained (PDB 1U72). |
| `carbonic-anhydrase-sulfanilamide`    | Sulfanilamide → carbonic anhydrase II    | Dock sulfanilamide with the catalytic zinc ion retained (PDB 3HS4). |
| `er-estradiol`                        | 17β-estradiol → estrogen receptor α      | Dock estradiol and compare the pose with the crystal structure (PDB 1ERE). |
| `streptavidin-cyclic-hexapeptide`     | Cyclic hexapeptide → streptavidin (HELM) | Dock a disulfide-cyclized hexapeptide supplied in HELM notation (PDB 1SLD). |
| `spsb2-cyclic-rgd`                    | cyclo-RGDINNNV → SPSB2                   | Dock a head-to-tail cyclic peptide supplied in HELM notation (PDB 5XN3). |
| `streptavidin-cyclic-hexapeptide-sdf` | Cyclic hexapeptide → streptavidin (SDF)  | Dock a disulfide-cyclized hexapeptide from an SDF file, generating new poses (PDB 1SLD). |

---

### 17. Cofactor & Ligand Docking (`sequential_docking`)

**Description:** Dock ligands, fragments, or cofactors in sequence, keeping earlier poses fixed for each later stage. Mix covalent and noncovalent stages; every noncovalent stage requires its own `binding_site_center`.

**Category:** Docking & Pose · **Docs:** <https://docs.azulenelabs.com/tools/sequential_docking/> · **Submission modes:** `single`

#### Input Schema

| Field                  | Type    | Required | Default | Description |
| ---------------------- | ------- | -------- | ------- | ----------- |
| `structure_file`       | file    | yes      | —       | Protein structure file (PDB or CIF format) |
| `chain_id`             | string  | yes      | —       | Chain identifier in the protein structure (e.g., 'A') |
| `stages`               | string  | yes      | —       | Ordered stages: `{smiles, binding_site_center?, label?}`; earlier ligands remain fixed. For a covalent stage, add `is_covalent:true`, `anchor_resname`, `anchor_resid`, and `anchor_atom_name`. |
| `keep_cofactors`       | string  | no       | —       | Retain comma-separated residue names, e.g. 'ZN,NDP'; add HOH to retain water, or leave empty to remove all non-standard residues. Organic cofactors are treated as neutral, which shifts absolute scores for charged cofactors; compare ligands using the same receptor. Docs: https://docs.azulenelabs.com/tools/sequential_docking/ |
| `n_conformers`         | integer | no       | —       | Ligand conformers to sample per stage; higher values increase runtime. Leave empty for 8 conformers, or 12 when macrocycle sampling is on. Docs: https://docs.azulenelabs.com/tools/docking/. Range 1–64. |
| `n_generative_samples` | integer | no       | —       | Additional poses to generate per stage; higher values increase runtime and cost. Leave empty for 30 poses, or 48 when macrocycle sampling is on. Setting 0 skips this additional search and may miss alternative poses. Docs: https://docs.azulenelabs.com/tools/docking/. Range 0–256. |
| `n_poses_per_arm`      | integer | no       | —       | Refine and score up to twice this number of poses at the final stage; leave empty for up to 6 poses (setting 3). Higher values increase runtime; earlier stages each retain one pose. Docs: https://docs.azulenelabs.com/tools/sequential_docking/. Range 1–10. |
| `crop_receptor`        | boolean | no       | `false` | Crop once around the first stage’s binding site and use that receptor for all stages. Leave off to retain the uploaded receptor, including any existing crop. Docs: https://docs.azulenelabs.com/tools/sequential_docking/ |

##### `stages` — one entry

| Field                 | Type    | Required | Default | Description |
| --------------------- | ------- | -------- | ------- | ----------- |
| `smiles`              | string  | yes      | —       | Ligand SMILES for this stage |
| `binding_site_center` | array   | no       | —       | Required for noncovalent stages; covalent stages can use the anchor-atom coordinate. |
| `label`               | string  | no       | —       | Name for this stage in the results |
| `is_covalent`         | boolean | no       | —       | Bond this ligand covalently to an anchor residue |
| `anchor_resname`      | string  | no       | —       | Three-letter name of the reactive residue. One of `SER`, `CYS`, `LYS`, `THR`, `HIS`, `TYR`. |
| `anchor_resid`        | integer | no       | —       | Sequence number of the reactive residue, in the numbering of the uploaded file |
| `anchor_atom_name`    | string  | no       | —       | Reactive atom name (e.g. OG for SER, SG for CYS) |
| `covalent_element`    | string  | no       | `C`     | Element of the reactive ligand atom, e.g. C for the beta-carbon of a vinyl sulfone. One of `B`, `C`, `S`, `P`. |
| `bond_type`           | string  | no       | —       | Derived from the reactive ligand and target elements as `<warhead>-<target element>`; recalculated from the covalent inputs. The target-element suffix is informational. |

#### Example Input

```json
{
  "structure_file": "<local path or storage key>",
  "chain_id": "A",
  "stages": "[{\"smiles\":\"CCO\",\"binding_site_center\":[12.5,8.3,-4.1],\"label\":\"fragment\"},{\"smiles\":\"OB(O)c1ccccc1\",\"is_covalent\":true,\"anchor_resname\":\"SER\",\"anchor_resid\":70,\"anchor_atom_name\":\"OG\",\"bond_type\":\"B-O\"}]",
  "keep_cofactors": "ZN"
}
```

`structure_file` takes a local path — the SDK uploads it and substitutes the storage key — or a storage key you already have. Check the Required column above for which of them you have to supply.

#### Featured Examples

Run one with `azulene examples submit sequential_docking <example-id>`, or fetch its inputs first with `azulene examples download`.

| Example ID                     | Name                                           | Description |
| ------------------------------ | ---------------------------------------------- | ----------- |
| `carbonic-anhydrase-fragments` | Sulfonamide + fragment → carbonic anhydrase II | Dock sulfanilamide, then a hydrophobic fragment into carbonic anhydrase II, retaining… |
| `hsp90-fragment-growing`       | Resorcinol + isoxazole → HSP90                 | Dock resorcinol, then a 3-aryl-5-methylisoxazole fragment into the HSP90α ATP pocket (PDB 2XJX). |
| `bcl-xl-fragment-codocking`    | Fragment co-docking → Bcl-xL BH3 groove        | Dock two neutral fragments into the Bcl-xL BH3 groove, keeping the first pose fixed during the… |
| `t4-lysozyme-fragments`        | Benzene then toluene → T4 lysozyme             | Dock benzene, then toluene into T4 lysozyme L99A, keeping the benzene pose fixed (PDB 4W52). |

---

### 18. Protein-Ligand Pose Refinement (`opal_ml_optimize`)

**Description:** Refine a supplied protein–ligand or protein–peptide binding pose with Opal, then score the relaxed structure.

**Category:** Docking & Pose · **Docs:** <https://docs.azulenelabs.com/tools/opal_ml_optimize/> · **Submission modes:** `single`

#### Input Schema

| Field                 | Type    | Required | Default | Description |
| --------------------- | ------- | -------- | ------- | ----------- |
| `protein_file`        | file    | no       | —       | Protein structure (PDB/CIF). |
| `ligand_file`         | file    | no       | —       | Ligand structure (SDF, positioned in protein frame) |
| `ligand_resname`      | string  | no       | —       | HETATM residue name of ligand in PDB |
| `ligand_smiles`       | string  | no       | —       | Optional chemistry override when the structure lacks correct bond orders, protonation, or charges. Leave empty to use the structure; a mismatched molecular formula is rejected. Docs: https://docs.azulenelabs.com/tools/opal_ml_optimize/ |
| `helm`                | string  | no       | —       | Peptide chemistry in HELM2, as an alternative to `ligand_smiles`; coordinates come from the supplied structure. Example: PEPTIDE1{R.G.D.I.N.N.N.V}$PEPTIDE1,PEPTIDE1,1:R1-8:R2$$$V2.0. Docs: https://docs.azulenelabs.com/tools/peptide_structure/ |
| `drug_smiles`         | string  | no       | —       | Legacy alias for 'ligand_smiles'; use 'ligand_smiles' in new requests. Supply at most one of 'ligand_smiles' and 'helm'. |
| `chain_id`            | string  | no       | —       | Receptor chain ID; specify the peptide binder separately in `binder_chain`. |
| `binder_chain`        | string  | no       | —       | Peptide binder chain ID; `chain_id` must name the receptor. Reversing these can produce a meaningless energy without an error. Docs: https://docs.azulenelabs.com/tools/opal_ml_optimize/ |
| `opt_fmax`            | number  | no       | `0.05`  | Force convergence threshold (eV/Å); smaller values require tighter convergence and more steps. |
| `opt_maxiter`         | integer | no       | `200`   | Maximum relaxation steps; if convergence is not reached, the final structure is scored. |
| `flexible_radius`     | number  | no       | `0`     | Relax receptor side chains within this distance (Å) of the binder; 0 keeps the receptor rigid, and 4 defines a pocket shell. Flexible-pocket energies are systematically more negative and should not be compared with rigid-pocket results. Docs: https://docs.azulenelabs.com/tools/opal_ml_optimize/. Range 0–12. |
| `flexible_residues`   | string  | no       | —       | Receptor residues to relax as `CHAIN:RESSEQ`, e.g. `A:145,A:41`; overrides `flexible_radius`. Use file residue numbers; unmatched residues are reported and remain fixed. Docs: https://docs.azulenelabs.com/tools/opal_ml_optimize/ |
| `flexible_backbone`   | boolean | no       | `false` | Also relax the backbone of selected flexible residues; this can distort the fold. Leave off for side-chain-only relaxation. Has no effect unless flexible residues are selected. Docs: https://docs.azulenelabs.com/tools/opal_ml_optimize/ |
| `crop_radius`         | number  | no       | `10`    | Receptor cutoff (Å) for peptide binders; 0 disables cropping, and small-molecule scoring ignores this field. Large uncropped receptors can give unreliable energy rankings. Docs: https://docs.azulenelabs.com/tools/opal_ml_optimize/. Range 0–30. |
| `crop_receptor`       | boolean | no       | `false` | Crop around the supplied ligand before evaluation; this overrides `crop_radius`. Leave off to retain the uploaded receptor, including any existing crop. Docs: https://docs.azulenelabs.com/tools/opal_ml_optimize/ |
| `interior_dielectric` | number  | no       | `1`     | Solute dielectric for peptide MM-GBSA implicit-solvent scoring (default: 1); ignored for small molecules. It affects the Unified score through the solvent term, which is not reported separately, but leaves the interaction energy unchanged. Docs: https://docs.azulenelabs.com/tools/opal_ml_optimize/. Range 1–20. |
| `keep_cofactors`      | string  | no       | —       | Retain comma-separated residue names, e.g. 'ZN,NDP'; add HOH to retain water, or leave empty to remove all non-standard residues. Organic cofactors are treated as neutral, which shifts absolute scores for charged cofactors; compare ligands using the same receptor. Docs: https://docs.azulenelabs.com/tools/opal_ml_optimize/ |
| `extra_chains`        | string  | no       | —       | Comma-separated additional chain IDs to include (e.g. 'B' or 'B,C'). |

#### Example Input

```json
{
  "ligand_resname": "N3",
  "chain_id": "A"
}
```

#### Featured Examples

Run one with `azulene examples submit opal_ml_optimize <example-id>`, or fetch its inputs first with `azulene examples download`.

| Example ID                               | Name                                            | Description |
| ---------------------------------------- | ----------------------------------------------- | ----------- |
| `mpro-paxlovid`                          | Refine nirmatrelvir–Mpro complex                | Refine and score the nirmatrelvir–Mpro covalent complex at Cys145 (PDB 7RFS; ligand 4WI). |
| `t4-lysozyme-benzene`                    | Optimize benzene in T4 lysozyme L99A            | Refine and score benzene in the T4 lysozyme L99A cavity (PDB 4W52; ligand BNZ). |
| `cdk2-roscovitine`                       | Optimize roscovitine in CDK2                    | Refine and score roscovitine in the CDK2 ATP pocket (PDB 2A4L; ligand RRC). |
| `spsb2-cyclic-rgd-helm`                  | Optimize cyclo-RGDINNNV in SPSB2 (HELM)         | Refine a docked head-to-tail cyclic peptide in SPSB2, using SDF coordinates and HELM chemistry… |
| `streptavidin-cyclic-hexapeptide-smiles` | Optimize Ac-CHPQFC-NH2 in streptavidin (SMILES) | Refine docked Ac-CHPQFC-NH2 in streptavidin, using SDF coordinates and SMILES chemistry for… |

---

### 19. Protein-Ligand Scoring (`opal_ml_score`)

**Description:** Score a supplied protein–ligand pose with Opal without relaxing its coordinates. For peptide binders supplied as a protein complex, specify the binder chain.

**Category:** Binding Affinity · **Docs:** <https://docs.azulenelabs.com/tools/opal_ml_score/> · **Submission modes:** `single`

#### Input Schema

| Field                 | Type    | Required | Default | Description |
| --------------------- | ------- | -------- | ------- | ----------- |
| `protein_file`        | file    | no       | —       | Protein structure (PDB/CIF). |
| `ligand_file`         | file    | no       | —       | Ligand structure (SDF) |
| `ligand_resname`      | string  | no       | —       | HETATM residue name in PDB |
| `chain_id`            | string  | no       | —       | Receptor chain ID; specify the peptide binder separately in `binder_chain`. |
| `binder_chain`        | string  | no       | —       | Peptide binder chain ID; `chain_id` must name the receptor. Reversing these can produce a meaningless energy without an error. Docs: https://docs.azulenelabs.com/tools/opal_ml_score/ |
| `ligand_smiles`       | string  | no       | —       | Optional chemistry override when the structure lacks correct bond orders, protonation, or charges. Leave empty to use the structure; a mismatched molecular formula is rejected. Docs: https://docs.azulenelabs.com/tools/opal_ml_score/ |
| `helm`                | string  | no       | —       | Peptide chemistry in HELM2, as an alternative to `ligand_smiles`; coordinates come from the supplied structure. Example: PEPTIDE1{R.G.D.I.N.N.N.V}$PEPTIDE1,PEPTIDE1,1:R1-8:R2$$$V2.0. Docs: https://docs.azulenelabs.com/tools/peptide_structure/ |
| `drug_smiles`         | string  | no       | —       | Legacy alias for 'ligand_smiles'; use 'ligand_smiles' in new requests. Supply at most one of 'ligand_smiles' and 'helm'. |
| `crop_radius`         | number  | no       | `10`    | Receptor cutoff (Å) for peptide binders; 0 disables cropping, and small-molecule scoring ignores this field. Large uncropped receptors can give unreliable energy rankings. Docs: https://docs.azulenelabs.com/tools/opal_ml_score/. Range 0–30. |
| `crop_receptor`       | boolean | no       | `false` | Crop around the supplied ligand before evaluation; this overrides `crop_radius`. Leave off to retain the uploaded receptor, including any existing crop. Docs: https://docs.azulenelabs.com/tools/opal_ml_score/ |
| `interior_dielectric` | number  | no       | `1`     | Solute dielectric for peptide MM-GBSA implicit-solvent scoring (default: 1); ignored for small molecules. It affects the Unified score through the solvent term, which is not reported separately, but leaves the interaction energy unchanged. Docs: https://docs.azulenelabs.com/tools/opal_ml_score/. Range 1–20. |
| `keep_cofactors`      | string  | no       | —       | Retain comma-separated residue names, e.g. 'ZN,NDP'; add HOH to retain water, or leave empty to remove all non-standard residues. Organic cofactors are treated as neutral, which shifts absolute scores for charged cofactors; compare ligands using the same receptor. Docs: https://docs.azulenelabs.com/tools/opal_ml_score/ |
| `extra_chains`        | string  | no       | —       | Comma-separated additional chain IDs to include (e.g. 'B' or 'B,C'). |

#### Example Input

```json
{
  "ligand_resname": "PJE",
  "chain_id": "C"
}
```

#### Featured Examples

Run one with `azulene examples submit opal_ml_score <example-id>`, or fetch its inputs first with `azulene examples download`.

| Example ID                               | Name                                         | Description |
| ---------------------------------------- | -------------------------------------------- | ----------- |
| `t4-lysozyme-benzene`                    | Score benzene in T4 lysozyme L99A            | Score benzene in the T4 lysozyme L99A cavity without relaxing the pose (PDB 4W52; ligand BNZ). |
| `mpro-paxlovid`                          | Score nirmatrelvir–Mpro complex              | Score the nirmatrelvir–Mpro covalent complex at Cys145 without relaxing the pose (PDB 7RFS… |
| `cdk2-roscovitine`                       | Score roscovitine in CDK2                    | Score roscovitine in the CDK2 ATP pocket without relaxing the pose (PDB 2A4L; ligand RRC). |
| `spsb2-cyclic-rgd-helm`                  | Score cyclo-RGDINNNV in SPSB2 (HELM)         | Score a docked head-to-tail cyclic peptide in SPSB2, using SDF coordinates and HELM chemistry… |
| `streptavidin-cyclic-hexapeptide-smiles` | Score Ac-CHPQFC-NH2 in streptavidin (SMILES) | Score docked Ac-CHPQFC-NH2 in streptavidin, using SDF coordinates and SMILES chemistry for its… |

---

### 20. Peptide 3D Structure Generation (HELM) (`peptide_structure`)

**Description:** Generate 3D structures of linear or cyclic peptides from HELM2, including noncanonical residues and head-to-tail, disulfide, lactam, or other explicit connections. Choose fast ETKDG/MMFF sampling or GFN2-xTB optimization.

**Category:** Structure Generation · **Docs:** <https://docs.azulenelabs.com/tools/peptide_structure/> · **Submission modes:** `single`

#### Input Schema

| Field              | Type    | Required | Default   | Description |
| ------------------ | ------- | -------- | --------- | ----------- |
| `helm`             | string  | yes      | —         | HELM2 peptide, e.g. linear PEPTIDE1{A.G.F.K.L}$$$$V2.0 or head-to-tail cyclic PEPTIDE1{A.G.L.K.F}$PEPTIDE1,PEPTIDE1,5:R2-1:R1$$$V2.0. Use brackets for noncanonical residues (e.g. [Aib], [dF]) and exactly four $ separators; cyclic strings end $$$V2.0. Docs: https://docs.azulenelabs.com/tools/peptide_structure/ |
| `n_conformers`     | integer | no       | `1`       | Number of conformers to generate and rank by energy. Range 1–100. |
| `conformer_method` | string  | no       | `etkdg`   | etkdg (fast, ~3s) or xtb (GFN2-xTB geometry optimization, ~30s). One of `etkdg`, `xtb`. |
| `force_field`      | string  | no       | `MMFF94s` | Force field for ETKDG optimization (ignored for xtb method). One of `MMFF94s`, `UFF`. |

#### Example Input

```json
{
  "helm": "PEPTIDE1{A.G.F.K.L}$$$$V2.0"
}
```

#### Featured Examples

Run one with `azulene examples submit peptide_structure <example-id>`, or fetch its inputs first with `azulene examples download`.

| Example ID       | Name                              | Description |
| ---------------- | --------------------------------- | ----------- |
| `leu-enkephalin` | Leu-enkephalin 3D structure       | Generate Leu-enkephalin (YGGFL) from HELM using fast ETKDG sampling. |
| `oxytocin`       | Oxytocin (disulfide) 3D structure | Generate oxytocin from HELM with its native Cys1–Cys6 disulfide (`1:R3-6:R3`). |
| `bradykinin`     | Bradykinin (charged) 3D structure | Generate bradykinin (RPPGFSPFR) with both Arg residues and the N-terminus protonated, the… |

---

### 21. Protein Mutation Folding Stability (Physics-based ΔΔG) (`protein_mutation_ddg_fold`)

**Description:** Estimate mutation-induced changes in folding free energy (ΔΔG) using relative free-energy perturbation (FEP) of folded and unfolded states. Supports natural amino acids and 14 non-canonical residues: Aib, Sar, dA/dF/dW/dY, hPhe, Hyp, mePhe, meS, meT, Nle, Orn, and Phe_4F. Negative ΔΔG indicates stabilization, positive destabilization; short demonstration settings do not establish convergence.

**Category:** Protein Stability · **Docs:** <https://docs.azulenelabs.com/tools/protein_mutation_ddg_fold/> · **Submission modes:** `single`

#### Input Schema

| Field                                | Type    | Required | Default  | Description |
| ------------------------------------ | ------- | -------- | -------- | ----------- |
| `protein_pdb`                        | file    | yes      | —        | Protein structure in PDB format containing exactly one chain; files with multiple chains are rejected. |
| `mutations`                          | string  | no       | —        | Comma-separated mutations in CHAIN:RESID[ICODE]:TARGET format, e.g. A:78:V,A:78:[Aib],A:78:[dF],A:78:[meS]. Bracketed HELM2 monomers are accepted; provide this or mutant_chain_helm, not both. |
| `mutant_chain_helm`                  | string  | no       | —        | Full mutated chain, N to C, in HELM2 notation, e.g. PEPTIDE1{A.G.F.K.L}$$$$V2.0. It must match the PDB chain length: mutations are identified by comparing each position. Provide this or mutations, not both. Full syntax: https://docs.azulenelabs.com/tools/peptide_structure/ |
| `mutant_chain_id`                    | string  | no       | `A`      | PDB chain corresponding to mutant_chain_helm (default A). Ignored when mutations are listed directly. |
| `unfolded_flank_size`                | integer | no       | `3`      | Residues retained on each side of the mutation in the capped unfolded-reference peptide. Default 3 gives a 7-residue window; 0 uses a capped single residue (Ace-X-NMe). Range 0–10. |
| `unfolded_engine`                    | string  | no       | `feflow` | Method for the unfolded-state calculation. The recommended default uses the same nonequilibrium protocol as the folded state; the alternative uses a SMILES-based relative free-energy calculation. One of `feflow`, `rfe_legacy`. |
| `unfolded_relax_ns`                  | number  | no       | `0.005`  | Unfolded-peptide relaxation time before the alchemical calculation, in ns: default 0.005 (5 ps), or 0.1 for the Aldeghi 2019 protocol. Zero performs minimization only. Minimum 0. |
| `unfolded_relax_implicit_solvent`    | boolean | no       | `true`   | Use OBC2 GBSA implicit solvent for unfolded-peptide relaxation (default, about 3-10 s per peptide). Turn off for slower TIP3P explicit solvent with a Monte Carlo barostat, required for comparison with the Aldeghi 2019 protocol. |
| `unfolded_relax_restrained_nvt_ns`   | number  | no       | `0`      | Relax solvent and side chains with a restrained backbone at constant volume and temperature (NVT), in ns. Default 0 skips this step; Aldeghi 2019 uses 0.05. Minimum 0. |
| `unfolded_relax_unrestrained_nvt_ns` | number  | no       | `0`      | Unrestrained NVT relaxation after the backbone-restrained step, in ns. Default 0 skips it; Aldeghi 2019 uses 0.05. Minimum 0. |
| `mode_preset`                        | string  | no       | `smoke`  | The default keeps your supplied settings for a short demonstration. The Aldeghi 2019 preset replaces timing settings with 5 ns equilibration, 50 switches per direction, 3 replicates, and an explicit-solvent unfolded reference, substantially increasing runtime and credits. One of `smoke`, `aldeghi_2019_quantitative`. |
| `random_seed`                        | integer | no       | `42`     | Recorded with the results but does not control simulation randomness. Identical inputs and seeds can produce different ΔΔG values; treat repeat runs as independent samples. |
| `equil_length_ns`                    | number  | no       | `0.005`  | Equilibration per endpoint before each switch, in ns; default 0.005 (5 ps) is a short demonstration setting. Values run down to one 4 fs integration step with no upper cap; longer equilibration increases runtime and credits proportionally. Minimum 4e-06. |
| `n_neq_switches_per_direction`       | integer | no       | `50`     | Nonequilibrium switches in each direction (forward and reverse). Default 50 follows Aldeghi 2019. Minimum 1. |
| `protocol_repeats`                   | integer | no       | `1`      | Independent replicates of the complete folded and unfolded calculations. More than one reports the standard error across replicates; runtime and credits scale linearly, and default 1 is a demonstration setting. Minimum 1. |

#### Example Input

```json
{
  "protein_pdb": "<local path or storage key>",
  "mutations": "A:6:F"
}
```

`protein_pdb` takes a local path — the SDK uploads it and substitutes the storage key — or a storage key you already have. Check the Required column above for which of them you have to supply.

#### Featured Examples

Run one with `azulene examples submit protein_mutation_ddg_fold <example-id>`, or fetch its inputs first with `azulene examples download`.

| Example ID          | Name                         | Description |
| ------------------- | ---------------------------- | ----------- |
| `model-peptide-w6f` | Model peptide Trp6→Phe (ΔΔG) | Estimate ΔΔG for Trp6→Phe in a 7-residue model peptide; short demonstration settings are… |
| `chignolin-w9f`     | Chignolin Trp9→Phe (ΔΔG)     | Estimate ΔΔG for chignolin Trp9→Phe (1UAO), expected to destabilize the fold (positive ΔΔG)… |
| `cln025-y2g`        | CLN025 Tyr2→Gly (ΔΔG)        | Estimate ΔΔG for CLN025 Tyr2→Gly (5AWL), expected to destabilize the fold; short demonstration… |

---

### 22. Boltz-2 Structure + Affinity Prediction (`boltz_prediction`)

**Description:** Predict complex structures with up to 12 protein chains, 8 cofactors, and 1 ligand using Boltz-2. A ligand enables an affinity estimate by default; protein alignments use the public Boltz server, and structures are returned as CIF files.

**Category:** Co-folding · **Docs:** <https://docs.azulenelabs.com/tools/boltz_prediction/> · **Submission modes:** `single`

#### Input Schema

| Field          | Type    | Required | Default | Description |
| -------------- | ------- | -------- | ------- | ----------- |
| `proteins`     | array   | yes      | —       | Add 1-12 protein chains, one entry per copy; JSON input must be an array, e.g. [{"sequence":"MKT..."}]. Chain IDs default to A, B, C, etc., and msa.mode defaults to server; an ID list such as ["A","B"] also repeats a sequence. |
| `ligand`       | object  | no       | —       | Optional ligand for structure and affinity prediction, e.g. {"smiles":"&lt;SMILES&gt;"}. Provide exactly one of smiles or ccd; the chain ID defaults to Z. |
| `cofactors`    | array   | no       | —       | Up to 8 cofactors as a JSON array, e.g. [{"id":"C","ccd":"ATP"}]. Each needs an explicit ID and exactly one of ccd (preferred) or smiles. |
| `templates`    | array   | no       | —       | Optional structural templates as a JSON array, e.g. [{"url":"&lt;signed .pdb/.cif URL&gt;"}]. Each accepts url and optional chain_id, template_id, force, and threshold. |
| `constraints`  | object  | no       | —       | Optional pocket-distance restraints and covalent bonds, such as disulfides: {pockets: [...], bonds: [...]}. |
| `properties`   | object  | no       | —       | Control affinity prediction with {affinity: true} or {affinity: false}. It defaults to on when a ligand is present and off otherwise. |
| `runtime`      | object  | no       | —       | Prediction settings: use_msa_server=true, use_potentials=false, no_kernels=false, diffusion_samples=1, and output_format="cif" by default. |
| `mode`         | string  | no       | —       | Use json (default) for the fields above, or raw_yaml with raw_yaml_url to supply a complete Boltz YAML input. One of `json`, `raw_yaml`. |
| `raw_yaml_url` | string  | no       | —       | Signed URL for a complete Boltz YAML input; required in raw_yaml mode. Accepts `.yaml,.yml`. |
| `keep_dirs`    | boolean | no       | `true`  | Retain full prediction files for download (recommended, default on). |

##### `proteins` — one entry

| Field      | Type   | Required | Default  | Description |
| ---------- | ------ | -------- | -------- | ----------- |
| `id`       | string | no       | —        | Chain label, e.g. A |
| `sequence` | string | yes      | —        | One-letter sequence |
| `msa.mode` | string | no       | `server` | How the multiple-sequence alignment (MSA) is obtained. One of `server`, `empty`, `upload`. |

##### `ligand` — one entry

| Field    | Type   | Required | Default | Description |
| -------- | ------ | -------- | ------- | ----------- |
| `smiles` | string | no       | —       | SMILES, if the ligand has no CCD code |
| `ccd`    | string | no       | —       | PDB chemical-component (CCD) code, e.g. ATP. |
| `id`     | string | no       | —       | Chain label; auto-assigns to Z when omitted |

##### `cofactors` — one entry

| Field    | Type   | Required | Default | Description |
| -------- | ------ | -------- | ------- | ----------- |
| `id`     | string | yes      | —       | Chain label, e.g. A |
| `ccd`    | string | no       | —       | PDB chemical-component (CCD) code, e.g. ATP. |
| `smiles` | string | no       | —       | SMILES, if the ligand has no CCD code |

##### `templates` — one entry

| Field      | Type   | Required | Default | Description |
| ---------- | ------ | -------- | ------- | ----------- |
| `url`      | string | yes      | —       | Signed .pdb / .cif URL. Accepts `.pdb,.cif`. |
| `chain_id` | string | no       | —       | Chain this template applies to |

#### Example Input

```json
{
  "proteins": [
    {
      "sequence": "MNIFEMLRIDEGLRLKIYKDTEGYYTIGIGHLLTKSPSLNAAK"
    }
  ],
  "ligand": {
    "smiles": "CC(=O)Oc1ccccc1C(=O)O"
  },
  "properties": {
    "affinity": true
  }
}
```

#### Featured Examples

Run one with `azulene examples submit boltz_prediction <example-id>`, or fetch its inputs first with `azulene examples download`.

| Example ID                     | Name                                    | Description |
| ------------------------------ | --------------------------------------- | ----------- |
| `boltz-t4-toluene`             | T4 lysozyme L99A + toluene (affinity)   | Predict the T4 lysozyme L99A–toluene complex and estimate ligand affinity. |
| `boltz-dhfr-trimethoprim`      | E. coli DHFR + NADPH + trimethoprim     | Predict E. coli DHFR with NADPH and trimethoprim using pocket restraints, with an affinity… |
| `boltz-t4-template`            | T4 L99A + toluene (template-guided)     | Predict T4 lysozyme L99A with toluene using the experimental 1L83 structure as a template. |
| `boltz-hiv-protease-indinavir` | HIV-1 protease dimer + indinavir        | Predict the HIV-1 protease dimer with indinavir and estimate ligand affinity. |
| `boltz-fkbp-frb-rapamycin`     | FKBP12–FRB + rapamycin (molecular glue) | Predict the rapamycin-mediated FKBP12–FRB ternary complex. |
| `boltz-ubiquitin-ensemble`     | Ubiquitin 20-model ensemble             | Generate 20 predicted ubiquitin structures to compare conformations. |

---

### 23. Rank protein-protein interfaces using Opal (`opal_ppi`)

**Description:** Predict and rank protein–protein interfaces from two sequences, returning complex structures, interface-confidence scores, interface residues, and estimated affinity (pKd). Either chain may include a cyclic peptide, non-canonical residues, or covalent crosslinks. Returns up to 5 interfaces by default, with a combined limit of 1500 residues.

**Category:** Co-folding · **Docs:** <https://docs.azulenelabs.com/tools/opal_ppi/> · **Submission modes:** `single`

#### Input Schema

| Field                 | Type    | Required | Default | Description |
| --------------------- | ------- | -------- | ------- | ----------- |
| `protein_a`           | object  | yes      | —       | First protein chain. Prefer the binding domain: long disordered tails can lower predicted fold confidence (pTM) and increase runtime without improving the interface. |
| `protein_b`           | object  | yes      | —       | Second protein chain. The shorter chain is treated as the binder by default; use binder_chain to choose the partner whose binding you want to evaluate. |
| `n_surfaces`          | integer | no       | `5`     | Number of representative binding surfaces to return (1..20). Default 5. Range 1–20. |
| `n_diffusion_samples` | integer | no       | `15`    | Structure-prediction diffusion samples to run before clustering (2..50). Default 15. Range 2–50. |
| `binder_chain`        | string  | no       | —       | Chain whose binding you want to evaluate; defaults to the shorter chain and must match one of the supplied IDs. This choice sets the binder used for the affinity estimate (pKd) and Opal interaction-energy score; very long binders leave less receptor interface available for affinity estimation. |
| `bonds`               | array   | no       | —       | Covalent crosslinks as [{atom1: {chain_id, residue, atom}, atom2: {...}}], using 1-based sequence positions within or between chains. Use for staples, lactams, or thioethers involving non-canonical residues; ordinary cysteine disulfides are inferred automatically, and declaring them can worsen geometry. |
| `templates`           | array   | no       | —       | PDB or CIF templates with url and optional chain_id, force, and threshold. Set force=true for a strong restraint and choose a trusted conformation; an inaccurate template can pull the predicted interface away from the correct pose. |
| `runtime`             | object  | no       | —       | Adjust the prediction settings below, or keep the defaults. Structures are returned as PDB files. |
| `keep_dirs`           | boolean | no       | `true`  | Full prediction outputs are always retained for download at no extra archive charge. This setting has no effect. |
| `crop_receptor`       | boolean | no       | `true`  | Crop the receptor to a charge-balanced interface region before scoring (recommended, default on). Disable only when the receptor is already appropriately cropped; scoring an uncropped complex is unreliable. |

##### `protein_a` — one entry

| Field            | Type    | Required | Default  | Description |
| ---------------- | ------- | -------- | -------- | ----------- |
| `sequence`       | string  | yes      | —        | One-letter amino-acid sequence of the first chain. |
| `id`             | string  | no       | `A`      | Chain label. Defaults to A. |
| `msa.mode`       | string  | no       | `server` | Choose an automatic search, upload an alignment, or use the sequence alone. Predictions without an alignment may be less reliable. One of `server`, `empty`, `upload`. |
| `msa.upload_url` | string  | no       | —        | Upload a multiple-sequence alignment in A3M or CSV format. Accepts `.a3m,.csv`. |
| `cyclic`         | boolean | no       | `false`  | Close the backbone from the first residue’s N to the last residue’s C for a head-to-tail cyclic peptide. Leave off for staples, disulfides, and lactam bridges; incorrect closure can worsen predictions. Add nonstandard links in Covalent crosslinks. |
| `modifications`  | array   | no       | —        | Non-canonical residues as [{position, ccd}], with 1-based sequence positions. Use a placeholder letter in sequence and specify the actual chemistry here for D-amino acids, N-methylation, or staple residues. |

##### `protein_b` — one entry

| Field            | Type    | Required | Default  | Description |
| ---------------- | ------- | -------- | -------- | ----------- |
| `sequence`       | string  | yes      | —        | One-letter amino-acid sequence of the second chain. |
| `id`             | string  | no       | `B`      | Chain label. Defaults to B. |
| `msa.mode`       | string  | no       | `server` | Choose an automatic search, upload an alignment, or use the sequence alone. Predictions without an alignment may be less reliable. One of `server`, `empty`, `upload`. |
| `msa.upload_url` | string  | no       | —        | Upload a multiple-sequence alignment in A3M or CSV format. Accepts `.a3m,.csv`. |
| `cyclic`         | boolean | no       | `false`  | Close the backbone from the first residue’s N to the last residue’s C for a head-to-tail cyclic peptide. Leave off for staples, disulfides, and lactam bridges; incorrect closure can worsen predictions. Add nonstandard links in Covalent crosslinks. |
| `modifications`  | array   | no       | —        | Non-canonical residues as [{position, ccd}], with 1-based sequence positions. Use a placeholder letter in sequence and specify the actual chemistry here for D-amino acids, N-methylation, or staple residues. |

##### `bonds` — one entry

| Field            | Type    | Required | Default | Description |
| ---------------- | ------- | -------- | ------- | ----------- |
| `atom1.chain_id` | string  | yes      | —       | First partner’s chain ID, matching one supplied above. |
| `atom1.residue`  | integer | yes      | —       | 1-based residue index of the first crosslink partner. Minimum 1. |
| `atom1.atom`     | string  | yes      | —       | PDB atom name on residue 1. SG for a Cys sulfur, NZ for a Lys amine, CZ on an MH8 staple, CJ on an L4R staple. |
| `atom2.chain_id` | string  | yes      | —       | Second partner’s chain ID; use the same chain for an internal bridge or another chain for a covalent complex. |
| `atom2.residue`  | integer | yes      | —       | 1-based residue index of the second crosslink partner. Minimum 1. |
| `atom2.atom`     | string  | yes      | —       | PDB atom name on residue 2. |

##### `templates` — one entry

| Field       | Type    | Required | Default | Description |
| ----------- | ------- | -------- | ------- | ----------- |
| `url`       | file    | yes      | —       | PDB or CIF structure to template on. Accepts `.pdb,.cif`. |
| `chain_id`  | string  | no       | —       | Which of this job's chains the template applies to. Omit to let the folding model match. |
| `force`     | boolean | no       | `false` | Enforce the template as a structural restraint. |
| `threshold` | number  | no       | `1`     | Distance threshold, in Angstrom, for the forced template restraint. |

##### `runtime` — one entry

| Field            | Type    | Required | Default | Description |
| ---------------- | ------- | -------- | ------- | ----------- |
| `use_msa_server` | boolean | no       | `true`  | On by default. Enable alignment searches for chains set to Automatic search. Turn off only when both chains use an uploaded alignment or no alignment. |
| `step_scale`     | number  | no       | `null`  | Range: 0.5–3.0. Lower values broaden sampled conformations. Leave blank to use the model default. Range 0.5–3. |
| `use_potentials` | boolean | no       | `false` | Use extra restraints during prediction to reduce atomic clashes and preserve bond geometry and stereochemistry. Can take longer; off by default. |
| `no_kernels`     | boolean | no       | `false` |  |

#### Example Input

```json
{
  "protein_a": {
    "sequence": "MNIFEMLRIDEGLRLKIYKDTEGYYTIGIGHLLTKSPSLNAAK"
  },
  "protein_b": {
    "sequence": "MNIFEMLRIDEGLRLKIYKDTEGYYTIGIGHLLTKSPSLNAAK"
  },
  "n_surfaces": 5,
  "n_diffusion_samples": 15
}
```

#### Featured Examples

Run one with `azulene examples submit opal_ppi <example-id>`, or fetch its inputs first with `azulene examples download`.

| Example ID                 | Name                                | Description |
| -------------------------- | ----------------------------------- | ----------- |
| `opal-ppi-barnase-barstar` | Barnase-Barstar interface           | Predict and rank candidate interfaces for the barnase–barstar complex. |
| `opal-ppi-pd1-pdl1`        | PD-1 / PD-L1 immune checkpoint      | Predict and rank the PD-1–PD-L1 interface using the IgV ectodomains (4ZQK). |
| `opal-ppi-kras-raf1-rbd`   | KRAS / RAF1-RBD oncogenic interface | Predict and rank interfaces between the KRAS G-domain and RAF1 Ras-binding domain (6VJJ). |

---

### 24. Macrocycle and Cyclic Peptide Binding Prediction (`boltz_macrocycle`)

**Description:** Predict receptor-bound macrocyclic or stapled peptide poses and rank them by interface confidence; receptor plus binder is limited to 1500 residues. Use the exploratory affinity estimate (higher means tighter binding) for broad differences, rather than close analogs. Opal attempts to calculate interaction-energy scores for the predicted poses. Missing protonation templates or unsuitable geometry can leave energy unreported. Affinity and interface scores can still be reported when energy is unavailable. Outputs are not calibrated binding free energies.

**Category:** Co-folding · **Docs:** <https://docs.azulenelabs.com/tools/macrocycle_affinity/> · **Submission modes:** `single`

#### Input Schema

| Field                 | Type    | Required | Default | Description |
| --------------------- | ------- | -------- | ------- | ----------- |
| `receptor`            | object  | yes      | —       | Target chain as `{"sequence": "<one-letter AA string>"}`. Use the binding-domain sequence; full-length receptors can reduce pose quality. |
| `binder`              | object  | yes      | —       | Peptide chain as `{"sequence": "<one-letter AA string>"}`. Specify nonstandard residues in `modifications` and crosslinks in `bonds`. |
| `modifications`       | array   | no       | —       | Nonstandard residues as `[{position, ccd}]`, using 1-based positions in `binder.sequence`. Leave empty for a canonical peptide. |
| `bonds`               | array   | no       | —       | Binder crosslinks as `[{kind, atom1: {residue, atom}, atom2: {residue, atom}}]`, with 1-based indices in `binder.sequence`. Specify staples, disulfides, lactams, and thioethers here; use `binder.cyclic` only for head-to-tail closure. |
| `n_poses`             | integer | no       | `5`     | Number of representative poses to return (1–20; default: 5). Range 1–20. |
| `n_diffusion_samples` | integer | no       | `15`    | Pose samples before ranking and clustering (2–50; default: 15). Runtime and cost scale roughly with this number. Range 2–50. |
| `ligand_arm`          | boolean | no       | `true`  | Also predict poses using the binder’s explicit molecular chemistry for subsequent scoring and refinement. Disabling this retains only the peptide-chain prediction and roughly halves runtime. |
| `ligand_file`         | file    | no       | —       | Binder chemistry in SDF or MOL; coordinates are not used as a starting pose. Accepts a Peptide Structure result (`structure_sdf_url.download_url`) and warns if its chemistry differs from the sequence. Accepts `.sdf,.mol`. |
| `ligand_smiles`       | string  | no       | —       | Optional binder SMILES; otherwise chemistry is assembled from `binder.sequence`, `modifications`, and `bonds`. Supplied SMILES are used unchanged, without adjusting protonation at pH 7.4. |
| `helm`                | string  | no       | —       | Binder chemistry in HELM2; it does not provide a starting pose. Docs: https://docs.azulenelabs.com/tools/peptide_structure/ |
| `runtime`             | object  | no       | —       | Settings: `{use_msa_server: bool=true, use_potentials: bool=true, no_kernels: bool=false}`. `use_potentials` helps reduce clashes and improve covalent geometry, at roughly 3× the sampling time. |
| `templates`           | array   | no       | —       | Binder-chain templates as `[{"url", "chain_id", "force", "threshold"}]`, using PDB or CIF files. Use a trusted conformation and set `force:true` to restrain sampling; generated conformers can reduce accuracy. |
| `keep_dirs`           | boolean | no       | `true`  | Full prediction outputs are always available for download; this setting has no effect. |
| `crop_receptor`       | boolean | no       | `true`  | Crop the receptor to the interface before Opal evaluation; enabled by default. Disable only for an already-cropped receptor, as large uncropped complexes give unreliable scores. |

##### `receptor` — one entry

| Field      | Type   | Required | Default  | Description |
| ---------- | ------ | -------- | -------- | ----------- |
| `sequence` | string | yes      | —        | One-letter sequence of the target protein |
| `id`       | string | no       | `A`      | Chain label; defaults to A |
| `msa.mode` | string | no       | `server` | How to obtain the receptor multiple sequence alignment (MSA). One of `server`, `empty`, `upload`. |

##### `binder` — one entry

| Field      | Type    | Required | Default | Description |
| ---------- | ------- | -------- | ------- | ----------- |
| `sequence` | string  | yes      | —       | One-letter sequence of the peptide binder |
| `id`       | string  | no       | `B`     | Chain label; defaults to B |
| `cyclic`   | boolean | no       | `false` | Enable only for an N-to-C-terminal backbone amide. For staples, disulfides, lactams, or thioethers on a linear backbone, leave off and specify the crosslink in `bonds`; an incorrect setting can produce misleading poses without an error. |

##### `modifications` — one entry

| Field      | Type    | Required | Default | Description |
| ---------- | ------- | -------- | ------- | ----------- |
| `position` | integer | yes      | —       | 1-based residue index into the binder sequence. Minimum 1. |
| `ccd`      | string  | yes      | —       | PDB Chemical Component Dictionary (CCD) code; verify it before use, as a valid but incorrect code models the wrong chemistry. Use `2JH` for 3-cyclobutyl-L-alanine and `ACA` for 6-aminohexanoic acid, not `CBA` or `AHX`. |

##### `bonds` — one entry

| Field           | Type    | Required | Default | Description |
| --------------- | ------- | -------- | ------- | ----------- |
| `kind`          | string  | no       | —       | Chemistry of the crosslink. Sets the default atom names and the bond order. One of `staple`, `disulfide`, `lactam`, `thioether`, `head_to_tail`, `sidechain`. |
| `atom1.residue` | integer | yes      | —       | 1-based residue index of the first crosslink partner. Minimum 1. |
| `atom1.atom`    | string  | no       | —       | PDB atom name on residue 1 (e.g. CZ, CJ, SG). Defaults from `kind`. |
| `atom2.residue` | integer | yes      | —       | 1-based residue index of the second crosslink partner. Minimum 1. |
| `atom2.atom`    | string  | no       | —       | PDB atom name on residue 2 (e.g. CZ, CJ, SG). Defaults from `kind`. |

##### `templates` — one entry

| Field       | Type    | Required | Default | Description |
| ----------- | ------- | -------- | ------- | ----------- |
| `url`       | file    | yes      | —       | Template structure in PDB or CIF format; SDF is not supported. Accepts `.pdb,.cif`. |
| `chain_id`  | string  | no       | —       | Binder chain ID; do not select the receptor chain, which would replace the receptor structure. |
| `force`     | boolean | no       | `false` | Restrain the binder to the template during sampling. Off by default; unrestrained templates have little effect. |
| `threshold` | number  | no       | `1.5`   | Allowed residue displacement from the template (Å) when `force` is enabled; use 1.0–1.5 Å. |

#### Example Input

```json
{
  "receptor": {
    "sequence": "MCNTNMSVPTDGAVTTSQIPASEQETLVRPKPLLLKLLKSVGAQKDTYTMKEVLFYLGQYIMTKRLYDEKQQHIVYCSNDLLGDLFGVPSFSVKEHRKIYTMIYRNLVVVNQQESSDSGTSVSEN"
  },
  "binder": {
    "sequence": "TSFAHYWALLA",
    "cyclic": false
  },
  "modifications": [
    {
      "position": 4,
      "ccd": "L4R"
    },
    {
      "position": 11,
      "ccd": "MH8"
    }
  ],
  "bonds": [
    {
      "kind": "staple",
      "atom1": {
        "residue": 4,
        "atom": "CJ"
      },
      "atom2": {
        "residue": 11,
        "atom": "CZ"
      }
    }
  ],
  "n_poses": 5,
  "n_diffusion_samples": 15
}
```

#### Featured Examples

Run one with `azulene examples submit boltz_macrocycle <example-id>`, or fetch its inputs first with `azulene examples download`.

| Example ID                          | Name                                                | Description |
| ----------------------------------- | --------------------------------------------------- | ----------- |
| `boltz-macrocycle-mdm2-stapled-p53` | MDM2 + stapled p53 helix (i,i+7 hydrocarbon staple) | Predict an i,i+7 stapled p53–MDM2 complex with L4R at residue 4 and MH8 at residue 11 linked… |
| `boltz-macrocycle-pdl1-cyclic`      | PD-L1 + head-to-tail cyclic peptide (PDB 7OUN)      | Predict the head-to-tail cyclic peptide bound to the PD-L1 IgV domain with `cyclic:true` (PDB… |
| `boltz-macrocycle-igg-fc-disulfide` | IgG1 Fc + Fc-III disulfide-cyclized peptide         | Predict Fc-III at the IgG1 Fc CH2–CH3 interface, specifying its Cys SG–SG disulfide in `bonds`… |

---

### 25. Chai-1 Complex Structure Prediction (`chai_prediction`)

**Description:** Predict all-atom structures of complexes containing proteins, RNA, DNA, and small molecules with Chai-1, with or without a multiple-sequence alignment (MSA). Combined chain length is limited to 1000 residues. For a larger single-chain protein, choose the OpenFold2 Protein Structure Prediction or OpenFold3 Complex Structure Prediction tool in the catalog.

**Category:** Co-folding · **Docs:** <https://docs.azulenelabs.com/tools/chai_prediction/> · **Submission modes:** `single`

#### Input Schema

| Field           | Type    | Required | Default | Description |
| --------------- | ------- | -------- | ------- | ----------- |
| `chains`        | array   | yes      | —       | Add one row per unique sequence with its molecule type and a unique chain ID. For identical copies, enter multiple IDs such as A,B; add small molecules under Ligands. |
| `ligands`       | array   | no       | —       | Add small molecules or cofactors as SMILES, each with a unique ID distinct from chain IDs, such as L1. Chai-1 does not accept CCD codes: copy the SMILES from the ligand's RCSB page. Leave empty if none are needed. |
| `runtime`       | object  | no       | —       | Prediction settings: use_esm_embeddings=true, use_msa_server=false, low_memory=true, num_diffn_samples=5, and output_format="cif" by default. |
| `mode`          | string  | no       | —       | Use json (default) for the fields above, or raw_fasta with raw_fasta_url to supply a complete Chai FASTA input. One of `json`, `raw_fasta`. |
| `raw_fasta_url` | string  | no       | —       | Signed URL for a complete Chai FASTA input; required in raw_fasta mode. Accepts `.fasta,.fa`. |
| `keep_dirs`     | boolean | no       | `true`  | Retain full prediction files for download (recommended, default on). |

##### `chains` — one entry

| Field      | Type   | Required | Default   | Description |
| ---------- | ------ | -------- | --------- | ----------- |
| `id`       | string | yes      | —         | Chain label, e.g. A. A list such as ["A","B"] repeats the same sequence as a homo-multimer. |
| `type`     | string | no       | `protein` | Use one-letter sequences for protein, RNA, or DNA; glycans use Chai syntax such as NAG(4-1 NAG). Supply small molecules and cyclic peptides as ligand SMILES. One of `protein`, `rna`, `dna`, `glycan`. |
| `sequence` | string | yes      | —         | The full sequence for this chain. Use one-letter amino-acid or nucleotide codes for proteins, RNA, or DNA. |

##### `ligands` — one entry

| Field    | Type   | Required | Default | Description |
| -------- | ------ | -------- | ------- | ----------- |
| `id`     | string | yes      | —       | Chain label, e.g. A |
| `smiles` | string | yes      | —       | SMILES of the ligand (required). Chai-1 does not take CCD codes. |

#### Example Input

```json
{
  "chains": [
    {
      "id": "A",
      "type": "protein",
      "sequence": "MNIFEMLRIDEGLRLKIYKDTEGYYTIGIGHLLTKSPSLNAAK"
    }
  ],
  "runtime": {
    "use_esm_embeddings": true,
    "num_diffn_samples": 5,
    "output_format": "cif"
  },
  "keep_dirs": true
}
```

#### Featured Examples

Run one with `azulene examples submit chai_prediction <example-id>`, or fetch its inputs first with `azulene examples download`.

| Example ID          | Name                           | Description |
| ------------------- | ------------------------------ | ----------- |
| `chai-abl-imatinib` | ABL1 kinase + imatinib         | Model the ABL1 kinase domain with imatinib to examine the predicted drug-binding pose and… |
| `chai-u1a-rna`      | U1A protein + U1 snRNA hairpin | Model the U1A spliceosomal protein bound to a U1 snRNA hairpin to examine RNA conformation and… |
| `chai-er-estradiol` | ER-α homodimer + estradiol     | Model two estrogen receptor-α ligand-binding domains with estradiol to examine the predicted… |

---

### 26. OpenFold3 Complex Structure Prediction (`openfold3_prediction`)

**Description:** Predict all-atom structures of proteins, RNA, DNA, and their complexes with small molecules using OpenFold3. Supports large assemblies, with completed runs of at least 1600 residues.

**Category:** Co-folding · **Docs:** <https://docs.azulenelabs.com/tools/openfold3_prediction/> · **Submission modes:** `single`

#### Input Schema

| Field               | Type    | Required | Default | Description |
| ------------------- | ------- | -------- | ------- | ----------- |
| `chains`            | array   | yes      | —       | Add 1-12 chains with an ID, one-letter sequence, and type (protein, RNA, or DNA; default protein). For identical copies, supply an ID list such as ["A","B"]; JSON example: [{"id":"A","type":"protein","sequence":"MKT..."}]. |
| `ligands`           | array   | no       | —       | Optional array of up to 8 ligands or cofactors, each with an ID and exactly one of ccd or smiles, e.g. [{"id":"L1","ccd":"ATP"}]. Leave empty if none are needed. |
| `bonded_atom_pairs` | array   | no       | —       | Explicit covalent / disulfide bonds: `[{chain_id_a, residue_a, atom_a, chain_id_b, residue_b, atom_b}]`. |
| `name`              | string  | no       | —       | Job name included in the input file (default openfold3_job). |
| `runtime`           | object  | no       | —       | Prediction settings: use_deepspeed_evo_attention=true, num_diffn_samples=5, num_recycles=3, precision="bf16", and output_format="cif" by default. |
| `mode`              | string  | no       | —       | Use json (default) for the fields above, or raw_af3_json with raw_af3_url to supply a complete AlphaFold3-format input. One of `json`, `raw_af3_json`. |
| `raw_af3_url`       | string  | no       | —       | Signed URL for a complete AlphaFold3-format JSON input; required in raw_af3_json mode. Accepts `.json`. |
| `user_ccd`          | string  | no       | —       | Optional user-supplied CCD entries in mmCIF format (raw text) for non-standard ligands. |
| `keep_dirs`         | boolean | no       | `true`  | Retain full prediction files for download (recommended, default on). |

##### `chains` — one entry

| Field      | Type   | Required | Default   | Description |
| ---------- | ------ | -------- | --------- | ----------- |
| `id`       | string | yes      | —         | Chain label, e.g. A. A list such as ["A","B"] repeats the same sequence as a homo-multimer. |
| `sequence` | string | yes      | —         | One-letter sequence |
| `type`     | string | no       | `protein` | Polymer type: protein, RNA, or DNA. Enter the corresponding one-letter sequence; add small molecules under Ligands. One of `protein`, `rna`, `dna`. |

##### `ligands` — one entry

| Field    | Type   | Required | Default | Description |
| -------- | ------ | -------- | ------- | ----------- |
| `id`     | string | yes      | —       | Chain label, e.g. A |
| `ccd`    | string | no       | —       | PDB chemical-component (CCD) code, e.g. ATP. |
| `smiles` | string | no       | —       | SMILES, if the ligand has no CCD code |

##### `bonded_atom_pairs` — one entry

| Field        | Type    | Required | Default | Description |
| ------------ | ------- | -------- | ------- | ----------- |
| `chain_id_a` | string  | yes      | —       | First chain |
| `residue_a`  | integer | yes      | —       | First residue number |
| `atom_a`     | string  | yes      | —       | First atom name, e.g. SG |
| `chain_id_b` | string  | yes      | —       | Second chain |
| `residue_b`  | integer | yes      | —       | Second residue number |
| `atom_b`     | string  | yes      | —       | Second atom name, e.g. SG |

#### Example Input

```json
{
  "chains": [
    {
      "id": "A",
      "type": "protein",
      "sequence": "MNIFEMLRIDEGLRLKIYKDTEGYYTIGIGHLLTKSPSLNAAK"
    }
  ],
  "name": "of3-single-protein",
  "runtime": {
    "num_diffn_samples": 5,
    "output_format": "cif"
  },
  "keep_dirs": true
}
```

#### Featured Examples

Run one with `azulene examples submit openfold3_prediction <example-id>`, or fetch its inputs first with `azulene examples download`.

| Example ID                    | Name                                       | Description |
| ----------------------------- | ------------------------------------------ | ----------- |
| `openfold3-trna-phe`          | Yeast tRNA-Phe (pure RNA)                  | Predict the structure of yeast tRNA-Phe from its RNA sequence. |
| `openfold3-ca2-acetazolamide` | Carbonic anhydrase II + acetazolamide (Zn) | Predict human carbonic anhydrase II with catalytic zinc and acetazolamide. |
| `openfold3-engrailed-dna`     | Engrailed homeodomain + dsDNA              | Predict the engrailed homeodomain bound to its double-stranded DNA operator. |

---

### 27. OpenFold2 Protein Structure Prediction (`openfold2_prediction`)

**Description:** Predict single-chain or multimer protein structures with OpenFold2, including large proteins with completed runs of at least 1600 residues. Upload a precomputed multiple-sequence alignment (MSA) for evolutionary context; no alignment search is available. Sequence-only predictions often have low residue confidence (mean pLDDT around 40-60), so assess the structure cautiously.

**Category:** Co-folding · **Docs:** <https://docs.azulenelabs.com/tools/openfold2_prediction/> · **Submission modes:** `single`

#### Input Schema

| Field           | Type    | Required | Default | Description |
| --------------- | ------- | -------- | ------- | ----------- |
| `proteins`      | array   | yes      | —       | Add 1-12 protein chains as {id, sequence, msa:{mode}}; an ID list repeats a sequence. Use empty (default) for sequence-only folding or upload with an .a3m upload_url; server also runs without an alignment. |
| `runtime`       | object  | no       | —       | long_sequence_inference and use_deepspeed_evo_attention default to true. Output is always mmCIF; output_format, num_recycles, chunk_size, precision, and use_msa_server have no effect. |
| `mode`          | string  | no       | —       | Use json (default) for the fields above, or raw_fasta with raw_fasta_url to supply a complete FASTA input. One of `json`, `raw_fasta`. |
| `raw_fasta_url` | string  | no       | —       | Signed URL for a complete FASTA input; required in raw_fasta mode. Accepts `.fasta,.fa`. |
| `keep_dirs`     | boolean | no       | `true`  | Retain full prediction files for download (recommended, default on). |

##### `proteins` — one entry

| Field            | Type   | Required | Default | Description |
| ---------------- | ------ | -------- | ------- | ----------- |
| `id`             | string | yes      | —       | Chain label, e.g. A. A list such as ["A","B"] repeats the same sequence as a homo-multimer. |
| `sequence`       | string | yes      | —       | One-letter sequence |
| `msa.mode`       | string | no       | `empty` | Use empty (default) for sequence-only folding, or upload with msa.upload_url for a precomputed alignment. server also runs without an alignment; sequence-only results often have mean pLDDT around 40-60 and need cautious interpretation. One of `server`, `empty`, `upload`. |
| `msa.upload_url` | string | no       | —       | Signed URL for this chain’s precomputed alignment (.a3m), required in upload mode. Upload is the only way to supply an alignment. Accepts `.a3m`. |

#### Example Input

```json
{
  "proteins": [
    {
      "id": "A",
      "sequence": "MNIFEMLRIDEGLRLKIYKDTEGYYTIGIGHLLTKSPSLNAAK",
      "msa": {
        "mode": "empty"
      }
    }
  ],
  "runtime": {
    "long_sequence_inference": true
  },
  "keep_dirs": true
}
```

#### Featured Examples

Run one with `azulene examples submit openfold2_prediction <example-id>`, or fetch its inputs first with `azulene examples download`.

| Example ID             | Name                           | Description |
| ---------------------- | ------------------------------ | ----------- |
| `openfold2-lysozyme`   | Hen egg-white lysozyme monomer | Predict lysozyme from sequence without an alignment; expect low confidence (mean pLDDT around… |
| `openfold2-luciferase` | Firefly luciferase (~550 aa)   | Predict the roughly 550-residue firefly luciferase chain without an alignment; expect low… |

---

### 28. ProteinMPNN Sequence Design (Inverse Folding) (`mpnn_design`)

**Description:** Design candidate amino-acid sequences for a supplied backbone (inverse folding), with sequence scores and native-sequence recovery. Choose ProteinMPNN for proteins, LigandMPNN to account for ligands, nucleic acids, or metals, or SolubleMPNN for soluble proteins.

**Category:** Mutation & Design · **Docs:** <https://docs.azulenelabs.com/tools/mpnn_design/> · **Submission modes:** `single`

#### Input Schema

| Field                             | Type    | Required | Default        | Description |
| --------------------------------- | ------- | -------- | -------------- | ----------- |
| `mode`                            | string  | yes      | `design`       | Selects this design task. Leave as the default. One of `design`. |
| `model_type`                      | string  | no       | `protein_mpnn` | Choose protein_mpnn (default) for proteins, ligand_mpnn to include ligands, nucleic acids, or metals, or soluble_mpnn for soluble proteins. One of `protein_mpnn`, `ligand_mpnn`, `soluble_mpnn`. |
| `pdb_file`                        | file    | no       | —              | Upload the protein backbone to redesign as a PDB or CIF file. Accepts `.pdb,.cif`. |
| `pdb`                             | object  | no       | —              | Alternative structure input: {"inline":"&lt;raw PDB text&gt;"} or {"url":"&lt;signed https URL&gt;"}. Provide this or pdb_file, not both. |
| `chains_to_design`                | array   | no       | —              | Chains to redesign, e.g. ["A"]; other chains remain as context. Leave empty to redesign all chains. |
| `fixed_positions`                 | object  | no       | —              | Keep these residues unchanged, e.g. {"A":[47,51,58]}. Use residue numbers from the structure file; missing numbers are silently skipped, so check them before submission. |
| `redesign_positions`              | object  | no       | —              | Redesign only these residues, e.g. {"A":[47,51,58]}, and keep the rest fixed. Use file residue numbers; missing numbers are silently skipped, and each chain may use this or Fixed positions, not both. |
| `bias_aa`                         | object  | no       | —              | Favor amino acids with positive values or discourage them with negative values at every designed position. For example, {"C":-2.0} discourages cysteine. |
| `omit_aa`                         | array   | no       | —              | Amino acids to never use at any designed position (e.g. exclude cysteine). |
| `num_seq_per_target`              | integer | no       | `8`            | How many candidate sequences to design (1 to 1024). Default 8. Range 1–1024. |
| `sampling_temp`                   | number  | no       | `0.1`          | Sampling temperature from 0.01 to 2.0 (default 0.1). Lower values favor likely sequences; higher values produce more diverse, less likely designs. Range 0.01–2. |
| `batch_size`                      | integer | no       | `1`            | Sequences computed per batch (1-128; default 1). Range 1–128. |
| `seed`                            | integer | no       | `37`           | Random seed. Default 37. Use the same seed to reproduce a run; change it to get a different set of designs. Minimum 0. |
| `checkpoint`                      | string  | no       | —              | Advanced: model selection. Keep the default unless you need specific model weights. |
| `parse_atoms_with_zero_occupancy` | boolean | no       | `false`        | Include atoms marked with zero occupancy only if they represent meaningful structure. Off by default. |
| `keep_dirs`                       | boolean | no       | `true`         | Retain full prediction files for download (recommended, default on). |

#### Example Input

```json
{
  "mode": "design",
  "model_type": "protein_mpnn",
  "pdb_file": "<local path or storage key>",
  "chains_to_design": [
    "A"
  ],
  "num_seq_per_target": 4,
  "sampling_temp": 0.1
}
```

`pdb_file` takes a local path — the SDK uploads it and substitutes the storage key — or a storage key you already have. Check the Required column above for which of them you have to supply.

#### Featured Examples

Run one with `azulene examples submit mpnn_design <example-id>`, or fetch its inputs first with `azulene examples download`.

| Example ID                    | Name                                  | Description |
| ----------------------------- | ------------------------------------- | ----------- |
| `mpnn-design-crambin`         | Crambin inverse folding (ProteinMPNN) | Design 8 sequences for the crambin backbone (1CRN) with ProteinMPNN at sampling temperature 0.1. |
| `mpnn-design-villin-hp36`     | Villin HP36 redesign (SolubleMPNN)    | Redesign villin HP36 (1VII) with SolubleMPNN, keeping three core phenylalanines fixed and… |
| `mpnn-design-t4-l99a-benzene` | T4 L99A + benzene (LigandMPNN)        | Design sequences for T4 lysozyme L99A (1L83) with LigandMPNN using the bound benzene as context. |

---

### 29. Protein Stability Prediction (ThermoMPNN) (`mpnn_stability`)

**Description:** Predict mutation-induced changes in folding stability (ΔΔG, kcal/mol) from a protein structure with ThermoMPNN. Negative values predict stabilization; positive values predict destabilization. Score specified mutations or every amino-acid substitution within a region to prioritize variants for testing.

**Category:** Protein Stability · **Docs:** <https://docs.azulenelabs.com/tools/mpnn_stability/> · **Submission modes:** `single`

#### Input Schema

| Field        | Type    | Required | Default         | Description |
| ------------ | ------- | -------- | --------------- | ----------- |
| `mode`       | string  | yes      | `stability`     | Selects this stability task. Leave as the default. One of `stability`. |
| `pdb_file`   | file    | no       | —               | Protein structure as a PDB or CIF file. Provide this or pdb, not both. Accepts `.pdb,.cif`. |
| `pdb`        | object  | no       | —               | Alternative structure input: {"inline":"&lt;raw PDB text&gt;"} or {"url":"&lt;signed https URL&gt;"}. Provide this or pdb_file, not both. |
| `mutations`  | array   | no       | —               | Mutations as {chain, position, from_aa, to_aa}, using residue numbers from the structure file, not sequence indices. A mismatched from_aa returns no predictions and a warning; provide this or saturation, not both. |
| `saturation` | object  | no       | —               | Scan all substitutions in {chain, start, end}, including both endpoints. Use residue numbers from the structure file, not sequence indices; provide this or mutations, not both. |
| `checkpoint` | string  | no       | `thermompnn_v1` | Advanced: model selection. Keep the default unless you need specific model weights. |
| `batch_size` | integer | no       | `256`           | Mutation batch size (1-4096; default 256). Range 1–4096. |
| `keep_dirs`  | boolean | no       | `true`          | Retain full prediction files for download (recommended, default on). |

##### `mutations` — one entry

| Field      | Type    | Required | Default | Description |
| ---------- | ------- | -------- | ------- | ----------- |
| `chain`    | string  | yes      | —       | Chain the residue is in |
| `position` | integer | yes      | —       | Residue number from the structure file (author numbering), not its position in the sequence. |
| `from_aa`  | string  | yes      | —       | Wild-type residue. One of `A`, `C`, `D`, `E`, `F`, `G`, `H`, `I`, `K`, `L`, `M`, `N`, `P`, `Q`, `R`, `S`, `T`, `V`, `W`, `Y`. |
| `to_aa`    | string  | yes      | —       | Substituted residue. One of `A`, `C`, `D`, `E`, `F`, `G`, `H`, `I`, `K`, `L`, `M`, `N`, `P`, `Q`, `R`, `S`, `T`, `V`, `W`, `Y`. |

#### Example Input

```json
{
  "mode": "stability",
  "pdb_file": "<local path or storage key>",
  "mutations": [
    {
      "chain": "A",
      "position": 1,
      "from_aa": "M",
      "to_aa": "V"
    }
  ]
}
```

`pdb_file` takes a local path — the SDK uploads it and substitutes the storage key — or a storage key you already have. Check the Required column above for which of them you have to supply.

#### Featured Examples

Run one with `azulene examples submit mpnn_stability <example-id>`, or fetch its inputs first with `azulene examples download`.

| Example ID                   | Name                              | Description |
| ---------------------------- | --------------------------------- | ----------- |
| `mpnn-stability-ubiquitin`   | Ubiquitin core mutations (ΔΔG)    | Predict ΔΔG for ubiquitin core mutations I3V, V5A, and L8A (1UBQ). |
| `mpnn-stability-crambin`     | Crambin saturation scan (ΔΔG)     | Predict 95 ΔΔG values for all non-native substitutions at crambin residues 5-9 (1CRN). |
| `mpnn-stability-villin-hp36` | Villin HP36 single mutation (ΔΔG) | Predict ΔΔG for the villin HP36 core mutation F47A (1VII). |

---

### 30. ESM-2 Protein Sequence Embeddings (`esm2_embed`)

**Description:** Convert protein sequences into ESM-2 embeddings: numeric vectors for similarity search, clustering, or machine learning. Submit one or more sequences and optionally predict residue–residue contact maps.

**Category:** Mutation & Design · **Docs:** <https://docs.azulenelabs.com/tools/esm2_embed/> · **Submission modes:** `single`

#### Input Schema

| Field             | Type    | Required | Default | Description |
| ----------------- | ------- | -------- | ------- | ----------- |
| `sequences`       | array   | yes      | —       | One-letter sequences, one per line or in FASTA, up to 64 sequences of 2048 residues each; results retain input order. Sequences above 1022 residues exceed ESM-2’s trained context, giving less reliable embeddings and a warning. |
| `labels`          | array   | no       | —       | Optional names, one per sequence in input order; the count must match. FASTA headers are not retained, so unlabeled results are identified by position only. |
| `model_variant`   | string  | no       | `650M`  | 650M (default) gives 1280-number vectors; the larger, higher-cost 3B model gives 2560-number vectors. One of `650M`, `3B`. |
| `pool`            | string  | no       | `mean`  | mean (default) averages residue vectors into one protein vector; cls uses the model’s summary token. none returns a vector for each residue as a downloadable file. One of `mean`, `cls`, `none`. |
| `return_contacts` | boolean | no       | —       | Predict a map of how likely each residue pair is to contact. Off by default. |
| `fp16`            | boolean | no       | `true`  | Use half-precision GPU calculations for speed (default on). |

#### Example Input

```json
{
  "sequences": [
    "MKIEELKKWVEEFDKKLAEIFKFDFGGYRELADKVAEAVGKKVDEKQKKIVEIFEKVEAEA"
  ],
  "model_variant": "650M",
  "pool": "mean"
}
```

#### Featured Examples

Run one with `azulene examples submit esm2_embed <example-id>`, or fetch its inputs first with `azulene examples download`.

| Example ID             | Name                                 | Description |
| ---------------------- | ------------------------------------ | ----------- |
| `esm2-embed-ubiquitin` | Ubiquitin mean-pooled embedding      | Generate an ESM-2 650M vector for ubiquitin (76 residues), averaged over residues. |
| `esm2-embed-lysozyme`  | Lysozyme CLS embedding + contact map | Generate a summary-token vector and predicted contact map for lysozyme (129 residues). |
| `esm2-embed-minibatch` | Mini-protein embeddings              | Generate one 1280-number vector each for Trp-cage, villin HP36, and GB1 in a single run. |

---

### 31. ESM-2 Zero-Shot Mutation Scoring (`esm2_mutation_score`)

**Description:** Rank point mutations with ESM-2 without supplying training data. Higher scores indicate more favorable sequence-model predictions relative to wild type; lower scores indicate less favorable predictions.

**Category:** Mutation & Design · **Docs:** <https://docs.azulenelabs.com/tools/esm2_mutation_score/> · **Submission modes:** `single`

#### Input Schema

| Field           | Type    | Required | Default           | Description |
| --------------- | ------- | -------- | ----------------- | ----------- |
| `sequence`      | string  | yes      | —                 | Wild-type one-letter sequence, up to 2048 residues. Beyond 1022 residues, scoring exceeds ESM-2’s trained context and is less reliable. |
| `mutants`       | array   | yes      | —                 | Up to 4096 mutations, e.g. M1A: original residue, 1-based sequence position, and new residue. Incorrect original residues and out-of-range positions are rejected. |
| `model_variant` | string  | no       | `650M`            | Choose 650M (default) or the larger, higher-cost 3B model. One of `650M`, `3B`. |
| `method`        | string  | no       | `masked_marginal` | masked_marginal (default) masks each mutation site before scoring; wt_marginal scores from the wild-type sequence and is faster. One of `masked_marginal`, `wt_marginal`. |
| `fp16`          | boolean | no       | `true`            | Use half-precision GPU calculations for speed (default on). |

#### Example Input

```json
{
  "sequence": "MKIEELKKWVEEFDKKLAEIFKFDFGGYRELADKVAEAVGKKVDEKQKKIVEIFEKVEAEA",
  "mutants": [
    "M1A",
    "K2R",
    "I3V"
  ],
  "method": "masked_marginal"
}
```

#### Featured Examples

Run one with `azulene examples submit esm2_mutation_score <example-id>`, or fetch its inputs first with `azulene examples download`.

| Example ID                | Name                                | Description |
| ------------------------- | ----------------------------------- | ----------- |
| `esm2-mutation-lysozyme`  | Lysozyme functional-site mutations  | Score mutations at lysozyme Glu35, Asp52, and a buried tryptophan using masked-marginal scoring. |
| `esm2-mutation-ubiquitin` | Ubiquitin functional-site mutations | Score mutations at ubiquitin’s Ile44 patch, Lys48/Lys63, and Gly76 using masked-marginal… |
| `esm2-mutation-gb1`       | GB1 hydrophobic-core alanine scan   | Wild-type-marginal alanine scan over the GB1 hydrophobic core (Y3, L5, F30, W43, F52). |

---

### 32. ESMFold Single-Chain Structure Prediction (`esmfold_predict`)

**Description:** Predict a single-chain protein structure from up to 1024 residues without a multiple-sequence alignment (MSA). Returns residue confidence (pLDDT) and overall fold confidence (pTM). Residues start at 1 in a new coordinate frame, so binding-site coordinates from another structure must be mapped to this one.

**Category:** Structure Generation · **Docs:** <https://docs.azulenelabs.com/tools/esmfold_predict/> · **Submission modes:** `single`

#### Input Schema

| Field           | Type    | Required | Default | Description |
| --------------- | ------- | -------- | ------- | ----------- |
| `sequence`      | string  | yes      | —       | The protein sequence to fold (one-letter amino acids, up to 1024 residues). |
| `output_format` | string  | no       | —       | Structure file format to return: "pdb" (default) or "cif" (mmCIF). |
| `chunk_size`    | integer | no       | —       | Smaller chunks reduce GPU memory use but run more slowly. Leave unset for the default, or lower it if a long sequence runs out of memory. |
| `num_recycles`  | integer | no       | —       | Refinement passes (0-8; default 4). More passes may improve the structure, but designed or unusual sequences can still have low confidence. |
| `keep_dirs`     | boolean | no       | `true`  | Retain full prediction files for download (recommended, default on). |

#### Example Input

```json
{
  "sequence": "MQIFVKTLTGKTITLEVEPSDTIENVKAKIQDKEGIPPDQQRLIFAGKQLEDGRTLSDYNIQKESTLHLVLRLRGG",
  "output_format": "pdb",
  "num_recycles": 4
}
```

#### Featured Examples

Run one with `azulene examples submit esmfold_predict <example-id>`, or fetch its inputs first with `azulene examples download`.

| Example ID            | Name                               | Description |
| --------------------- | ---------------------------------- | ----------- |
| `esmfold-trp-cage`    | Trp-cage TC5b mini-protein (20 aa) | Predict the 20-residue Trp-cage TC5b structure and download it as PDB. |
| `esmfold-villin-hp36` | Villin headpiece HP36 (mmCIF)      | Predict the 36-residue villin HP36 structure and download it as mmCIF. |
| `esmfold-ubiquitin`   | Ubiquitin β-grasp fold (76 aa)     | Predict the 76-residue ubiquitin structure and download it as PDB. |

---

### 33. Organic Crystal Structure Prediction (CSP) (`crystal_prediction`)

**Description:** Predict organic crystal structures with Opal from either a SMILES string or an uploaded molecular geometry. Optionally compare predictions against an experimental CIF.

**Category:** Structure Generation · **Docs:** <https://docs.azulenelabs.com/tools/crystal_prediction/> · **Submission modes:** `single`

#### Input Schema

| Field                     | Type    | Required | Default | Description |
| ------------------------- | ------- | -------- | ------- | ----------- |
| `smiles`                  | string  | no       | —       | Molecule as SMILES. Provide exactly one: SMILES or a molecular geometry file. |
| `molecule_filename`       | file    | no       | —       | Upload a molecular geometry file, such as .xyz, .cif, .mol, or .sdf. Provide either this file or SMILES. |
| `preset`                  | string  | yes      | `quick` | Search size: test (minimal), quick (standard) or full (extensive). One of `test`, `quick`, `full`. |
| `exp_cif_file`            | file    | no       | —       | Experimental CIF for comparison with predicted energy, density and structural similarity (RMSD). |
| `exp_is_lowest_polymorph` | boolean | no       | `false` | If the experimental structure is the most stable polymorph, report whether its matched prediction has the lowest predicted energy. |

#### Example Input

```json
{
  "smiles": "CC(=O)Oc1ccccc1C(=O)O",
  "preset": "quick"
}
```

#### Featured Examples

Run one with `azulene examples submit crystal_prediction <example-id>`, or fetch its inputs first with `azulene examples download`.

| Example ID         | Name                                   | Description |
| ------------------ | -------------------------------------- | ----------- |
| `aspirin-smiles`   | Aspirin crystal (from SMILES)          | Predict aspirin crystal packings from SMILES with the fast test preset. |
| `acetic-acid-xyz`  | Acetic acid: .xyz and experimental CIF | Predict acetic acid crystal packings from relaxed .xyz geometry with the quick preset… |
| `nicotinamide-sdf` | Nicotinamide crystal (.sdf)            | Predict nicotinamide crystal packings from .sdf geometry with explicit bonds using the fast… |

---

### Retired job types

Earlier revisions of this document described the ids below. They are not in the live catalog, so submitting one fails before anything runs and no credits are consumed. They are kept here so an old script or notebook has somewhere to land.

| Retired ID             | Why                                                                                                                                                                                                                                                                                                                                         | Use instead |
| ---------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------- |
| `mp2`                  | Quantum-chemistry tools were withdrawn from the catalog.                                                                                                                                                                                                                                                                                    | — |
| `hartree_fock`         | Quantum-chemistry tools were withdrawn from the catalog.                                                                                                                                                                                                                                                                                    | — |
| `ccsd_calculation`     | Quantum-chemistry tools were withdrawn from the catalog.                                                                                                                                                                                                                                                                                    | — |
| `xtb_calculation`      | Semi-empirical tool withdrawn from the catalog.                                                                                                                                                                                                                                                                                             | — |
| `molecular_dynamics`   | Plain MD was withdrawn; the free-energy tools run their own MD.                                                                                                                                                                                                                                                                             | `absolute_binding`, `relative_binding` |
| `relative_binding_uaa` | Not in the catalog. The unnatural-amino-acid protocol is only exposed for solvation-phase relative free energies.                                                                                                                                                                                                                           | `relative_fe_uaa` |
| `pocket_docking`       | Commented out of `job_definitions.ts` and never re-enabled, so it is not submittable — and no tool finds a pocket for you: `docking` REQUIRES `binding_site_center`, which you must supply. `pdb_file` is now `structure_file`; `ligand_smiles` keeps its name (`drug_smiles` is a deprecated alias). `chain_id` is newly required on both. | `docking`, `covalent_docking` |
| `upload_file`          | Not a job type. Pass a local path to any `file` field and the SDK uploads it first, then submits the returned storage key.                                                                                                                                                                                                                  | — |
| `predict_admet`        | Temporarily hidden from the public catalog while an ML ADMET water-toxicity result is investigated (SAA-607), not withdrawn. Still registered and runnable internally; it will return here when that is resolved.                                                                                                                           | — |
| `predict_solubility`   | Temporarily hidden from the public catalog while the AqSolDB model is validated (opal-backend #227), not withdrawn. Still registered and submittable by id; it will return here when that is resolved.                                                                                                                                      | — |

---

For live job type info directly on Azulene Studio, always refer to:

```bash
azulene jobs get-job-types
```

or see the [API_Reference.md](API_Reference.md) for usage patterns and CLI/Python examples.



**All Rights Reserved**
<!-- END GENERATED job-types -->
