11.07.2015 Views

VMD User's Guide

VMD User's Guide

VMD User's Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

8.3.19 molLoad, modify, or delete a molecule in <strong>VMD</strong>. In the following, molecule number is a string describingwhich molecules are to be affected by the command. It is one of the following: all, top, active,inactive, displayed, on, off, fixed, free, or one of the unique integer ID codes assigned tothe molecules when they are loaded (starting with 0). The codes (molIDs) are not reused after amolecule is deleted, so if you, for example, have three molecules loaded (numbered 0, 1, 2), deletemolecule with molID equal to 0, and then load another molecule, the new molecule will have molID3. Thus, the list of available molecule IDs becomes (1 2 3). The index of the molecule on thislist is, among many other things, accessible through the molinfo command [§8.3.21]. In the abovecase, for example, molecule that was loaded the last has molID equal to 3, however, it is the thirdon the list of molecules, so it has the index equal to 2 (since we start countin from 0).The molecule representations (views) are assigned integer number (starting with 0 for eachmolecule), which appear in the list on the Graphics form [§4.4.7]. The representations can be added,deleted or changed with the mol command. See also sections on molinfo command [§ 8.3.21] formore ways of retrieving information about the representations.• new [ filename ][options ]:• addfile < filename >[options ]:mol new is used to create a new molecule from a file; if the optional filename parameteris omitted, a plain, “blank” molecule is created with no atoms (this can be used to createa canvas for drawing user-defined geometry). mol addfile is like mol new except that thestructure and coordinate data are loaded into the top molecule (whichever molecule was loadedlast) instead of creating a new one. Both mol new and mol addfile accept the following setof options:– type : Specifies the file type (psf, pdb, etc.) If this option is omitted, the filenameextension is used to guess the filetype; otherwise, it overrides what would be guessedfrom the filename.– first :– last :– step : For files containing coordinate frames , specifies which frames to load.Frames are indexed starting at 0. A step of 1 means all frames in the range will beloaded; a step of 2 means load every other frame.– waitfor : For files containing coordinate frames , specifies how many framesto load before returning; the default is 1. If frames is less than the number of framesin the file, the rest of the frames will be loaded in the background on subsequent <strong>VMD</strong>display updates. If frames is -1 or all, then all frames in all files still in progresswill be loaded at once before the command returns. Frames loaded this way will loadfaster than if they are loaded in the background. If files are still being loaded in thebackground when the addfile command is issued, frames from the files in progress willbe loaded first.– volsets : For files containing volumetric data, specifies which data sets toload. should be a list of zero-based indices.107

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!