RCDPeaks
Memory-Efficient Density Peaks Clustering of Long Molecular Dynamics
RCDPeaks is a Python command-line interface (CLI) conceived to speed up and overcome certain limitations of the Rodriguez and Laio’s Density Peaks (DP) clustering [1] of long Molecular Dynamics.
Installation
There are some easy-to-install dependencies you must have before running RCDPeaks. MDTraj (mandatory) will perform the heavy RMSD calculations, while VMD (optional) will help with visualization tasks. The rest of the dependencies (listed below) will be automatically managed by RCDPeaks.
1. MDTraj
It is recommended that you install MDTraj using conda.
conda install -c conda-forge mdtraj
2. RCDPeaks
- Via pip
After successfully installing MDTraj, you can easily install RCDPeaks and the rest of its dependencies using pip.
pip install rcdpeaks
- Via GitHub
git clone https://github.com/LQCT/RCDPeaks.git
cd RCDPeaks/
python setup.py install
Then, you should be able to see RCDPeaks help by typing in a console:
rcdpeaks -h
3. VMD and VMD clustering plugin (optional)
RCDPeaks clusters can be visualized by loading a .log file in VMD via a clustering plugin. Please see this VMD visualization tutorial.
The official site for VMD download and installation can be found here.
Instructions on how to install the clustering plugin of VMD are available here.
Basic Usage
You can display the primary usage of RCDPeaks by typing rcdpeaks -h in the command line.
$ rcdpeaks -h
usage: rcdpeaks -traj trajectory [options]
RCDPeaks: Memory-Efficient Density Peaks Clustering of Long Molecular Dynamics
optional arguments:
-h, --help show this help message and exit
Trajectory options:
-traj trajectory Path to trajectory file [default: None]
-top topology Path to the topology file
-first first_frame First frame to analyze (start counting from 0) [default: 0]
-last last_frame Last frame to analyze (start counting from 0) [default: last
frame]
-stride stride Stride of frames to analyze [default: 1]
-sel selection Atom selection (MDTraj syntax) [default: all]
Clustering options:
-cutoff cutoff RMSD cutoff for pairwise comparison in A [default: 1]
-dcut delta_cut delta cutoff for the decision graph
-rcut rho_cut rho cutoff for the decision graph
-restart_from file.pickle
restart clustering from previous job
-auto_centers bool
Output options:
-odir . Output directory to store analysis [default: ./]
In the example folder, you can find a coordinate (pdb) and a trajectory (dcd) files to run an RCDPeaks test. Type the next command in the console and check if you can reproduce the content of the examples/output directory:
rcdpeaks -traj aligned_original_tau_6K.dcd -top aligned_tau.pdb -cutoff 2.5 -odir outputs
Citation (work in-press)
If you make use of RCDPeaks in your scientific work, cite it ;)
Release History
- 0.0.1
- First Release (academic publication)
Licence
RCDPeaks is licensed under GNU General Public License v3.0.
Reference
[1] Rodriguez, A.; Laio, A. Clustering by fast search and find of density peaks.Science. 2014, 344 (6191), 1492-1496.
Metadata
Release files for rcdpeaks 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| rcdpeaks-0.0.1.tar.gz | 15.3 kB | Without provenance | Details for rcdpeaks-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| rcdpeaks-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for rcdpeaks-0.0.1-py3-none-any.whl |
Total release size: 42.6 kB
Release files / rcdpeaks-0.0.1.tar.gz
| Download URL | rcdpeaks-0.0.1.tar.gz |
|---|---|
| Size | 15.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bf60c599805b17e695dcbbd65c16dbf4bff3a068f562c5c025d659661d71fc20
|
|
BLAKE2b-256 checksum How to use checksums |
443c0394ba20d43ccd04fd4e9350b88815732f75fe52035d4f75187281382997
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/0.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.8
|
Release files / rcdpeaks-0.0.1-py3-none-any.whl
| Download URL | rcdpeaks-0.0.1-py3-none-any.whl |
|---|---|
| Size | 27.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9d867ada66872dd1afa27d4427eb26c082aff376b135a5b7edcc356c7668fd26
|
|
BLAKE2b-256 checksum How to use checksums |
e15b71d53ebad0711544d40d275a2cb2dffba2abfe1fbb364cc3a84c8566aa98
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/0.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.8
|
Security for rcdpeaks 0.0.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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.