Skip to main content

Toolkit to parse and process small molecules in wwPDB

Project description

CodeFactor PYPi GitHub ccdutils documentation ccdutils tests PyPI Downloads

pdbeccdutils

An RDKit-based python toolkit for parsing and processing small molecule definitions in wwPDB Chemical Component Dictionary and wwPDB The Biologically Interesting Molecule Reference Dictionary.pdbeccdutils provides streamlined access to all metadata of small molecules in the PDB and offers a set of convenient methods to compute various properties of small molecules using RDKIt such as 2D depictions, 3D conformers, physicochemical properties, matching common fragments and scaffolds, mapping to small-molecule databases using UniChem.

Features

  • gemmi CCD read/write.
  • Generation of 2D depictions (No image available generated if the flattening cannot be done) along with the quality check.
  • Generation of 3D conformations.
  • Fragment library search (PDBe hand-curated library, ENAMINE, DSI).
  • Chemical scaffolds (Murcko scaffold, Murcko general, BRICS).
  • Lightweight implementation of parity method by Jon Tyzack.
  • RDKit molecular properties per component.
  • UniChem mapping.
  • Generating complete representation of multiple Covalently Linked Components (CLC)

Dependencies

  • RDKit for small molecule representation. Presently tested with 2023.9.6
  • GEMMI for parsing mmCIF files.
  • scipy for depiction quality check.
  • numpy for molecular scaling.
  • networkx for bound-molecules.

Installation

create a virtual environment and install using pip

pip install pdbeccdutils

Contribution

We encourage you to contribute to this project. The package uses poetry for packaging and dependency management. You can develop locally using:

git clone https://github.com/PDBeurope/ccdutils.git
cd ccdutils
pip install poetry
poetry install --with tests,docs
pre-commit install

The pre-commit hook will run linting, formatting and update poetry.lock. The poetry.lock file will lock all dependencies and ensure that they match pyproject.toml versions.

To add a new dependency

# Latest resolvable version
poetry add <package>

# Optionally fix a version
poetry add <package>@<version>

To change a version of a dependency, either edit pyproject.toml and run:

poetry sync --with dev

or

poetry add <package>@<version>

Documentation

The documentation is generated using sphinx in sphinx_rtd_theme and hosted on GitHub Pages. To generate the documentation locally,

cd doc
poetry run sphinx-build -b html . _build/html

# See the documentation at http://localhost:8080.
python -m http.server 8080 -d _build/html

Project details


Download files

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

Source Distribution

pdbeccdutils-1.0.0.tar.gz (1.0 MB view details)

Uploaded Source

Built Distribution

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

pdbeccdutils-1.0.0-py3-none-any.whl (1.1 MB view details)

Uploaded Python 3

File details

Details for the file pdbeccdutils-1.0.0.tar.gz.

File metadata

  • Download URL: pdbeccdutils-1.0.0.tar.gz
  • Upload date:
  • Size: 1.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pdbeccdutils-1.0.0.tar.gz
Algorithm Hash digest
SHA256 d32ba6772a4224e5e2727afc25fc8d08590a64b853ffe8351412fff465ab8fd9
MD5 46f4dc2e657e6aee216bce0c8d5a4f0a
BLAKE2b-256 3e2b4066fa18e379039472d0ab65e8752d342a860d67e86b9b663328306b53ba

See more details on using hashes here.

File details

Details for the file pdbeccdutils-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: pdbeccdutils-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 1.1 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pdbeccdutils-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dcc6bcb363f9cb0f9be15c465abf2a56809926d8275ccdc50d4f8438ab776c7b
MD5 6a25d30b57ba5481435be19da3299e4b
BLAKE2b-256 5d9477773171d66dac29e59a22df87505e05faba30a2c4a1faceff5262228a10

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