This tutorial goes over how to create visualizations with MSMExplorer-d3. MSMExplorer-d3 is intended to help researchers quickly visualize Markov state models of molecular dynamic simulations. This tutorial will go over how to load Markov state model data, interact with your visualizations, create transition state pathways, and add meaningful representations of molecules to your visualizations.
Use MSMBuilder to generate an MSM from your molecular dynamics simulations.
In the Markov States
tab, which appears first by default, two different parameters are available to customize: Probability cutoff
and Resize nodes
.
Probability cutoff
This parameter dictates which edges should be trimmed from the graph visualization. This can be useful if you only care about higher probability transitions or just want a more asthetically pleasing graph.
Resize nodes
This parameter allows for several options to adjust the size of nodes based on different graph properties, such as pagerank
, first eigenvector
, second eigenvector
, and closeness centrality
. Each of these properties will highlight states that may have some importance in the Markov state model. pagerank
is the default option.
Find the transition probability matrix file, which MSMBuilder will create as a matrix market formatted file. This file should be named tProb.mtx
by default in your project folder.
The matrix market file can then be dragged and dropped into MSMExplorer-d3's convenient "UPLOAD" box. The graph will be generated from this file and your settings automatically. Note that the size of the arrow is related to the directed transition probability between any two states.
A force-directed graph should appear on the right side of the page once you've uploaded a matrix market file. Interacting with the visualization panel is intuitive: you can click and drag nodes to rearrange them; drag the visualization screen to pan in any direction; and scroll within it to zoom in or out.
Click on Transition Paths
. Here, you can create transition state pathways using Djikastra's algorithm as implemented by MSMBuilder's CalculateTPT.py
tool. Settings include: Input source states
, Input sink states
, and Number of top paths
.
Input source states
Here you can type in a comma-separated list of source states, or reactants.
Input sink states
Here you can type in a comma-separated list of sink states, or products.
Number of top paths
Select the number of top paths desired, as determined by Djikastra's algorithm. Default is 5. Maximum is 10.
When you are done configuring your settings, click on "Generate". The transition pathways will appear in the visualization panel. Source states will appear in blue, sink states in red, and transition states in gray. Note that the size of the arrow is related to the bottleneck flux along a given path (i.e. the top path with have the largest arrows along it).
Now that your transition state pathways have been generated, you can also add images of the molecular states that each node in the pathway (or transition graph) represents with ease.
First, click on the Add Logos
tab and then select a state from the State
selection menu. You can now load a PDB of the state by clicking the "LOAD PDB" button on the lower left side of the panel. An interactive molecular stucture should appear in the round window in the center of the panel. Go ahead and play around with it. You can click + drag to rotate the structure; scroll to zoom in or out; click control
+ drag to translate; and control
+ scroll to adjust the clipping plane.
When you have your structure just as you want it to appear in the graph, click "ADD LOGO". The node will automatically be replaced with the representation you created in the Add Logos
panel.
Repeat this step for each state you wish to add a structure, and, within just a few minutes, you can create a publication quality visualization.