gdock

gdock: Information-driven protein-protein docking using a genetic algorithm

Free, open-source docking software for protein complexes. Use interface residues as ambiguous restraints, as in HADDOCK.

Dock proteins in your browser

Runs entirely in your browserNo data sent to any serverDownload results before leaving

Upload a receptor and ligand PDB, specify residue restraints, then run the genetic algorithm docking engine directly in your browser.

No restraints — select a receptor and ligand residue above to add a pair.

or restore a previous job

Vargas Honorato, R. gdock: Information-Driven Protein-Protein Docking Using a Genetic Algorithm. Zenodo, 2026. doi:10.5281/zenodo.18863557

Algorithm

gdock uses a genetic algorithm to optimize rigid-body protein-protein docking, guided by a physics-based scoring function and optional experimental restraints.

Genetic Algorithm

Each candidate pose is encoded as a chromosome with 6 genes: three Euler angles (α, β, γ) for rotation and three translations (x, y, z) for positioning the ligand relative to the receptor.

Population size150
ElitismTop 5 preserved
SelectionTournament
CrossoverUniform
MutationCreep mutation
Early stopping10 generations without improvement

Energy Function

Etotal=wvdwEvdw+welecEelec+wdesolvEdesolv+wairEairE_{total} = w_{vdw} E_{vdw} + w_{elec} E_{elec} + w_{desolv} E_{desolv} + w_{air} E_{air}
w = 0.4
Evdw=εij[(rmin6reff6)2−2(rmin6reff6)]E_{vdw} = \varepsilon_{ij} \left[ \left(\frac{r_{min}^6}{r_{eff}^6}\right)^2 - 2\left(\frac{r_{min}^6}{r_{eff}^6}\right) \right]
where reff6=r6+α⋅rmin6r_{eff}^6 = r^6 + \alpha \cdot r_{min}^6

Soft-core Lennard-Jones. Remains finite at r→0, allowing exploration of near-native poses with minor clashes.

w = 0.05
Eelec=332.0⋅q1⋅q2r2E_{elec} = \frac{332.0 \cdot q_1 \cdot q_2}{r^2}

Coulombic electrostatics with distance-dependent dielectric (ε = r) to dampen long-range interactions.

w = 3.4
Edesolv=−∑iASPi⋅buriali⋅4πri2E_{desolv} = -\sum_{i} ASP_i \cdot burial_i \cdot 4\pi r_i^2

Empirical atomic solvation parameters penalize burial of polar atoms (N, O) and reward burial of hydrophobic atoms (C, S).

w = 1.0
Eair=k⋅(d−7)2if d>7A˚E_{air} = k \cdot (d - 7)^2 \quad \text{if } d > 7\text{Å}

Flat-bottom harmonic on Cα–Cα distances. No penalty within 0–7Å; quadratic penalty beyond. HADDOCK-inspired.

Benchmark

Benchmarked on the Protein-Protein Docking Benchmark v5, gdock achieves high success rates with minimal computational cost.

95.9%
Success rate
DockQ ≥ 0.23 (acceptable quality)
55.7%
Medium quality
DockQ ≥ 0.49
3.7%
High quality
DockQ ≥ 0.80
DockQ quality categories distribution across benchmark
Histogram of docking runtime across benchmark

Runtime Performance

~15s
Median runtime
56%
Within 20 seconds
<2min
95th percentile

Tested on standard computational hardware. Actual performance may vary based on protein size and complexity.

About DockQ

DockQ is a continuous quality measure for protein docking models, combining interface RMSD, ligand RMSD, and fraction of native contacts into a single score between 0 and 1.

Incorrect (< 0.23)
Acceptable (0.23 – 0.49)
Medium (0.49 – 0.80)
High (≥ 0.80)

Installation

Install gdock via cargo install or build from source. Requires Rust 1.85 or later.

1

Install via Cargo

Install directly from crates.io. Requires Rust 1.85 or later.

bash
cargo install gdock

Don't have Rust? Install it here — takes about a minute.

2

Prepare your input

You need two PDB files (receptor and ligand) and residue restraints indicating which residues should be in contact.

bash
# Download and split a complex from the PDB
curl -sL https://files.rcsb.org/download/2OOB.pdb -o 2OOB.pdb
awk '/^ATOM/ && substr($0,22,1)=="A"' 2OOB.pdb > 2oob_A.pdb
awk '/^ATOM/ && substr($0,22,1)=="B"' 2OOB.pdb > 2oob_B.pdb

# Restraints format: receptor_resid:ligand_resid pairs
# Example: 933:6,936:8,940:42,941:44,946:45,950:46
3

Run docking

Execute gdock with your structures and restraints. Most runs complete in ~15 seconds.

bash
gdock run \
  --receptor 2oob_A.pdb \
  --ligand 2oob_B.pdb \
  --restraints 933:6,936:8,940:42,941:44,946:45,950:46
4

Analyze results

gdock outputs cluster representatives, top-ranked models, and a metrics file with scores.

bash
# Output files
results/model_*.pdb    # Cluster representatives
results/ranked_*.pdb   # Top 5 models by score
results/metrics.tsv    # Scores and DockQ values

# View metrics
cat results/metrics.tsv

CLI Reference

gdock provides three subcommands: run for docking, score for energy calculation, and restraints for generating restraints from a reference structure.

Run the full genetic algorithm docking between a receptor and ligand.

bash
gdock run [OPTIONS] --receptor <FILE> --ligand <FILE> --restraints <PAIRS>

Required:
  -r, --receptor <FILE>       Receptor PDB file (single chain)
  -l, --ligand <FILE>         Ligand PDB file (single chain)
  --restraints <PAIRS>        Residue pairs, e.g. 933:6,936:8,940:42

Options:
  -o, --output-dir <DIR>      Output directory (default: current)
  -n, --nproc <NUM>           Number of processors (default: total - 2)
  --reference <FILE>          Reference structure for DockQ calculation
  --no-clust                  Disable clustering
  --w_vdw <WEIGHT>            VDW energy weight
  --w_elec <WEIGHT>           Electrostatics weight
  --w_desolv <WEIGHT>         Desolvation weight
  --w_air <WEIGHT>            Restraints weight
  -h, --help                  Print help

Example

bash
gdock run \
  --receptor data/2oob_A.pdb \
  --ligand data/2oob_B.pdb \
  --restraints 933:6,936:8,940:42,941:44,946:45,950:46 \
  --reference data/2oob.pdb \
  --output-dir results/