Skip to main content

VariDock

PyPI version PyPI pyversions Docs License: MIT

A modular pipeline for cross-species protein–ligand virtual screening, combining structure prediction, molecular dynamics, pocket detection, and ensemble docking into a reproducible, HPC-ready workflow.

Overview

VariDock automates the full path from protein sequence to docked binding poses:

  1. Structure prediction — AlphaFold 3 co-folding with pre-computed MSA reuse across combinatorial protein–ligand screens
  2. Molecular dynamics — NAMD-based simulations to generate conformational ensembles and validate predicted complexes
  3. Pocket detection — DeepSurf-based identification of binding sites on MD-sampled frames
  4. Virtual screening — AutoDock Vina ensemble docking across multiple receptor conformations

Each step is a composable stage with typed inputs and outputs, making it straightforward to swap tools, extend to new species, or run partial workflows.

Installation

pip install varidock

For development:

git clone https://github.com/abdollahegazy/varidock.git
cd varidock
pip install -e ".[dev]"

Quick Start

from pathlib import Path
from varidock.stages import AF3InputBuilder, AF3MSAStage, AF3MSAMerger, AF3MSAMergerConfig
from varidock.runners.af3 import AF3Config
from varidock.types import ProteinSequence, Ligand

# 1. Build monomer input JSONs
builder = AF3InputBuilder(output_dir=Path("data/msa/fbox"), chain_id="F")
msa_input = builder.run(ProteinSequence(name="AT3G62980", sequence="MKVLF..."))

# 2. Run MSA (requires AF3 Singularity image + databases)
af3_cfg = AF3Config.from_config(script_args=("--norun_inference",))
msa_output = AF3MSAStage(af3_cfg).run(msa_input)

# 3. Merge monomer MSAs into a dimer + ligand input
merger = AF3MSAMerger(AF3MSAMergerConfig(output_dir=Path("data/complexes/IAC")))
merged = merger.run(
    msa_outputs=[fbox_msa, cor_msa],
    ligands=[Ligand(name="auxin", ccd="IAC", af3_sequence_id="L")],
)

Pipeline Architecture

VariDock uses a stage-based architecture where each processing step is an independent, typed unit:

ProteinSequence
      │
      ▼
┌─────────────────┐
│ AF3InputBuilder  │  Build AF3 input JSON (per monomer)
└────────┬────────┘
         ▼
┌─────────────────┐
│  AF3MSAStage     │  Run MSA/template search (CPU, --norun_inference)
└────────┬────────┘
         ▼
┌─────────────────┐
│  AF3MSAMerger    │  Combine monomer MSAs + ligand into multimer JSON
└────────┬────────┘
         ▼
┌─────────────────┐
│ AF3InferenceStage│  Run structure prediction (GPU, --norun_data_pipeline)
└────────┬────────┘
         ▼
        CIF
         │
         ▼
┌─────────────────┐
│   CIFToPDB       │  Convert to PDB format
└────────┬────────┘
         ▼
┌─────────────────┐
│   MD Simulation   │  NAMD molecular dynamics
└────────┬────────┘
         ▼
┌─────────────────┐
│  Pocket Detection │  DeepSurf binding site identification
└────────┬────────┘
         ▼
┌─────────────────┐
│  Ensemble Docking │  AutoDock Vina across conformations
└─────────────────┘

Stages communicate through typed dataclasses, and execution is decoupled via executors (LocalExecutor, SlurmExecutor) so the same pipeline runs on a laptop or an HPC cluster.

HPC / SLURM Support

VariDock is designed for large-scale screens on HPC clusters. The MSA stage supports sharded genetic databases for parallel search across many cores:

from varidock.runners.af3 import AF3Config, sharded_script_args

af3_cfg = AF3Config.from_config(script_args=(
    "--norun_inference",
    *sharded_script_args(jackhmmer_n_cpu=2, jackhmmer_max_shards=16),
))

Configuration

VariDock reads from a varidock.toml config file for paths to external tools:

[af3]
sif_path = "/path/to/alphafold3.sif"
model_dir = "/path/to/models"
db_dir = "/path/to/databases"
runner_script = "/path/to/run_alphafold.py"

Load with:

af3_cfg = AF3Config.from_config()

Requirements

  • Python ≥ 3.10
  • AlphaFold 3 (Singularity image + model parameters + genetic databases)
  • NAMD (for MD simulations)
  • AutoDock Vina + Meeko (for docking)
  • Open Babel (for format conversions)

License

VariDock is available under the MIT License. See LICENSE for details.

Citation

If you use VariDock in your research, please cite:

@software{varidock,
  title={VariDock: Cross-species protein-ligand virtual screening pipeline},
  url={https://github.com/abdollahegazy/varidock},
}

Metadata

Release files for varidock 0.1.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for varidock 0.1.4.0
File Size Uploaded Provenance Actions
varidock-0.1.4.0.tar.gz 160.9 kB With provenance Details for varidock-0.1.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for varidock 0.1.4.0
File Interpreter ABI Platform Actions
varidock-0.1.4.0-py3-none-any.whl Python 3 none any Details for varidock-0.1.4.0-py3-none-any.whl

Total release size: 233.6 kB

Release files / varidock-0.1.4.0.tar.gz

Download URL varidock-0.1.4.0.tar.gz
Size 160.9 kB
Tags Source
SHA-256 checksum
How to use checksums
a7afbddabf25426ef1ffa5774e0dda77167220a712a8f098fa127740e3d72971
BLAKE2b-256 checksum
How to use checksums
a3a8248c459b49811f71192bf8b36ce696bcd7db91c3726ed27284c71f5e41c9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 24, 2026.

Transparency log

Release files / varidock-0.1.4.0-py3-none-any.whl

Download URL varidock-0.1.4.0-py3-none-any.whl
Size 72.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
46da451cdc7d43325be3dd37f7d9b6f0fe76db6c8e8d0ddc7ceb1104b07042ac
BLAKE2b-256 checksum
How to use checksums
485290c9493afbe211ab4088e7b89d0a8086c998b726933839402475e8092015
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 24, 2026.

Transparency log

Security for varidock 0.1.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for varidock-0.1.4.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Feb 24, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page