Skip to main content

# 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.

Metadata

Release files for csm 1.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for csm 1.3.1
File Size Uploaded Provenance
csm-1.3.1.tar.gz 969.8 kB Without provenance Details

Built distributions (wheels)

Table of built distributions (wheels) for csm 1.3.1
File
csm-1.3.1-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details
csm-1.3.1-cp310-cp310-manylinux_2_24_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.24+ x86-64 Details
csm-1.3.1-cp39-cp39-win_amd64.whl CPython 3.9 CPython 3.9 Windows x86-64 Details
csm-1.3.1-cp39-cp39-manylinux_2_24_x86_64.whl CPython 3.9 CPython 3.9 Linux glibc 2.24+ x86-64 Details
csm-1.3.1-cp38-cp38-win_amd64.whl CPython 3.8 CPython 3.8 Windows x86-64 Details
csm-1.3.1-cp38-cp38-manylinux_2_24_x86_64.whl CPython 3.8 CPython 3.8 Linux glibc 2.24+ x86-64 Details
csm-1.3.1-cp37-cp37m-win_amd64.whl CPython 3.7 CPython 3.7 pymalloc Windows x86-64 Details
csm-1.3.1-cp37-cp37m-manylinux_2_24_x86_64.whl CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.24+ x86-64 Details

Total release size: 16.2 MB

Release files / csm-1.3.1.tar.gz

Download URL csm-1.3.1.tar.gz
Size 969.8 kB
Tags Source
SHA-256 checksum
How to use checksums
d6cee886838e374517ca6bbce6c292c1533f3a07fdb1de5c79df91e9ab8fa04d
BLAKE2b-256 checksum
How to use checksums
aea7752c8c2d1754015dbed16f52ebba72cac3cf811b059056d40fdf2553d915
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.4

Release files / csm-1.3.1-cp310-cp310-win_amd64.whl

Download URL csm-1.3.1-cp310-cp310-win_amd64.whl
Size 672.8 kB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
2afc28032ce2ecae2623e182bc873cf8a43e593f7311a0d444dbaccdf9b3ae4a
BLAKE2b-256 checksum
How to use checksums
15c7954b63a5959eb53d7ec9116dfb98d3a1ad8d7178883afcb8165cd8538b38
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.4

Release files / csm-1.3.1-cp310-cp310-manylinux_2_24_x86_64.whl

Download URL csm-1.3.1-cp310-cp310-manylinux_2_24_x86_64.whl
Size 3.1 MB
Tags CPython 3.10 Linux glibc 2.24+ x86-64
SHA-256 checksum
How to use checksums
bb56ea2e565e736028dfac91d4df58b6e58e7935489c939ca72041bfb17ac3e7
BLAKE2b-256 checksum
How to use checksums
03a89771da8cffd69858d7f730cb0aac17e00bcad0b4561770cbb4727a624bb5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.4

Release files / csm-1.3.1-cp39-cp39-win_amd64.whl

Download URL csm-1.3.1-cp39-cp39-win_amd64.whl
Size 680.7 kB
Tags CPython 3.9 Windows x86-64
SHA-256 checksum
How to use checksums
bfce76cc332fcb8739abd6f84b5d6350cbe056aab59d590d4eae57e11c4e6853
BLAKE2b-256 checksum
How to use checksums
0de2bba23cd93829f90314509299e07a378c21f09a1a5a1385f3fa203032d6fe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.4

Release files / csm-1.3.1-cp39-cp39-manylinux_2_24_x86_64.whl

Download URL csm-1.3.1-cp39-cp39-manylinux_2_24_x86_64.whl
Size 3.1 MB
Tags CPython 3.9 Linux glibc 2.24+ x86-64
SHA-256 checksum
How to use checksums
29e95429e7fcaab30bab633abd41c8b6a0a329262af3bb7715d4a3117e887627
BLAKE2b-256 checksum
How to use checksums
4749bd2812a0af0f2663c3b3d5bed44af1cbfe4658e5c4c94cad26b646f40f82
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.4

Release files / csm-1.3.1-cp38-cp38-win_amd64.whl

Download URL csm-1.3.1-cp38-cp38-win_amd64.whl
Size 681.3 kB
Tags CPython 3.8 Windows x86-64
SHA-256 checksum
How to use checksums
a23b7a3fa4f9e4cf3293539f2e0ba595e19ddbd685028161aab999b44702f71e
BLAKE2b-256 checksum
How to use checksums
89cb90e663f947c0bad8c467a7ca6b0edb34ce0152ab0a62efd5e54149f8b030
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.4

Release files / csm-1.3.1-cp38-cp38-manylinux_2_24_x86_64.whl

Download URL csm-1.3.1-cp38-cp38-manylinux_2_24_x86_64.whl
Size 3.2 MB
Tags CPython 3.8 Linux glibc 2.24+ x86-64
SHA-256 checksum
How to use checksums
62fe4864fc46adcba8d3bfe8e57bcfbefa3ed54394eab0cc4b7f5a63a8d65c04
BLAKE2b-256 checksum
How to use checksums
f1554baf6f25a7e8c3735911720ac7f552c220ee2878d91a9b3df7217aa30e8c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.4

Release files / csm-1.3.1-cp37-cp37m-win_amd64.whl

Download URL csm-1.3.1-cp37-cp37m-win_amd64.whl
Size 672.6 kB
Tags CPython 3.7 CPython 3.7 pymalloc Windows x86-64
SHA-256 checksum
How to use checksums
f1805a9c56c3abe9f30f2d7b81cd9fbb76c2b94a5e8b151b0c78c4248cb2acbf
BLAKE2b-256 checksum
How to use checksums
3f1e558945dfd37f82464229fdb374b6dcfadb27918407488d3a17f44fa2a5d1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.4

Release files / csm-1.3.1-cp37-cp37m-manylinux_2_24_x86_64.whl

Download URL csm-1.3.1-cp37-cp37m-manylinux_2_24_x86_64.whl
Size 3.1 MB
Tags CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.24+ x86-64
SHA-256 checksum
How to use checksums
834e4668b319e2ea7913bc1e6f24b4e2ce78857087c4213a0001075c50902a85
BLAKE2b-256 checksum
How to use checksums
2ea56bf627750259434a0b78e44c57486d42348562afa59cd1cc262a80f52daa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.4

Security for csm 1.3.1

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

Release history Release notifications | RSS feed

This release

1.3.1 This release

9 release files No provenance

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