Skip to main content

PySTARC - Python Simulation Toolkit for Association Rate Constants

Project description

CI codecov License: MIT Python 3.11+ CUDA

PySTARC - Python Simulation Toolkit for Association Rate Constants

PySTARC computes bimolecular association rate constants (kon) via GPU-accelerated rigid-body Brownian dynamics.

Features

  • GPU batch simulation - All trajectories run simultaneously on GPU via CuPy.
  • Physics - Ermak-McCammon integrator, RPY hydrodynamics, Born desolvation, APBS electrostatics, adaptive time step, and Yukawa monopole fallback.
  • Brownian bridge - Catches mid-step reaction crossings.
  • Multi-GPU workflow - Split simulations across N GPUs with automatic grid generation, symlinked DX files, and pooled result combining.
  • Automated system setup - From a PDB and topology file to a ready-to-run simulation in one command via setup.py.
  • Convergence analysis - Wilson score CI, relative SE, and trajectory-count estimates for target precision.
  • Output files - 14 structured files, including trajectories, encounters, radial density, angular maps, and transition matrices.
  • Checkpointing - Automatic save/resume for long production runs.
  • Live progress - kon and Prxn printed at configurable intervals.
  • Temperature scaling - Correct thermodynamics at any temperature.

Installation

GPU (Linux/HPC):

git clone https://github.com/anandojha/PySTARC.git
cd PySTARC
bash install_PySTARC.sh

On Mac/CPU:

git clone https://github.com/anandojha/PySTARC.git
cd PySTARC
conda create -n PySTARC python=3.11 -y
conda activate PySTARC
conda install -c conda-forge ambertools apbs -y
pip install matplotlib pdb2pqr
pip install dist/pystarc-1.1.0-py3-none-any.whl --force-reinstall

Testing

python -m pytest tests/ -v          

Quick start

conda activate PySTARC
module load cuda                # HPC only, skip on local machines
cd examples/two_charged_spheres
chmod +x run.sh
bash run.sh

Examples

See examples/README.md for complete instructions.

License

MIT

Citation

When using PySTARC, please cite:

Ojha, A. A. et al. PySTARC: GPU-accelerated Brownian dynamics for bimolecular association rate constants (2026).

Requirements

  • Python 3.11+
  • AmberTools (tleap, cpptraj, ambpdb)
  • APBS
  • CuPy (GPU) or NumPy (CPU fallback)
  • NVIDIA GPU with CUDA 12+ (recommended)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pystarc-1.1.0-py3-none-any.whl (172.8 kB view details)

Uploaded Python 3

File details

Details for the file pystarc-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: pystarc-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 172.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for pystarc-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3c6650fbd356f9c95b462130541c220f5e176f42063ec1d1e17b754b4a39d626
MD5 bb40e363f707e04cfee6ab4ab82ce01c
BLAKE2b-256 6aa192cbecf23d42ab1c6056291dd005baa0985a9ea145ba9b79f07b3ddd704b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page