For full access to the source code and documentation, visit the GitHub repository: https://github.com/continuous-symmetry-measure/csm
The CSM (Continuous Symmetry Measure) software is a computational chemistry tool for analyzing the symmetry and chirality of molecular structures based on defined point groups (e.g., C2, C3, Td). This guide explains how to use CSM without traditional software installation, by utilizing a tool called Docker.
Docker is a platform that allows software to run inside isolated “containers”, self-contained environments that include all the dependencies and files the software needs. Instead of installing CSM manually, you can use a prebuilt Docker container that comes ready to run. Advantages:
Using Docker involves three key concepts:
docker --version
docker info
docker images
Test basic container execution:
docker run --rm teamcsm/csm:v1.3.7b1 csm --help
If you’re working in an environment with a network proxy (e.g., a university or institutional firewall), Docker may need to be configured to access external resources. On Linux/macOS, create or edit the Docker systemd configuration:
sudo mkdir -p /etc/systemd/system/docker.service.d
sudo nano /etc/systemd/system/docker.service.d/http-proxy.conf
Then add:
[Service]
Environment="HTTP_PROXY=http://proxy.example.com:8080/"
Environment="HTTPS_PROXY=http://proxy.example.com:8080/"
After saving, reload and restart Docker:
sudo systemctl daemon-reexec
sudo systemctl restart docker
On Windows or macOS with Docker Desktop, go to:
Settings > Resources > Proxies and set your proxy configuration there.
Ensure that you replace proxy.example.com:8080
with your actual proxy address.
Run the following command in your terminal:
docker pull teamcsm/csm:v1.3.7b1
This will download version v1.3.7b1 of the CSM software to your machine. To verify the image was successfully downloaded, run:
docker images | grep teamcsm/csm
You should see a line indicating that the image teamcsm/csm with the v1.3.7b1 tag is available locally.
To analyze a specific molecule (for example, in the C2 point group), use this command:
docker run -it teamcsm/csm:v1.3.7b1 csm exact C2 --input /data/molecule.sdf --output /data/results
Explanation:
exact
— Use the exact symmetry analysis mode.C2
— The target point group.--input
— Input molecule file (formats: SDF, XYZ, MOL, or PDB).--output
— Output directory where results will be saved.To allow the software to read/write files from your computer, it’s recommended to map a local folder into the container. Example:
docker run -it -v $(pwd):/data teamcsm/csm:v1.3.7b1 csm exact C2 --input /data/molecule.sdf --output /data/results
This command maps your current directory to /data inside the container.
exact
- Accurate mode for small/medium-sized molecules.approx
- Approximate mode for large molecules or homomeric proteins.trivial
- Basic unit-permutation check.
To explore more options, run inside the container:
csm --help
For academic use, please cite the relevant CSM publications as listed in the GitHub README.