Skip to main content

The Continuous Symmetry Measure

Project description

# CSM #

# About The CSM program calculates continuous symmetry and chirality measures of molecules with respect to a given point group G. Molecular coordinates can be provided in either xyz, sdf, mol or pdb format. An online calculator is available at: [https://csm.ouproj.org.il](https://csm.ouproj.org.il).

## Features

  • The codes cover the following point groups: Cs, Ci, Cn (n>=2), Sn (n= 2,4,6,…).

  • Input structures can be in the form of a single molecule, concatenated file with multiple structures and a directory of molecules.

  • When connectivity data is missing, OpenBabel is used to deduce it.

### Available commands * comfile - Provide a command file for running calculations * read - Read a molecule file into a json in CSM format * write - Output the results of the calculation to a file. Must be used with piped input * exact - Perform an exact CSM calculation for small-to-medium size molecules in xyz, mols, sdf and pdb file format. * approx - Approximate the CSM value. Relevant for protein homomers in pdb file format. Partially tested for large molecules as well. * trivial - Use the unit permutation to calculate the CSM for molecules and protein homomers.

# Citations

Please cite the CSM using the following:

### Exact algorithm:

> Alon G. and Tuvi-Arad I., “Improved algorithms for symmetry analysis: Structure preserving permutations”, J. Math. Chem., 56(1), 193-212 (2018).

### Approx algorithm:

> Tuvi-Arad I. and Alon G., “Improved Algorithms for Quantifying the Near Symmetry of Proteins: Complete Side Chains Analysis”, Journal of Cheminformatics, 11(1): 39 (2019).

> Dryzun C., Zait A. and Avnir D., “Quantitative Symmetry and Chirality - A Fast Computational Algorithm for Large Structures: Proteins, Macromolecules, Nanotubes, and Unit Cells”, J. Comput. Chem., 32, 2526-2538 (2011).

### Original Code by Avnir and coworkers:

> Pinsky M., Dryzun C., Casanova D., Alemany P., Avnir D., “Analytical Methods for Calculating Continuous Symmetry Measures and the Chirality Measure”, Journal of Computational Chemistry 29(16): 2712-2721 (2008).

> Zabrodsky, H.; Avnir, D. Continuous symmetry measures .4. Chirality. J. Am. Chem. Soc. 117: 462-473 (1995).

> Zabrodsky H., Peleg S., Avnir D., “Continuous symmetry measures”, Journal of the American Chemical Society 114(20): 7843-7851 (1992).

## Usage

Input data requires a molecular geometry file and a choice of a point group After installation, the program can be called from the command line. For example, to calculate the measure with respect to the C2 point group one should type:

csm exact c2 – input input_mol.sdf –output output_dir –keep-structure

For a list of all available options type csm –help

In addition to the possibility of using CSM from the command line, CSM can be accessed programmatically through its API. Details are in the file API.md (including examples).

## Installation

CSM can be installed on Windows and Linux machines.

### Build Instructions: Windows

