Skip to main content

Toolkit to deal with wwPDB chemical components definitions for small molecules.

Project description

CodeFactor PYPi GitHub ccdutils documentation ccdutils tests

pdbeccdutils

  • A set of python tools to deal with PDB chemical components definitions for small molecules, taken from the wwPDB Chemical Component Dictionary

  • The tools use:

  • Please note that the project is under active development.

Installation instructions

  • pdbeccdutils requires RDKit to be installed. The official RDKit documentation has installation instructions for a variety of platforms. For linux/mac OS this is most easily done using the anaconda python with commands similar to:

    conda create -c conda-forge -n rdkit-env rdkit python=3.7
    conda activate rdkit-env
    
  • Once you have installed RDKit, as described above then install pdbeccdutils using pip:

    pip install pdbeccdutils
    

Features

  • mmCIF 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.
  • Chemical scaffolds (Murcko scaffold, Murcko general, BRICS).
  • Lightweight implementation of parity method by Jon Tyczak.
  • RDKit molecular properties per component.
  • UniChem mapping.

TODO list

  • Add more unit/regression tests to get higher code coverage.
  • Further improvements of the documentation.

Notes

  • Protein-ligand interaction has been extracted here. This was because of the fact that at the end of the day it was not using any of the pdbeccdutils functionality and introduced additional dependencies on the package.

Documentation

The documentation depends on the following packages:

  • sphinx
  • sphinx_rtd_theme
  • recommonmark
  • sphinx-autodoc-typehints

Note that sphinx needs to be a part of the virtual environment, if you want to generate documentation by yourself. Otherwise it cannot pick rdkit module. sphinx_rtd_theme is a theme providing nice ReadtheDocs mobile friendly style.

  • Generate .rst files to be included as a part of the documentation. Inside the directory pdbeccdutils/doc run the following commands to generate documentation.
  • Alternatively, use the recommonmark package along with the proper configuration to get the Markdown working.

Use the following to generate initial markup files to be used by sphinx. This needs to be used when adding another sub-packages.

sphinx-apidoc -f -o /path/to/output/dir ../pdbeccdutils/

Use this to re-generate the documentation from the doc/ directory:

make 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-0.5.9.macosx-10.9-x86_64.tar.gz (155.3 kB view details)

Uploaded Source

Built Distribution

pdbeccdutils-0.5.9-py3-none-any.whl (175.3 kB view details)

Uploaded Python 3

File details

Details for the file pdbeccdutils-0.5.9.macosx-10.9-x86_64.tar.gz.

File metadata

  • Download URL: pdbeccdutils-0.5.9.macosx-10.9-x86_64.tar.gz
  • Upload date:
  • Size: 155.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/49.6.0.post20210108 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.10

File hashes

Hashes for pdbeccdutils-0.5.9.macosx-10.9-x86_64.tar.gz
Algorithm Hash digest
SHA256 9d133969ba8936ba3f26798f073ea9c06a302c0cc387ba0702b50b2a87c1110b
MD5 102c9a1bf840aa2b720fb3daf36dfbac
BLAKE2b-256 9bf31cb8eecc84e504d7a6c1353f9309fe7acbe7b04166d4f2736a4466eec4f9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pdbeccdutils-0.5.9-py3-none-any.whl
  • Upload date:
  • Size: 175.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/49.6.0.post20210108 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.10

File hashes

Hashes for pdbeccdutils-0.5.9-py3-none-any.whl
Algorithm Hash digest
SHA256 4371f5464ab054be5c99fdf769d2cfe4de21da32930f157566a553f1020ac74a
MD5 aba716b4b221034940f1020badad16f6
BLAKE2b-256 50dda74e7dfbd69b37aab02e80fe138bfe5dec69f01d87fe97686d25f9b2e32f

See more details on using hashes here.

Supported by

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