home *** CD-ROM | disk | FTP | other *** search
/ Archive Magazine 1996 / ARCHIVE_96.iso / discs / mag_discs / volume_9 / issue_10 / rasmol / !RasMol / !Help < prev    next >
Text File  |  1996-04-03  |  22KB  |  427 lines

  1. RasMol 2.6 / 1.10 (02-Apr-96)
  2.  
  3. Purpose:      Molecular Graphics Visualiser
  4. Author:       Roger Sayle (ras32425@ggr.co.uk)
  5. RISC OS port: Martin Wⁿrthner (wuerthne@trick.informatik.uni-stuttgart.de)
  6. Runs under:   RISC OS 3.1 or higher, supports RISC OS 3.5 true colour modes
  7.               Requires at least 2MB RAM (see below "Saving memory")
  8. Status:       FREEWARE, see "Copyright" below
  9.  
  10. Contents:
  11.   * Introduction
  12.   * Starting RasMol
  13.   * First Steps
  14.   * Loading files
  15.   * Window size
  16.   * The tool bar: Selection, Rotation, Translation, Zooming, Z-slabbing
  17.   * Display quality and dithering
  18.   * Saving and exporting
  19.   * Configuration
  20.   * Saving memory
  21.   * Script files
  22.   * PC script directories
  23.   * Display types
  24.   * The View sub-menu and the "Dot surface" option
  25.   * Colours
  26.   * The RasMol Command Line
  27.   * Additional file types
  28.   * Links to molecule databanks and WWW pages about RasMol
  29.   * Copyright
  30.   
  31.   RasMol2 is a molecular graphics program intended for the visualisation of
  32. proteins, nucleic acids and small molecules. The program is aimed at display,
  33. teaching and generation of publication quality images. RasMol runs on
  34. Microsoft Windows, Apple Macintosh, Acorn RISC OS, UNIX and VMS systems. The
  35. UNIX and VMS systems require an 8, 24 or 32 bit colour X Windows display
  36. (X11R4 or later). The program reads in a molecule co-ordinate file and
  37. interactively displays the molecule on the screen in a variety of colour
  38. schemes and molecule representations. Currently available representations
  39. include depth-cued wireframes, 'Dreiding' sticks, spacefilling (CPK) spheres,
  40. ball and stick, solid and strand biomolecular ribbons, atom labels and dot
  41. surfaces.
  42.  
  43.   The RasMol help facility can be accessed by typing "help <topic>" or "help
  44. <topic> <subtopic>" from the RasMol command line. A complete list of RasMol
  45. commands may be displayed by typing "help commands". A single question mark
  46. may also be used to abbreviate the keyword "help".
  47.  
  48.   Copyright (c) 1992-1995 by Roger Sayle (ras32425@ggr.co.uk)
  49.  
  50.  
  51.  Starting RasMol
  52.  ---------------
  53.   When started (by double-clicking on the application itself or on a file which
  54. RasMol understands), RasMol installs itself onto the icon bar and opens two
  55. windows. These are the Molecule window (black) and the RasMol Command Line
  56. window. The Molecule window displays the currently loaded molecule and allows
  57. you to rotate/translate/z-slab it using the mouse.
  58.  
  59.  First steps
  60.  -----------
  61.   To get an idea what the program is about, double-click on the file '1crn' (this
  62. is a small protein file). If you have not already loaded RasMol, it should start up
  63. now. The protein is displayed in wireframe mode in the Molecule window (behind the
  64. Molecule window you can also see the Command Line window). Select the rotation tool
  65. (the tool below the "pointer" tool), click SELECT somewhere in the Molecule window
  66. and drag horizontally or vertically. This rotates the molecule about the x/y-axes.
  67. Using ADJUST, you can rotate about the z-axis. Now click MENU and choose "Spacefill"
  68. from the "Display" sub-menu. For a nice specular highlighting effect choose
  69. "Specular" from the "Options" sub-menu (do not try "Shadows" as it is very slow).
  70. If you are in a 16 or 256 colour mode, try the tool at the bottom of the toolbar
  71. which dithers the image to the current palette. This improves the display quality
  72. significantly but it takes a few seconds.
  73.   To test other ways of displaying the molecule, try also "Ball&Stick" and "Back-
  74. bone" from the "Display" sub-menu. While being in "Backbone" mode, select the
  75. translation tool (the one below the rotation tool). Click ADJUST somewhere in the
  76. window and drag slowly (!) vertically to zoom in/out.
  77.  
  78. Note that the program is fully multitasking, even while calculating complex images
  79. like dot surfaces or shadows. While the program is calculating the pointer changes
  80. to an hourglass while it is inside the RasMol window.
  81.  
  82.  Loading files
  83.  -------------
  84.   A Molecule files may be loaded by double-clicking on it or by dragging it
  85. to the RasMol icon on the icon bar or to the Molecule window.
  86.   Dragging a file to the Command Line window causes its full path name to be
  87. inserted at the caret position. This makes loading files from the command line
  88. easier.
  89.  
  90.  Currently recognised filetypes (allocated by Acorn) are:
  91.  
  92.  Industry standard name              DOS ext.   RISC OS name  type
  93.  -----------------------------------------------------------------
  94.  Brookhaven Protein Data Bank files  PDB        PDB           12A
  95.  Alchemy files                       ALC        Alchemy       129
  96.  Molecular Design Ltd. MOL files     MOL        MOL           128
  97.  MOPAC files                         ???        MOPAC         127
  98.  RasMol script files                 SCR        RasMolSc      12B
  99.  
  100. Note that files have to be filetyped correctly in order to be loaded by
  101. RasMol. If you load a file and all you see is a black window then most
  102. probably the file does not contain any connectivity information. Try
  103. entering "connect" in the command line window.
  104.  
  105.  Window size
  106.  -----------
  107.   The size of the Molecule window determines the speed of the application and
  108. also how much memory is used. The default size of the display is 480 by 480
  109. pixels. By choosing "Scale" from the main menu you can change the scaling of
  110. the window. 100% corresponds to 480 pixel. The width of the window is a
  111. percentage of its height, so a window at a scaling of 50% and a width of 150%
  112. would be 240 pixels high and 360 pixels wide.
  113.   To set the default size, change the configuration of the program (see below
  114. "Configuration").
  115.   Note that the memory you save by decreasing the window size is not given
  116. back to the system, so to save memory, change the window size used at start-
  117. up by changing the configuration.
  118.  
  119.  The tool bar: Selection, Rotation, Translation, Zooming, Z-slabbing
  120.  -------------------------------------------------------------------
  121.   The tool bar contains five tools. From top to bottom these are:
  122. The selection tool, the rotation tool, the translation/zooming tool, the
  123. z-slabbing tool and the dithering tool. The latter is described in detail
  124. in the section "Display quality and dithering".
  125.   The first four determine which interactive mode the program is in, i.e.
  126. how mouse clicks/drags are interpreted:
  127.  
  128. Select mode: If you click on an atom, information about it is displayed in
  129.              the Command Line window. Note that even though this is called
  130.              "selection mode", this has nothing to do with selecting groups
  131.              of atoms or single atoms using the command "select" on the command
  132.              line (for more information on this powerful feature, type "help
  133.              select" on the command line).
  134. Rotation mode: Dragging horizontally using SELECT rotates the molecule about
  135.                the y-axis. Dragging vertically using SELECT rotates the molecule
  136.                about the x-axis. Dragging vertically or horizontally using ADJUST
  137.                rotates the molecule about the z-axis.
  138.                Note that rotation works differently from the way it works in
  139.                ArtWorks or Draw where you drag along an arc. In RasMol you
  140.                should simply drag either horizontally or vertically.
  141. Translation/zoom mode: Dragging using SELECT translates ("moves") the molecule
  142.                        accordingly in the xy-plane. Dragging using ADJUST zooms
  143.                        in/out (i.e. it translates the molecule along the z-axis).
  144. Z-slab mode: This only has a visible effect if the "z-slabbing" option is ticked
  145.              in the "Options" menu. Z-slabbing allows you to see "inside" the
  146.              molecule by slabbing it against a vertical plane. The slab plane can
  147.              be moved along the z-axis by dragging with either mouse key.
  148. Dither tool: See next passage
  149.  
  150.  Display quality and dithering
  151.  -----------------------------
  152.   RasMol produces bitmaps with 256 colour palettes, so they do not display very
  153. well in RISC OS 256 colour modes with the standard fixed palette. In particular
  154. space filling representations look very poor in 256 colour modes. 
  155.  
  156.   Therefore the RISC OS version of RasMol is able to produce dithered output
  157. using more or less the same algorithm ChangeFSI uses to dither images. This
  158. takes a few seconds, but the results are worth while the delay. Dithering works
  159. in both 256 and 16 colour modes. As dithering is quite time-consuming, it is only
  160. performed on request, that is if you click on the "Dither" tool (the bottom tool
  161. on the tool bar). Of course, as soon as the display changes (e.g. because you
  162. change a display option or you rotate the molecule), the picture is recalculated,
  163. so it has to be dithered again. Normally, you would first set all the options you
  164. want, e.g. "Spacefill" and "Specular" etc. and then only when everything is
  165. OK dither the image for final output.
  166.  
  167.   Note that if you subsequently save the image as a sprite, the dithered version
  168. is saved! This is a good option if the main purpose of the picture is to be
  169. viewed, in particular on machines without true colour modes. If however, you
  170. are planning to print the image, you are advised to save the undithered
  171. version (you can revert to the undithered version by choosing "Recalculate"
  172. from the main menu). Even though this looks worse on screen it prints much better
  173. in particular if it is scaled before printing!
  174.  
  175.   To compare RasMol's internal dithering with ChangeFSI, try exporting the
  176. undithered sprite (which contains a full 256 colour palette) and feed it through
  177. ChangeFSI.
  178.  
  179.  There are several other ways of improving output quality:
  180.  1) for RiscPC owners with VRAM:
  181.     * Change to a 32768 colour mode
  182.  2) for owners of a CC ColourCard:
  183.     * Change the 256 colour palette e.g. using the "PalMaker" utility. This
  184.       gives the same display quality as a 16 millon colour mode!
  185.  3) * save the sprite and feed it through ChangeFSI as suggested above
  186.  
  187.  Saving and exporting
  188.  ---------
  189.   The current display can be saved as a sprite using the menu item "File.Save
  190. sprite" from the main menu. This saves the image as a 256 colour sprite with
  191. a full 256 colour palette (not suitable for RISC OS 2 unless you load the
  192. sprite into !Paint and remove the palette). If the currently displayed image
  193. is dithered, the dithered version is saved. Note that it is not possible to
  194. save a 16 colour sprite, even if the current image has been dithered to 16
  195. colours. Feed the undithered image through ChangeFSI to achieve this effect.
  196.  
  197.   "File.Export.GIF" allows you to save the current image (only if it is not
  198. dithered) as a 256 colour GIF file with a 256 colour palette.
  199.  
  200.   "File.Export.EPS (bitmap)" saves an EPS file containing the bitmap.
  201.  
  202.   "File.Export.Vector PS" is a very powerful option which is not fully
  203. implemented yet. However, for some representations it should work already.
  204. This output can be fed through a PostScript interpreter, e.g. RiScript to
  205. produce a Drawfile. However, do not expect too much, both vector PS export
  206. and RiScript are rather unstable still.
  207.  
  208.  Configuration
  209.  -------------
  210.   RasMol provides some basic configuration options that can be set by choosing
  211. "Choices" from the icon bar menu.
  212. The "Time slice" option determines how much CPU time the program takes.
  213. Decreasing the value means that the desktop is slowed down less, but it may
  214. take longer to calculate an image. Increasing the value means that more
  215. CPU time is taken. If you enter 0, then multitasking is disabled completely
  216. while images are calculated.
  217.  
  218.   The "Default scale" and "Default width" entries correspond to the menu entries
  219. of the same name. They can be used to set the values to be used at start-up
  220. time of the program. Note that a smaller window uses less memory.
  221.  
  222.   Note that if you disable the toolbox by deselecting the "Display toolbox"
  223. option, RasMol reverts to the standard interpretation of mouse operations as
  224. used by the X11 or MS Windows version:
  225.  
  226.  with Ctrl held down:  z-slab mode
  227.  with Shift held down: SELECT: rotate about z-axis
  228.                        ADJUST: zoom mode
  229.  else: SELECT: translate in the xy plane
  230.        ADJUST: rotate about x- and y-axes
  231.  
  232.  Saving memory
  233.  -------------
  234.   RasMol just about starts up on a 2MB machine. For the first time, you might
  235. have to do a clean boot and switch to a 16 colour mode before RasMol would
  236. start. To save memory permanently, reduce the window size (not using the main
  237. menu, but using the iconbar "Choices" item) and click on the Save button. Then
  238. reload the application. Most options do not need any extra memory and most
  239. molecules are rather small. You should however avoid the "Dot surface" option
  240. as this takes lots of extra memory.
  241.  
  242.  Script files
  243.  ------------
  244.   Script files may contain an arbitrary number of RasMol commands. For details
  245. refer to the RasMol manual. Script files must have the file type "RasMolSc"
  246. in order to be recognised by RasMol. Double-clicking on a script file or
  247. dragging it to one of the RasMol windows starts the script. Scripts do not
  248. multitask, but you can abort them by pressing and holding down the Escape key
  249. until the hourglass disappears.
  250.   A script file which reproduces the current setup can be saved using the
  251. "File.Save script" menu item. It does not include all options, e.g. the "Dot
  252. surface" option is ignored. However, it is a good point to start from if you
  253. want to be able to restore a certain set of options later.
  254.   Note that using scripts you can produce running demonstrations: Use the
  255. refresh command to force the screen to be updated while the script is running.
  256. The pause command can be used to ask the user to press a key to go on. When
  257. doing so it is advisable to use the echo command to print some text in the
  258. command window like "Press any key to go on".
  259.  
  260.  PC script directories
  261.  ---------------------
  262.   Some people have built script directories which contain molecule files and
  263. scripts. Usually, there is one main entry script to be started called
  264. something.TOP. On the PC platform you would change the current directory to
  265. the script directory and then run the script. This way, the script can
  266. reference the molecule files without any pathname but simply by specifying
  267. their name.
  268. In order to make porting of these directories easier, RasMol provides the
  269. following feautures:
  270. - automatic conversion of PC filenames to Acorn filenames, e.g. a command
  271.   "load DNA.PDB" is automatically converted to "load DNA/PDB".
  272. - if a file is not found, RasMol looks inside the directory specified by
  273.   the system variable RasMol$FilePath
  274. So all you have to do is to give the main script file (the one ending in
  275. /TOP) the correct type "RasMolSc" and add a !Run file to the directory which
  276. reads as follows:
  277.  
  278.  Set RasMol$FileDir <Obey$Dir>
  279.  Filer_Run */TOP
  280.  
  281. Double-clicking on the !Run file sets up the variable and starts the script.
  282.  
  283.  Display types
  284.  -------------
  285.   When loaded, a molecule is displayed in Wireframe mode. To change the
  286. display mode, bring up the main Menu by pressing the middle mouse button over
  287. the Molecule window. From the "Display" submenu you can choose your preferred
  288. display style from the following:
  289.  - Wireframe         - Ball&Stick
  290.  - Backbone          - Ribbons
  291.  - Sticks            - Strands
  292.  - Spacefill         - Cartoons
  293.  The default is Wireframe. This is also the fastest way of displaying the molecule.
  294. Use this style if you want to translate/rotate the molecule a lot, as these operations
  295. work in real time in Wireframe mode.
  296.  The sub-menu of "Wireframe" lets you to choose solid or dashed lines (the "dashed"
  297. item is a shortcut for the "wireframe dash" command).
  298.  The sub-menu of "Sticks" allows you to enter the thickness of the sticks. Pressing
  299. "Default" fills in the default value (which is 40, or 80 if the molecule has more than
  300. 256 atoms).
  301.  
  302.  For more details on these styles, type "help <display style>" on the RasMol
  303. command line.
  304.  
  305.  The View sub-menu and the "Dot surface" option
  306.  ----------------------------------------------
  307.   These are minor options like whether or not axes are to be displayed. The only
  308. really important item is "Dot surface" which displays a Van der Waal's dot surface
  309. around each atom. The density may be specified in the sub-menu, 100 is the default
  310. value, but you can enter values up to 1000. Note that the dot surface is actually
  311. calculated and stored in memory, so this option takes some computation time and
  312. also quite a bit of memory if the molecule is large. Using the "colour dots" command
  313. you can create some interesting effects, e.g. "colour dots potential" which colours
  314. the dots according to their electrostatic potential.
  315.  
  316.  Colours
  317.  -------
  318.   This submenu implements the RasMol "colour" command. For Wireframe, Sticks,
  319. Spacefill and Ball&Stick mode, you would normally use the CPK colouring which
  320. is chosen by default when a molecule is loaded. Choosing a menu item always
  321. sets the colour scheme for the whole of the molecule.
  322.   If you want to colour
  323. part of a molecule use the "select" and "colour" commands from the command
  324. line.
  325.   For details on the colour schemes listed on the menu, type "help <colour
  326. scheme>". Note that choosing "User" only makes sense if the currently loaded
  327. file is a PDB file which contains user-defined colour information.
  328.  
  329.  The RasMol Command Line
  330.  -----------------------
  331.   The Command Line window allows you to enter RasMol commands. These are described
  332. in the main RasMol manual. Typically, the menu entries only give a quicker way of
  333. accessing the most frequently needed command line features. Therefore most of the
  334. menu options are only described briefly in this RISC OS-specific file. For further
  335. information, use RasMol's command line help system. Entering "help" displays
  336. information about the help system.
  337.   It is worth noting that you need to use the command line to use the program
  338. to its full extent. For example, most menu options apply to the whole molecule,
  339. e.g. the display type or colour settings. Using the command line, however, it is
  340. possible to select parts of the molecule (e.g. all Hydrogen atoms or only specific
  341. amino acids) and apply display style or colouring commands to them. In fact, most
  342. RasMol commands only affect the current selection (type "help select" to find out
  343. how to select groups of atoms). Many commands take parameters which make them more
  344. versatile than their menu conterparts.
  345.   Other features include calculation and display of hydrogen bonds, SS-bonds,
  346. calculating connectivity information for molecule files without bonding etc.
  347.  
  348.  Additional file types
  349.  ---------------------
  350.   Files of the following types can only be loaded using the command line:
  351. Tripos' Sybyl Mol2 file format, the CHARMm file format and  MSC's XMol XYZ
  352. file format. To load these, type "load <format> <filename>" (where <format>
  353. is "mol2", "charmm" or "xyz" respectively) and press Return. Alternatively,
  354. type "load <format> " and drag the file to the Command Line window. Then
  355. press the Return key.
  356.  
  357.   Note that you can only have one file loaded at a time. If you try to load
  358. a file from the command line while there is a file in memory, you get an
  359. error message. If this happens, clear the database by entering "zap", then
  360. try again. If you load a file by dragging it to the program or by double-
  361. clicking on it, the database is cleared automatically before the file is
  362. loaded.
  363.  
  364.  Links to molecule databanks and WWW pages about RasMol
  365.  ------------------------------------------------------
  366. An enormous collection of proteins is available from the Brookhaven Protein
  367. Databank at www.pdb.bnl.gov. Other useful addresses:
  368.  
  369. The RasMol home page:        http://klaatu.oit.umass.edu:80/microbio/rasmol/
  370. This page contains lots of links to places to get molecule files from.
  371.  
  372. Okanagan University molecule files: http://www.okanagan.bc.ca/chem/molecule/
  373.  
  374.  How to contact the authors
  375.  --------------------------
  376.   Please direct any comments about the RISC OS version to me:
  377.    Martin Wuerthner
  378.    Jahnstrasse 18
  379.    71116 Gaerrtingen
  380.    Germany
  381.    wuerthne@trick.informatik.uni-stuttgart.de
  382.  
  383.   Please direct any non-RISC OS-specific comments about the program to
  384. Roger Sayle, because he really wrote the whole thing and all the credits
  385. are due to him:
  386.    Roger Sayle
  387.    ras32425@ggr.co.uk
  388.  
  389.  Copyright
  390.  ---------
  391.   This program, the RISC OS port of RasMol 2.6, may be distributed freely
  392. provided that all its files are supplied unaltered and no profit is made
  393. on its distribution. The implementation of the RISC OS specific features is
  394. Copyright ⌐ 1996 by Martin Wⁿrthner (wuerthne@trick.informatik.uni-stuttgart.de).
  395. The main part of the program is Copyright ⌐ 1992-94 by Roger Sayle.
  396.  
  397. For further copyright information refer to the following passage quoted from
  398. the RasMol manual:
  399.  
  400. QUOTE BEGINS
  401.  
  402.   This document and the software, RasMol Version 2.6 which it describes,
  403. are Copyright ⌐ 1992,1993,1994 by Roger Sayle (rasmol@ggr.co.uk).
  404.  
  405.   The information supplied in this document is believed to be true but no 
  406. liability is assumed for its use or for the infringements of the rights of 
  407. the others resulting from its use. 
  408.  
  409.   Information in this document is subject to change without notice and does 
  410. not represent a commitment on the part of the supplier. This package is 
  411. sold/distributed subject to the condition that it shall not, by way of trade 
  412. or otherwise, be lent, re-sold, hired out or otherwise circulated without 
  413. the supplier's prior consent, in any form of packaging or cover other than 
  414. that in which it was produced. No part of this manual or accompanying 
  415. software may be reproduced, stored in a retrieval system on optical or 
  416. magnetic disk, tape or any other medium, or transmitted in any form or by 
  417. any means, electronic, mechanical, photocopying, recording or otherwise for 
  418. any purpose other than the purchaser's personal use. 
  419.  
  420.   This product is not to be used in the planning, construction, maintenance, 
  421. operation or use of any nuclear facility nor the flight, navigation or 
  422. communication of aircraft or ground support equipment. The author shall not 
  423. be liable, in whole or in part, for any claims or damages arising from such 
  424. use, including death, bancruptcy or outbreak of war. 
  425.  
  426. QUOTE ENDS
  427.