Install [OpenBabel 3.1.1](https://github.com/openbabel/openbabel/releases/tag/openbabel-3-1-1) Test open babel with the command: obabel -H , if it doesn’t work, try to restart your computer.

From within the python folder, run: pip install -r requirements.txt

Run the build cython commands: pythoncsmCPP_wrapper> python .setup.py build pythoncython-munkres> .rebuild.bat

<!– ### Build Instructions: Linux –>

<!– Because installing openbabel correctly is a delicate and bug-prone process, an alternative method of installing CSM is available using Conda, and is described in the file conda_install_instructions.txt –>

## Credits

Science/Math:

Prof. Inbal Tuvi-Arad, Department of Natural Sciences, The Open University of Israel

Dr. Gil Alon, Department of Mathematics and Computer Science, The Open University of Israel

Prof. David Avnir, Institute of Chemistry, The Hebrew University of Jerusalem

Programming:

The Research Software Company (researchsoftware.co.il)

Testing, scripts and additional technical support:

Sagiv Barhoom,The Open University of Israel

Intensive testing:

Yaffa Shalit, The Open University of Israel

The code for the hungarian algorithm is copyright (c) 2012, Jacob Frelinger

## Contact

For questions about the code, feature requests, and bug reports, feel free to use the CoSyM website users group at: https://groups.google.com/g/csm-openu.

## License ## This project is provided under the 3-clause BSD license :

Copyright (C) 2018 , Prof. Inbal Tuvi-Arad (Department of Natural Sciences, The Open University of Israel), Dr. Gil Alon (Department of Mathematics and Computer Science, The Open University of Israel), Prof. David Avnir (Institute of Chemistry, The Hebrew University of Jerusalem). All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

  3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

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

csm-1.3.1.tar.gz (969.8 kB view details)

Uploaded Source

Built Distributions

csm-1.3.1-cp310-cp310-win_amd64.whl (672.8 kB view details)

Uploaded CPython 3.10 Windows x86-64

csm-1.3.1-cp310-cp310-manylinux_2_24_x86_64.whl (3.1 MB view details)

Uploaded CPython 3.10 manylinux: glibc 2.24+ x86-64

csm-1.3.1-cp39-cp39-win_amd64.whl (680.7 kB view details)

Uploaded CPython 3.9 Windows x86-64

csm-1.3.1-cp39-cp39-manylinux_2_24_x86_64.whl (3.1 MB view details)

Uploaded CPython 3.9 manylinux: glibc 2.24+ x86-64

csm-1.3.1-cp38-cp38-win_amd64.whl (681.3 kB view details)

Uploaded CPython 3.8 Windows x86-64

csm-1.3.1-cp38-cp38-manylinux_2_24_x86_64.whl (3.2 MB view details)

Uploaded CPython 3.8 manylinux: glibc 2.24+ x86-64

csm-1.3.1-cp37-cp37m-win_amd64.whl (672.6 kB view details)

Uploaded CPython 3.7m Windows x86-64

csm-1.3.1-cp37-cp37m-manylinux_2_24_x86_64.whl (3.1 MB view details)

Uploaded CPython 3.7m manylinux: glibc 2.24+ x86-64

File details

Details for the file csm-1.3.1.tar.gz.

File metadata

  • Download URL: csm-1.3.1.tar.gz
  • Upload date:
  • Size: 969.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.4

File hashes

Hashes for csm-1.3.1.tar.gz
Algorithm Hash digest
SHA256 d6cee886838e374517ca6bbce6c292c1533f3a07fdb1de5c79df91e9ab8fa04d
MD5 c5e21facdb890056c8887b2075013d75
BLAKE2b-256 aea7752c8c2d1754015dbed16f52ebba72cac3cf811b059056d40fdf2553d915

See more details on using hashes here.

File details

Details for the file csm-1.3.1-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: csm-1.3.1-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 672.8 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.4

File hashes

Hashes for csm-1.3.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 2afc28032ce2ecae2623e182bc873cf8a43e593f7311a0d444dbaccdf9b3ae4a
MD5 02cd023f1a71a0373dcbaadf073ded96
BLAKE2b-256 15c7954b63a5959eb53d7ec9116dfb98d3a1ad8d7178883afcb8165cd8538b38

See more details on using hashes here.

File details

Details for the file csm-1.3.1-cp310-cp310-manylinux_2_24_x86_64.whl.

File metadata

File hashes

Hashes for csm-1.3.1-cp310-cp310-manylinux_2_24_x86_64.whl
Algorithm Hash digest
SHA256 bb56ea2e565e736028dfac91d4df58b6e58e7935489c939ca72041bfb17ac3e7
MD5 5a6d0357c0f794a04542b380125c9cef
BLAKE2b-256 03a89771da8cffd69858d7f730cb0aac17e00bcad0b4561770cbb4727a624bb5

See more details on using hashes here.

File details

Details for the file csm-1.3.1-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: csm-1.3.1-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 680.7 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.4

File hashes

Hashes for csm-1.3.1-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 bfce76cc332fcb8739abd6f84b5d6350cbe056aab59d590d4eae57e11c4e6853
MD5 21d6638e5f8e4ed9bee889b8fe14f57d
BLAKE2b-256 0de2bba23cd93829f90314509299e07a378c21f09a1a5a1385f3fa203032d6fe

See more details on using hashes here.

File details

Details for the file csm-1.3.1-cp39-cp39-manylinux_2_24_x86_64.whl.

File metadata

File hashes

Hashes for csm-1.3.1-cp39-cp39-manylinux_2_24_x86_64.whl
Algorithm Hash digest
SHA256 29e95429e7fcaab30bab633abd41c8b6a0a329262af3bb7715d4a3117e887627
MD5 f0d4a6b25422ab41f849ff3f589ee6bf
BLAKE2b-256 4749bd2812a0af0f2663c3b3d5bed44af1cbfe4658e5c4c94cad26b646f40f82

See more details on using hashes here.

File details

Details for the file csm-1.3.1-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: csm-1.3.1-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 681.3 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.4

File hashes

Hashes for csm-1.3.1-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 a23b7a3fa4f9e4cf3293539f2e0ba595e19ddbd685028161aab999b44702f71e
MD5 c144d34656c388124b9daa10c63d6e32
BLAKE2b-256 89cb90e663f947c0bad8c467a7ca6b0edb34ce0152ab0a62efd5e54149f8b030

See more details on using hashes here.

File details

Details for the file csm-1.3.1-cp38-cp38-manylinux_2_24_x86_64.whl.

File metadata

File hashes

Hashes for csm-1.3.1-cp38-cp38-manylinux_2_24_x86_64.whl
Algorithm Hash digest
SHA256 62fe4864fc46adcba8d3bfe8e57bcfbefa3ed54394eab0cc4b7f5a63a8d65c04
MD5 11a2048bad481eab34deef87c30a2f8d
BLAKE2b-256 f1554baf6f25a7e8c3735911720ac7f552c220ee2878d91a9b3df7217aa30e8c

See more details on using hashes here.

File details

Details for the file csm-1.3.1-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: csm-1.3.1-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 672.6 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.4

File hashes

Hashes for csm-1.3.1-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 f1805a9c56c3abe9f30f2d7b81cd9fbb76c2b94a5e8b151b0c78c4248cb2acbf
MD5 44ca2f53a675f8d7e510296e7a770993
BLAKE2b-256 3f1e558945dfd37f82464229fdb374b6dcfadb27918407488d3a17f44fa2a5d1

See more details on using hashes here.

File details

Details for the file csm-1.3.1-cp37-cp37m-manylinux_2_24_x86_64.whl.

File metadata

File hashes

Hashes for csm-1.3.1-cp37-cp37m-manylinux_2_24_x86_64.whl
Algorithm Hash digest
SHA256 834e4668b319e2ea7913bc1e6f24b4e2ce78857087c4213a0001075c50902a85
MD5 7814e63a70f866a22043bf2a87e949fa
BLAKE2b-256 2ea56bf627750259434a0b78e44c57486d42348562afa59cd1cc262a80f52daa

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