Skip to main content

AceDRG

PyPI Python Wheel Platforms Downloads Tests DOI Last commit

AceDRG generates stereochemical descriptions (restraint dictionaries) for ligands and links, for use in macromolecular refinement.

Installation

pip install acedrg

Prebuilt wheels are available for Linux (x86_64), macOS (Apple silicon) and Windows (x64); each wheel bundles the C++ engine (libmol) and the AceDRG stereochemistry tables, so no separate CCP4 installation is required at run time.

Optional extras:

pip install "acedrg[tautomer]"  # tautomer handling via molvs

Usage

acedrg -i "CCO" -o ethanol          # from a SMILES string (or a file of one)
acedrg -m ligand.mol -o my_ligand   # from an MDL mol file
acedrg -s ligand.sdf -o my_ligand   # from an SDF file
acedrg -c ligand.cif -o my_ligand   # from an mmCIF file
acedrg -L link_instructions.txt -o my_link   # covalent link description
acedrg --help                       # full option list

The bundled engine and tables are located automatically under the environment prefix (<prefix>/libexec/libmol, <prefix>/share/acedrg/tables). If a CCP4 environment is active it is used as a fallback.

Building from source

On platforms without a wheel, pip builds from the sdist; you can also install from a clone:

git clone https://github.com/MonomerLibrary/AceDRG
cd AceDRG
pip install .

Requirements:

  • A C++17 compiler and CMake (>= 3.15)
  • Python >= 3.8
  • An internet connection — the stereochemistry tables are fetched during the build from the aceDRG-tables repository

Python dependencies (rdkit, gemmi, networkx, numpy, future, pdbecif, servalcat) are installed automatically.

Tests

pip install ".[tautomer]" pytest
pytest -v python-tests --run-extra

Citation

Long F, Nicholls RA, Emsley P, Gražulis S, Merkys A, Vaitkus A, Murshudov GN (2017). AceDRG: a stereochemical description generator for ligands. Acta Cryst. D 73, 112–122. doi: 10.1107/S2059798317000067

Contributions

AceDRG

Fei Long, Robert A. Nicholls, Paul Emsley, Saulius Gražulis, Andrius Merkys, Antanas Vaitkus, Garib N. Murshudov

Pip installation of AceDRG

Jordan Dialpuri, Lucrezia Catapano, Paul Emsley

Contact

Bug reports and feature requests are best raised as GitHub issues.

Metadata

Release files for acedrg 0.335.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 acedrg 0.335.0
File Size Uploaded Provenance Actions
acedrg-0.335.0.tar.gz 81.2 MB With provenance Details for acedrg-0.335.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for acedrg 0.335.0
File Interpreter ABI Platform Actions
acedrg-0.335.0-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for acedrg-0.335.0-py3-none-win_amd64.whl
acedrg-0.335.0-py3-none-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl Python 3 none Linux glibc 2.24+ x86-64, Linux glibc 2.28+ x86-64 Details for acedrg-0.335.0-py3-none-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
acedrg-0.335.0-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for acedrg-0.335.0-py3-none-macosx_11_0_arm64.whl

Total release size: 323.0 MB

Release files / acedrg-0.335.0.tar.gz

Download URL acedrg-0.335.0.tar.gz
Size 81.2 MB
Tags Source
SHA-256 checksum
How to use checksums
6dbf35003f26c970d685018e950cc9d43d5fe85c3d839ef27a1b706bc885192f
BLAKE2b-256 checksum
How to use checksums
54e1f68a87d7ba48e394fa0303c2f48aaaebd5b2b4bd6135a5085f28af9b3e51
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 11, 2026.

Transparency log

Release files / acedrg-0.335.0-py3-none-win_amd64.whl

Download URL acedrg-0.335.0-py3-none-win_amd64.whl
Size 80.2 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
43a467809a6e74d96821d33eed4488961726f31956441e8498c71da101984556
BLAKE2b-256 checksum
How to use checksums
b9c71d3c9fdda2a75edb932d2b209361deb42deff97c5bd3aba7416e40a8914b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 11, 2026.

Transparency log

Release files / acedrg-0.335.0-py3-none-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl

Download URL acedrg-0.335.0-py3-none-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Size 80.8 MB
Tags Linux glibc 2.24+ x86-64 Linux glibc 2.28+ x86-64 Python 3
SHA-256 checksum
How to use checksums
84fbc6519ffe4d0a0bc3adb68bb2740a4070fd47948bed4a22bc2693e0412991
BLAKE2b-256 checksum
How to use checksums
171833e7c4429a594a226b2d73151a3f1ed0503d9e39ebd3c00c0931ef6631e9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 11, 2026.

Transparency log

Release files / acedrg-0.335.0-py3-none-macosx_11_0_arm64.whl

Download URL acedrg-0.335.0-py3-none-macosx_11_0_arm64.whl
Size 80.9 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
5adb285fbf16dc6012dea3c587ab0c17946f2227d864dc778094fbc4788ec042
BLAKE2b-256 checksum
How to use checksums
aa0555b9d568d51c58731e68c794b791641f8c23addced2326bd2ec1ba114313
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 11, 2026.

Transparency log

Security for acedrg 0.335.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

All 4 files in this release have been uploaded with provenance metadata.

Select from 4 files

Attestation for acedrg-0.335.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 Nov 11, 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