No project description provided
Project description
- maintainers:
- documentation:
Overview
cgexplore or cgx is a general toolkit built on stk for constructing, optimising and exploring molecular coarse-grained models.
Installation
cgexplore can be installed with pip:
pip install cgexplore
Then, update directory structure in env_set.py if using example code.
The library implements some analysis that uses Shape 2.1. Follow the instructions to download and installed at Shape
Developer Setup
To develop with cgexplore, you can clone the repo and use just and uv to setup the dev environment:
just setup
Usage
We are moving toward implementing a recipe list, which can be found in the recipe page.
To reproduce data in DOI: `10.1039/D3SC03991A <https://doi.org/10.1039/D3SC03991A>`_: Download the source code from first_paper_example - presubmission release from Releases.I do not guarantee that running the example code on the current version will work. However, with each pull request a test is run as a GitHub Action connected to this repository. This ensures that the results obtained for a subset of the original data set do not change with changes to this library. Additionally, the naming convention has changed and force field xml files should provide the appropriate information for mapping angles to models.
The directory cgexplore contains the actual source code for the package.
The directory first_paper_example contains the code for 10.1039/D3SC03991A.
generate_XX.py generates cage structures for different topology sets
env_set.py sets a specific environment for file outputs
plot_XX.py produces images and figures, and performs analysis
Important:
Warning: If you have a CUDA-capable GPU and attempt to use CUDA in the first example, you may get NaN errors due to the torsion restriction for angles at 180 degrees, which cause problematic forces. This will be handled in future versions of the code. And logically, I would suggest removing the torsion restriction for those angles. The platform can be handled through this argument in build_building_blocks and build_populations, which I currently set to None, meaning OpenMM will decide for itself.
How To Cite
If you use cgexplore, please cite this paper
and reference this URL
If you use our minimial model, please cite this paper
Systematic exploration of accessible topologies of cage molecules via minimalistic models
Publications using CGExplore
Using stk for constructing larger numbers of coarse-grained models: Systematic exploration of accessible topologies of cage molecules via minimalistic models.
Starship structure prediction: (Adjacent backbone interactions control self-sorting of chiral heteroleptic Pd3A2B4 isosceles triangles and Pd4A4C4 pseudo-tetrahedra)
Structure prediction: (Predicting stable cage structures by enumerating stoichiometry and topology)
Acknowledgements
Funded by the European Union - Next Generation EU, Mission 4 Component 1 CUP E13C22002930006.
This work is now developed as part of the Tarzia Research Group at the University of Birmingham.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cgexplore-2026.2.2.0.tar.gz.
File metadata
- Download URL: cgexplore-2026.2.2.0.tar.gz
- Upload date:
- Size: 56.3 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.28 {"installer":{"name":"uv","version":"0.9.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a47f501e72f3b3743ad22e938b79335c24f377a6d58539e32d207e8671467660
|
|
| MD5 |
ef36a011f763edbafa0e173a334afdd2
|
|
| BLAKE2b-256 |
5ac57938c1686bb1ce2e9103f160430053159527113f9264f5c34cc8b4afe7b6
|
File details
Details for the file cgexplore-2026.2.2.0-py3-none-any.whl.
File metadata
- Download URL: cgexplore-2026.2.2.0-py3-none-any.whl
- Upload date:
- Size: 44.1 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.28 {"installer":{"name":"uv","version":"0.9.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3a48571325bedad43d6c356ab6ab6f013f6652ed4520e6d7f402ca604704ecb4
|
|
| MD5 |
e65c3762eb12e088c8b0c750aa2ac652
|
|
| BLAKE2b-256 |
4caeb43f07250fe2621ddb686b34f1bb73d44b18cf4fb0ef5c67998146d20694
|