Desmond Tutorial
Desmond Tutorial - DE Shaw Research
Desmond Tutorial - DE Shaw Research
- No tags were found...
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
<strong>Desmond</strong> <strong>Tutorial</strong><br />
Analyzing Trajectories Using VMD<br />
Figure 9.2 Loading files from the GUI<br />
Click Browse and select<br />
your structure file.<br />
Choose the type of<br />
Maestro file you want to<br />
load and click the Load<br />
button.<br />
Figure 9.3 Loading files from the GUI<br />
Select the ‘clickme.dtr’ file<br />
to load the frames within<br />
the directory containing the<br />
‘clickme’ file.<br />
At this point, you may wish to limit the number of snapshots that are loaded from the<br />
trajectory. If you havenʹt done so already, choose <strong>Desmond</strong> Trajectory from the file type<br />
chooser. The Frames box underneath should now be active. Type in values for the snapshots<br />
you want to load. The default First value of 0 corresponds to the first snapshot in<br />
the trajectory; the default Last value of —1 corresponds to the last snapshot; and a Stride<br />
of 1 means load every snapshot in the selected range. Choosing a Stride of 10 would load<br />
every 10th snapshot from the trajectory.<br />
You also have the choice of Load in background, which is slower but keeps VMD responsive<br />
during the load and gives you the option of canceling the load before it completes,<br />
and Load all at once, which is quite a bit faster but leaves VMD in an unresponsive state<br />
until the load has completed. Use Load all at once whenever youʹre reasonable sure that<br />
all the frames youʹre about to load will fit in memory.<br />
Loading files from the scripting interface<br />
Files can also be loaded into VMD using the Tcl or Python scripting interface. Weʹll confine<br />
ourselves here to the Python interface, although you may find using the Tcl interface<br />
with VMD TkCon window more convenient for simple tasks.<br />
Load the molecule module by typing import molecule at the Python prompt. To load<br />
a structure file and all frames of a trajectory file, enter the following commands:<br />
import molecule<br />
molid = molecule.read(molid=-1, filetype='mae', filename='structure.cms')<br />
88 D. E. Shaw Research September 2008