Code accomapnying the manuscript "Monomer binding modes of small molecules that modulate the kinetics of hIAPP amyloud formation" by Michelle Garcia, Korey M. Redi and Paul RObustelli
Trajectories, Gromacs Input Files, and al analysis code for this manuscript can be found on this project github.
The trajectories used in analysis are all found in the trjs folder, and the input files to start a simulation are found in each respective folder.
To learn more about analysis and insights found in this paper please check out our paper/preprint:
https://www.biorxiv.org/content/10.1101/2025.09.22.677832v1
If you plan on running on a cluster with a linux system, you should use minforge3 as it solves for package environments faster.
source miniforge3/bin/activate
mamba init
mamba create -n circuit_top python
mamba install mdtrajconda install -c conda-forge mdtraj
mamba install matplotlibconda install matplotlib
pip3 install seaborn
pip3 install -U scikit-learn
conda install scipy
pip3 install biopython
pip install pyblock
OR create a new environment from circuit_top_env.yml file using conda env create -f circuit_top_env.yml
create a topology matrix, run incremental pca, and using the script, which requires a topology file and trajectory file. Notice that some of the functions are borrowed directly from scalvini et al. 2023, project github.
There are 5 variables to consider in this order: the trajectory path, the topology path, the number of residues, the out directory, the number of clusters, and the system name for file naming.
Example usage: python circuit_top_analysis_script.py hiapp_wt_apo.xtc hiapp_wt_apo.gro 38 hiapp_wt_apo_outdir 4 hiapp_wt_apo
The compressed circuit topology matrices can be found at the following dropbox link.
For any protein + ligand system run the {protein}{ligand}analysis.ipynb notebook. This notebook analyzes the ligand system. You may run circuit_top{protein}{ligand}_analysis.ipynb based off k-means clusters created from the topology matrix.
This notebook requires:
- a structure file that can be read by mdtraj (pdb, gro, etc..) file for your protein + ligand system
- an xtc or dcd file for your simulation
- a matrix file and circuit model file or a .json/.pkl file with dictionary values for assigned clusters
- a perfectly ideal helix structure for alpha-helical order parameter calculations