TS-DART: Transition State identification via Dispersion and vAriational principle Regularized neural neTworks
Identifying transitional states is crucial for understanding protein conformational changes that underlie numerous fundamental biological processes. Markov state models (MSMs) constructed from Molecular Dynamics (MD) simulations have demonstrated considerable success in studying protein conformational changes, which are often associated with rare events transiting over free energy barriers. However, it remains challenging for MSMs to identify the transition states, as they group MD conformations into discrete metastable states and do not provide information on transition states lying at the top of free energy barriers between metastable states. Inspired by recent advances in trustworthy artificial intelligence (AI) for detecting out-of-distribution (OOD) data, we present Transition State identification via Dispersion and vAriational principle Regularized neural neTworks (TS-DART). This deep learning approach effectively detects the transition states from MD simulations using hyperspherical embeddings in the latent space. The key insight of TS-DART is to treat the transition state structures as OOD data, recognizing that the transition states are less populated and exhibit a distributional shift from metastable states. Our TS-DART method offers an end-to-end pipeline for identifying transition states from MD simulations. By introducing a dispersion loss function to regularize the hyperspherical latent space, TS-DART can discern transition state conformations that separate multiple metastable states in an MSM. Furthermore, TS-DART provides hyperspherical latent representations that preserve all relevant kinetic geometries of the original dynamics. We demonstrate the power of TS-DART by applying it to a 2D-potential, alanine dipeptide and the translocation of a DNA motor protein on DNA. In all these systems, TS-DART outperforms previous methods in identifying transition states. As TS-DART integrates the dimensionality reduction, state decomposition, and transition state identification in a unified framework, we anticipate that it will be applicable for studying transition states of protein conformational changes.
The software package can be installed and runned on Linux, Windows, and MacOS (x86_64)
Dependency of Python and Python packages:
(versions that has been previously tested on are also listed below, other versions should work the same)
python == 3.9
numpy == 1.26.1
scipy == 1.11.4
torch == 1.13.1
tqdm == 4.66.1
The required python packages with the latest versions will be automatically installed if these python packages are not already present in your local Python environment.
The source code can be installed with a local clone:
The most time-consuming step is the installation of PyTorch (especially cuda version) and the whole installation procedure takes around 5 mins to complete at a local desktop.
git clone https://github.com/xuhuihuang/ts-dart.git
python -m pip install ./ts-dart
Check these two files for the demo:
./ts-dart/example/muller-example.ipynb
./ts-dart/example/quadruple-well-example.ipynb
The whole training procedure of the following demo on i9-10900k cpu takes around 30mins to complete at a local desktop.
python ./ts-dart/scripts/train_tsdart.py \
--seed 1 \
--device 'cpu' \
--lag_time 10 \
--encoder_sizes 2 20 20 20 10 2 \
--feat_dim 2 \
--n_states 2 \
--beta 0.01 \
--gamma 1 \
--proto_update_factor 0.5 \
--scaling_temperature 0.1 \
--learning_rate 0.001 \
--pretrain 10 \
--n_epochs 20 \
--train_split 0.9 \
--train_batch_size 1000 \
--data_directory ./ts-dart/data/quadruple-well \
--saving_directory .
Or
sh ./ts-dart/scripts/train_tsdart.sh
Once you have already installed ts-dart in your conda environment.
python -m pip install -U sphinx
pip install sphinx-rtd-theme
pip install nbconvert nbformat
pip install sphinx-design
cd docs
make html
(Warnings can be ignored!) You can also visit our documentation online
TS-DART refers to the preprint 10.26434/chemrxiv-2024-r8gjv.
We already added the example of Muller potential reported in this preprint to the repo.
To reproduce the results of the other datasets reported in this preprint, please refer to Zenodo, where we have uploaded all of our training results and raw simulation data. Or you can directly contact [email protected].
Our codebase builds heavily on
Thanks for open-sourcing!