Skip to main content

Python RMSD tool with symmetry correction.

Project description

sPyRMSD

Travis Build Status Build status codecov Language grade: Python Documentation Status

DOI Docs PyPI License

Python-first tool for symmetry-corrected RMSD calculations.

Installation

PyPI

pip install spyrmsd

This install spyrmsd as a library. In order to use the standalone RMSD calculation tool, you will need to install Open Babel or RDKit.

GitHub

git clone https://github.com/RMeli/spyrmsd.git
cd spyrmsd
pip install .

conda

Usage

Standalone

python -m spyrmsd.spyrmsd -h
usage: spyrmsd.py [-h] [-m] [-c] [--hydrogens] [-n]
                  reference molecules [molecules ...]

Python RMSD tool.

positional arguments:
  reference       Reference file
  molecules       Input file(s)

optional arguments:
  -h, --help      show this help message and exit
  -m, --minimize  Minimize (fit)
  -c, --center    Center molecules at origin
  --hydrogens     Keep hydrogen atoms
  -n, --nosymm    No graph isomorphism

Module

from spyrmsd import rmsd

RMSD

The function rmsd.rmsd computes RMSD without symmetry correction. The atoms are expected to be in the same order for both molecule being compared (no atom matching is performed).

Symmetric RMSD

The function rmsd.rmsd_isomorphic computes symmetry-corrected RMSD, using molecular graph isomorphisms. Symmetry correction requires molecular adjacency matrices but needs not the atoms to be in the same order.

Contributions

List of Contributors

Name GitHub
Rocco Meli @RMeli

Tools

Formatting

The code is automatically formatted using black:

black .

Style

Code style is enforced using Flake 8

flake8

Static Checks

Static checks are performed using mypy

mypy

Deployment

PyPI

Build wheel and sdist:

flit build

Upload wheel and sdist on PyPI:

flit publish

References

Method Reference DOI
QCP D. L. Theobald, Acta Crys. A61, 478-480 (2005) doi
Hungarian W. J. Allen and R. C. Rizzo, J. Chem. Inf. Model. 54, 518-529 (2014) doi
Connectivity E. C. Meng and R. A. Lewis, J. Comp. Chem. 12, 891-898 (1991) doi

Copyright

Copyright (c) 2019-2020, Rocco Meli.

Acknowledgements

Project based on the Computational Molecular Science Python Cookiecutter version 1.1.

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

spyrmsd-0.2.1.tar.gz (91.4 kB view details)

Uploaded Source

Built Distribution

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

spyrmsd-0.2.1-py3-none-any.whl (23.2 kB view details)

Uploaded Python 3

File details

Details for the file spyrmsd-0.2.1.tar.gz.

File metadata

  • Download URL: spyrmsd-0.2.1.tar.gz
  • Upload date:
  • Size: 91.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.22.0

File hashes

Hashes for spyrmsd-0.2.1.tar.gz
Algorithm Hash digest
SHA256 cee96f17e4ee7d9be303c204b3ba039551537d09716a499f81c12f1280f4a21c
MD5 87b9eb2f6bbbf4bc3770bb6fd42bd292
BLAKE2b-256 9db2eb4c39f11a2bdd70d0c18d6f03b64c9772ddb054ef5f9bb6615cd77c2e76

See more details on using hashes here.

File details

Details for the file spyrmsd-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: spyrmsd-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 23.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.22.0

File hashes

Hashes for spyrmsd-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e8d639e6a775bf09d0b8c0476777a11473758978a859eab5cbb66a59d7ab4fa7
MD5 7efa85f3e5c81ccb72910284b1f9c79d
BLAKE2b-256 1ed2f1a46a36c5625c2a6364227bf1d26d5b4b695dd4b6796876ab2188e8d892

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