Provided for the
NSF Educational Molecular Visualization Workshops
at UMass, Amherst, Eric Martz, PD.
http://www.umass.edu/microbio/rasmol/workshop.htm
If you are reading a paper version of this document, it is
also available at http://www.umass.edu/microbio/rasmol/trs-spts.htm
Software, molecules, and visualization help is at the
RasMol Home Page,
http://www.umass.edu/microbio/rasmol
Optional:
This document assumes that you already know how to obtain PDB files of the desired molecules (http://www.umass.edu/microbio/rasmol/whereget.htm ), and to use RasMol to get the views you need of these molecules for teaching purposes. (By a "view" we mean a particular representation, color scheme, orientation, and magnification of a molecule.)
This document explains how to save the views you wish to show your class,
and how to play them back smoothly in the correct order. It also explains
how to deliver these views through the Internet/Web via Chime.
Now you must install
RasMol so that this folder is RasMol's working/local directory.
Otherwise it will not be able to find either the scripts or the PDB files.
There is a crucial trick for making RasMol-saved scripts portable.
(or on Windows 3.1
systems, in RasMol's working directory; or on Windows 95 systems, RasMol's
Shortcut Properties, Shortcut, Start-in folder).
Now, instead of using RasMol's File menu to Open your PDB file, type the
command load "filename.pdb". The result of this trick is that
scripts you save from RasMol will be portable, provided that you always
have the scripts themselves, the requisite PDB files, and RasMol
(or its working/start-in folder) all in the same folder.
Technical details: You don't have to read this paragraph to use the
above trick. If you open the PDB file from RasMol's menu, it
remembers the full absolute pathname of the file, and saves it into
the script. When you put the script in a different folder or
system, it can't find the PDB file. The 'load' command, given
without a PDB filename path prefix, causes RasMol to save the PDB
file 'bare', with no path prefix.
If you forget to 'load' your PDB file, the symptom will be that your
script will run in the original RasMol folder, but will not run when
the script + PDB files are in a different folder or system, and will not
run in Chime. You can fix this easily by using a text editor to delete the
absolute pathname prefix from the load command in the 7th line of each
RasMol-saved script. For example, change
Typing the command script filename into RasMol plays back the
script.
You'll need a text editor. Simple-text is recommended on the
Macintosh; Notepad is recommended on Windows95. The goal is to save
your typed commands into a plain text file, not a formatted word
processor file. (If you use Wordpad, be sure you save files as plain
text!)
Create a master script file (let's call it master.spt)
containing a list of script call commands, each followed by a
pause command. An example is mast-p.spt,
a master script file which calls four scripts showing views of
one chain of the Gal4 transcriptional regulatory protein. The
command script mast-p.spt causes RasMol to show the first
image. You can now rotate, zoom, translate, and slab with the mouse.
When any key is pressed, the first pause is released, and the second
image comes up, and so forth.
Enabling RasMol to find your scripts and PDB files.
Create a new folder to receive your saved scripts.
Put the needed PDB files (or copies of them) in this folder.
Troubleshooting your installation.
To test your installation, run RasMol and use its File, Open menu to open
one of the PDB files in your scripts folder. If you do not see the PDB file
on the open menu, here are the possible reasons:
Ensuring that your scripts will be portable!
load pdb "C:\M1\RASDAT\SCRIPTS\DNA-RSS\1D66.PDB"
to
load pdb "1d66.pdb"
Lower case filenames are recommended. Failure to change the
filename to lower case will cause problems on case-sensitive
operating systems such as unix. It is also strongly recommended
that you name all PDB files with a name not longer than 8 characters
(use only letters, digits, and the underscore character) plus ".pdb"
for compatibility with Windows 3.1. This will be important, for
example, should you give copies of your scripts to others who use
Windows 3.1 to run from their local hard disks.
Save scripts of desired views from RasMol,
then play them back.
Save each view into a script file by typing the RasMol command
save script filename, where filename is a
filename of your choice, for example for your first view, it could be
view1.spt.
Create a Master Script.
Suppose you have saved a dozen scripts from RasMol, and now you want
to be able to show them quickly to a class, without typing
script filename for each one (and without remembering
all the filenames!).