Collective Variable Package
Overview
Collective variables (CVs) are functions of the coordinates of a molecular system and provide a means to project its conformational state onto a lower-dimensional space. By stimulating the dynamics of a judiciously chosen set of CVs, one can obtain an enhanced sampling of the configuration space, including regions that are otherwise difficult to access. The system's free energy as a function of these CVs can be used to characterize the relative stability of different states and to identify pathways connecting them.
CVPack is a Python package that provides pre-defined CVs for the powerful molecular dynamics engine OpenMM. All these CVs are subclasses of OpenMM's Force class and, as such, can be directly added to a CustomCVForce or used to define a BiasVariable for Metadynamics.
Collective Variables
The CVs implemented in CVPack are listed in the table below.
| Collective Variable | Description |
|---|---|
| Angle | angle formed by three atoms |
| Atomic Function | a user-defined function of the coordinates of a group of atoms |
| Attraction Strength | strength of the attraction between two groups of atoms |
| Centroid Function | a user-defined function of the centroids of groups of atoms |
| Composite RMSD | multibody RMSD with concerted-rotation alignment |
| Distance | distance between two atoms |
| Helix angle content | alpha-helix angle content of a sequence of residues |
| Helix H-bond content | alpha-helix hydrogen-bond content of a sequence of residues |
| Helix RMSD content | alpha-helix RMSD content of a sequence of residues |
| Helix torsion content | alpha-helix Ramachandran content of a sequence of residues |
| Meta CV | a function of other collective variables |
| Number of contacts | number of contacts between two groups of atoms |
| OpenMM Force wrapper | converts an OpenMM Force object into a CVPack CV |
| Path in CV space | progress along (or deviation from) a path in CV space |
| Path in RMSD space | progress along (or deviation from) a path in RMSD space |
| Radius of gyration | radius of gyration of a group of atoms |
| (Radius of gyration)^2 | square of the radius of gyration of a group of atoms |
| Residue coordination | number of contacts between two disjoint groups of residues |
| RMSD | root-mean-square deviation with respect to a reference structure |
| Sheet RMSD content | beta-sheet RMSD content of a sequence of residues |
| Shortest Distance | shortest distance between two groups of atoms |
| Torsion | torsion angle formed by four atoms |
| Torsion similarity | degree of similarity between pairs of torsion angles |
Installation and Usage
CVPack is available as a conda package on the mdtools channel. To install it, run:
conda install -c conda-forge -c mdtools cvpack
Or:
mamba install -c mdtools cvpack
To use CVPack in your own Python script or Jupyter notebook, simply import it as follows:
import cvpack
Documentation
Documentation for the latest CVPack version is available on Github Pages.
Copyright
Copyright (c) 2023-2024 C. Abreu & Redesign Science
Acknowledgments
Initial project based on the CMS Cookiecutter version 1.1.
Metadata
Release files for cvpack 0.12.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| cvpack-0.12.2.tar.gz | 63.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cvpack-0.12.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 149.9 kB
Release files / cvpack-0.12.2.tar.gz
| Download URL | cvpack-0.12.2.tar.gz |
|---|---|
| Size | 63.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5b0e755a0ebbbd88a52e0e0c4ad07cb990e7fb6fad52cf5af4e266a85fb13197
|
|
BLAKE2b-256 checksum How to use checksums |
d55aee0941b29cb152428ddf9545680c0488f32ed46bef4a0a02411d3d5d8fbf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.9
|
Release files / cvpack-0.12.2-py3-none-any.whl
| Download URL | cvpack-0.12.2-py3-none-any.whl |
|---|---|
| Size | 86.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0f130ae9e7976d252164c2e49c41bbdb1183bb8302f2ce734d235abe76559611
|
|
BLAKE2b-256 checksum How to use checksums |
2bfd1cdad569577fc32c0d9561feabe15f27e08339b80b7dc48fc635db054f7b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.11.9
|