Installation

This guide covers installing PolyzyMD and its dependencies.

Prerequisites

PolyzyMD requires:

  • Python 3.10+

  • OpenMM 8.0+ (for MD simulations)

  • OpenFF Toolkit 0.14+ (for force field assignment)

  • OpenFF Interchange 0.3+ (for system building)

These packages have complex dependencies and are best installed via conda.

Installation Methods

Method 2: Existing Environment

If you already have a conda environment with OpenMM/OpenFF (e.g., polymerist-env):

conda activate polymerist-env
git clone https://github.com/joelaforet/polyzymd.git
cd polyzymd
pip install -e .

Method 3: pip Only (Advanced)

Warning

Installing OpenMM via pip can be problematic. Conda is strongly recommended.

pip install openmm openff-toolkit openff-interchange
pip install git+https://github.com/joelaforet/polyzymd.git

HPC Installation

On HPC systems, you typically need to:

  1. Load the anaconda module:

    module load anaconda
    # or: module load miniconda
    
  2. Clone to your projects directory (long-term storage):

    cd /projects/$USER
    git clone https://github.com/joelaforet/polyzymd.git
    cd polyzymd
    
  3. Install in your environment:

    conda activate polymerist-env
    pip install -e .
    
  4. Verify installation:

    polyzymd info
    

Optional Dependencies

AmberTools (for AM1-BCC charging)

PolyzyMD defaults to NAGL for partial charge assignment, which is fast and doesn’t require additional dependencies. However, if you need AM1-BCC charges via the AmberTools backend:

mamba install -c conda-forge ambertools

Then use in your configuration or code:

from polyzymd.utils.charging import get_charger

# Use AmberTools for AM1-BCC charges
charger = get_charger("am1bcc", toolkit="ambertools")
charged_mol = charger.charge_molecule(molecule)

MDAnalysis (for trajectory analysis)

For advanced trajectory analysis features:

mamba install -c conda-forge mdanalysis

Verifying Installation

After installation, verify everything is working:

# Check CLI is available
polyzymd --help

# Check version and dependencies
polyzymd info

Expected output:

PolyzyMD - Molecular Dynamics for Enzyme-Polymer Systems
Version: 0.1.0

Dependencies:
  OpenMM: 8.1.1
  OpenFF Toolkit: 0.14.4
  OpenFF Interchange: 0.3.18
  Pydantic: 2.5.0

Example configs: polyzymd/configs/examples/

Common Installation Issues

“README.md not found”

If you see this error during pip install -e .:

OSError: Readme file does not exist: README.md

Make sure you have the latest version of the repository:

git pull origin main

Missing OpenMM

If polyzymd info shows “OpenMM: NOT INSTALLED”:

conda install -c conda-forge openmm

Module Import Errors

If you get import errors when running polyzymd:

# Make sure you're in the right environment
conda activate polyzymd-env

# Reinstall in development mode
pip install -e .

Development Installation

For contributing to PolyzyMD:

# Clone the repository
git clone https://github.com/joelaforet/polyzymd.git
cd polyzymd

# Install with development dependencies
pip install -e ".[dev]"

# Install pre-commit hooks (optional)
pre-commit install

Next Steps

Once installed, continue to the Quick Start Guide guide to run your first simulation.