Home

Awesome

<h1 align="center"> <div> <a href="https://github.com/SSAGESLabs/PySAGES" target="_blank"> <img src="docs/assets/pysages-bottom.svg" alt="PySAGES" height="200"> </a> </div> <br> <p align="center"> <a href="https://pysages.readthedocs.io" target="_blank"> <img src="https://img.shields.io/badge/docs-latest-blue.svg" alt="Documentation"> </a> &nbsp; <a href="https://github.com/SSAGESLabs/PySAGES/actions/workflows/ci.yml" target="_blank"> <img src="https://github.com/SSAGESLabs/PySAGES/actions/workflows/ci.yml/badge.svg?branch=main" alt="GitHub Actions"> </a> &nbsp; <a href="https://github.com/SSAGESLabs/PySAGES/actions/workflows/docker-ci.yml" target="_blank"> <img src="https://github.com/SSAGESLabs/PySAGES/actions/workflows/docker-ci.yml/badge.svg?branch=main" alt="GitHub Actions"> </a> &nbsp; <a href="https://github.com/SSAGESLabs/PySAGES/actions/workflows/trunk.yml" target="_blank"> <img src="https://github.com/SSAGESLabs/PySAGES/actions/workflows/trunk.yml/badge.svg?branch=main" alt="Trunk"> </a> &nbsp; <a href="https://doi.org/10.1038/s41524-023-01189-z" target="_blank"> <img src="https://img.shields.io/badge/DOI-10.1038%2Fs41524--023--01189--z-blue" alt="Cite PySAGES"> </a> </p> </h1>

PySAGES (Python Suite for Advanced General Ensemble Simulations) is a Python implementation of SSAGES with support for GPUs.

Installation

PySAGES currently supports HOOMD-blue, LAMMPS, ASE, and OpenMM. We plan to add support for other engines that have a python API, including those supported by the original SSAGES.

Before installing PySAGES, you need to install one of the following plugins, depending on your molecular dynamics engine of choice:

You also need to install JAX, a library for high-performance numerical computing. Follow their installation guide and make sure you have it installed before using PySAGES. Depending on your local setup, you may need to install the CPU version or the CUDA compatible version.

For GPU support, JAX and any backend (HOOMD-blue, LAMMPS, or OpenMM) need to be built or installed with CUDA support.

You can follow our installation tutorial on Google Colab to see how PySAGES, HOOMD-blue, and OpenMM can be built and installed in such an environment. Colab Badge

Usage

PySAGES provides a straightforward interface to set up collective variables and enhanced sampling methods in your MD simulations. See the documentation to learn more.

We provide ready-to-go examples for common methods. Check out the examples subfolder to look at different script and notebook examples. These include pre-set simulations and a tutorial on how to install PySAGES along with the supported MD engines.

Development

We believe in good software engineering and collaboration. We welcome all contributions. To ease collaboration, we use trunk as a development tool free for open-source software. This includes version-checked linters that can be run automatically. We ship a launcher for trunk with this repo: ./trunk, no installation required. For details about how to use ./trunk fmt to format existing code into this style and ./trunk check to verify a consistent code style, check out the trunk documentation page.

<!-- References -->