Posts

Showing posts with the label MD analysis

Using the MMTSB Toolset for Cluster Analysis in AMBER

Image
You'll need the MMTSB toolkit for this tutorial. This is not included in AMBER but is freely available via GitHub. We have discussed how to install it on Linux (Centos 7) in our earlier blog post:  mmtsb-toolset-installation . The following instructions are also provided in AMBER tutorials ( https://ambermd.org/tutorials/basic/tutorial3/section6.htm , which includes scripts and commands for clustering. However, we've provided the quick tour of the steps we took to execute it in our study. In this case, the K-means clustering algorithm is applied, which traverses the pathway in search of clusters of identical structures. It then generates centroids for each cluster and calculates the root mean square deviation (RMSD) of each structure in the trajectory with respect to each cluster. 1. Prepare the directories mkdir clustering cd clustering mkdir PDBfit 2. Use cpptraj to extract multiple PDB's from the trajectory in the clustering folder #first save this script: "extrac...

MMTSB Toolset installation

MMTSB stands for  Multiscale Modeling Tools for Structural Biology.  It is a novel collection of utilities and programming libraries that enable the simulation of proteins and nucleic acids to use advanced sampling and multiscale modelling techniques. For classical all-atom simulations, the tool set interacts with the current molecular modelling packages CHARMM and Amber, and with MONSSTER for lattice-based low-resolution conformational sampling. The tool set is intended for structural biology applications that need the prediction, refining, and/or extended conformational sampling of protein or nucleic acid structures. It also incorporates an ensemble computing capability that enables the control and execution of modelling tasks on a broad range of conformations. For Further details the links are given below. Installation instructions for centos 7: 1. The package is available on GITHUB: https://github.com/mmtsb/toolset #From here download the zip file from the "code" option. ...

PCA analysis on MD trajectory through cpptraj

PCA analysis through CPPTRAJ module of AmberTools: > source $AMBERHOME/amber.sh > $AMBERHOME/bin/cpptraj > parm comp_solv.prmtop > trajin comp_150ns.nc > center > autoimage > rms first @CA mass > average crdset avg_set > createcrd traj_set > run > crdaction traj_set rms ref avg_set @CA > crdaction traj_set matrix covar :116-229@CA name pro_covar out covmat.dat #writes covariance matrix based on the selection of residues > runanalysis diagmatrix pro_covar out evecs.dat vecs 100 name myevecs nmwiz nmwizvecs 100 nmwizfile porcupine.nmd nmwizmask :116-229@CA #writes the information about 100 principal components (first 100 PCs) for that particular selection,  produces .nmd file that can be used to generate porcupine plots in normal mode wizard plugin of VMD. > runanalysis modes eigenval name myevecs out evalfrac.dat  gives output about the eigen values, fraction of contribution, cumulative contributions of  eigen vectors(or PCs) (in ...

Python script to plot 2D FEL

Image
 The basic instructions remain same as  FEL 3D plots .  These plots are published in  Interplay among Structural Stability, Plasticity, and Energetics Determined by Conformational Attuning of Flexible Loops in PD-1 Fel2d.py ## FEL using plot_surface import numpy as np from mpl_toolkits.mplot3d import Axes3D import matplotlib.pyplot as plt import random from matplotlib import cm from scipy.interpolate import griddata from scipy.interpolate import Rbf from numpy import linspace #from matplotlib.ticker import LinearLocator, FormatStrFormatter import matplotlib from scipy import interpolate import matplotlib.mlab as ml fig = plt.figure(figsize=None, dpi=300, facecolor=None, edgecolor=None, linewidth=0.0, frameon=None, subplotpars=None, tight_layout=None) ax = fig.add_subplot(111) ### input file with x,y,z coordinates x,y,z = np.loadtxt('5wt9gibbs.txt').T  X,Y = np.unique(x),np.unique(y) xi = linspace(min(X),max(X),len(X)) yi = linspace(min(Y),max(Y),len(Y)) xi,yi = ...

Python script to plot 3D FEL plots

Image
  # To plot FEL in 3D use this python script and run as python2.7 fel3d.py. Here the file uses gibbs.txt. therefore before running the script make sure u have the gibbs.txt in the same folder of this script or else provide the location of the script.  I have attached some images from my research article using the same script for 3D FEL plot These plots are published in  Interplay among Structural Stability, Plasticity, and Energetics Determined by Conformational Attuning of Flexible Loops in PD-1 The 2D FEL scripts are also mentioned in the next blog:  Python script to plot 2D FEL Another point to consider is: when u r plotting FEL plots for multiple systems, make sure your color bar/gradient should be same in all the plots. So u can  change the values in vmax,  ax.set_zlim(0, 18),  ticks=range(0, 21, 2)) in the script below.  Like in my case the highest value was 18 in gibbs free energy (the z axis) in all the axis. therefore i mentioned 18 there...

CPPTRAJ command to measure distance between two regions

#here the command measures the distance between two loops (considering the c-alpha atoms in the loop) and prints output in L1-L2.dat. For amber MD trajectory you may try using the following commands in CPPTRAJ: $AMBERHOME/bin/cpptraj >parm pro_solv.prmtop >trajin md-autoimage.nc >rmsd pro @CA,C,O,N,H first mass >distance :135-149@CA :156-166@CA out L1-L2.dat >run Reference: Interplay among Structural Stability, Plasticity, and Energetics Determined by Conformational Attuning of Flexible Loops in PD-1. https://doi.org/10.1021/acs.jcim.0c01080 https://www.researchgate.net/publication/348511593_Interplay_among_Structural_Stability_Plasticity_and_Energetics_Determined_by_Conformational_Attuning_of_Flexible_Loops_in_PD-1