Compress MD trajectories using deep convolutional autoencoder
Project description
MDZip
This Git repository contains MDZip, a program that leverages the power of autoencoders with residual connections to compress molecular dynamics trajectories while reconstructing global and local structural properties with minimal information loss.
Author: Namindu De Silva
[Add Description Here]
Dependencies
- wheel
- mdtraj
- torch
- torchvision
- torchaudio
- pytorch-lightning
- scikit-learn
- numpy
- tqdm
Installation
Linux/Windows with CUDA
Create conda environment
conda create -n <my-env> python=3.10
conda activate <my-env>
Install dependencies (recomended for CUDA build)
conda install -c conda-forge mdtraj
pip install torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu117
pip install lightning
Install MolZip
git clone https://github.com/PDNALab/MDZip.git
cd MolZip
python setup.py sdist bdist_wheel
cd dist
pip insall molzip-0.1.0-py3-none-any.whl
Linux/Windows/OSX without CUDA
conda create -n <my-env> python=3.10
conda activate <my-env>
conda install -c confa-forge mdtraj
git clone https://github.com/nami-rangana/MolZip.git
cd MolZip
python setup.py sdist bdist_wheel
cd dist
pip insall molzip-0.1.0-py3-none-any.whl
Help
compress(traj: str, top: str, stride: int = 1, out: str = '/blue/alberto.perezant/t.desilva/MolZip/testing', fname: str = '', epochs: int = 100, batchSize: int = 128, lat: int = 20, w: float = 1.0, memmap: bool = False)
compressing trajectory
----------------------
traj (str) : Path to the trajectory file
top (str) : Path to the topology file
stride (int) : Read every strid-th frame [Default=1]
out (str) : Path to save compressed files [Default=current directory]
fname (str) : Prefix for all generated files [Default=None]
epochs (int) : Number of epochs to train AE model [Default=100]
batchSize (int) : Batch size to train AE model [Default=128]
lat (int) : Latent vector length [Default=20]
w (float) : Non-negative weight for loss function [Default=1.0]
memmap (bool) : Use memory-map to read trajectory [Default=False]
decompress(top: str, model: str, compressed: str, out: str)
decompress compressed-trajectory
--------------------------------
top (str) : Path to the topology file (parm7|pdb)
model (str) : Path to the saved model file
compressed (str) : Path to the compressed trajectory file
out (str) : Output trajectory file path with name. Use extention to define file type (*.nc|*.xtc)
Cite
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 mdzip-0.1.1.tar.gz.
File metadata
- Download URL: mdzip-0.1.1.tar.gz
- Upload date:
- Size: 16.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4e6e9a89e274bf01fab7c6f50d65fd1756ecf7fc09c17ba7a867b5bf8e4c350b
|
|
| MD5 |
903f19926ecd0232725a505be2885342
|
|
| BLAKE2b-256 |
435b98b8da4b941a70a276cbc69f242ef716b932aed4d10685fef60e93687cb5
|
File details
Details for the file mdzip-0.1.1-py3-none-any.whl.
File metadata
- Download URL: mdzip-0.1.1-py3-none-any.whl
- Upload date:
- Size: 18.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f1d989d165c884e0f12403b3a67287154338de97f8ddec1ab3b8bf6c8a360d9b
|
|
| MD5 |
79c1732402ed600ff4fc7a9db8e4cb50
|
|
| BLAKE2b-256 |
a8af6b0df355e6ec5a7a9e0e74047577bbdb0f8094b3d098d4baf8dc18adef1c
|