JAL-1432 updated copyright notices
[jalview.git] / help / html / features / jmol.html
1 <html>
2 <!--
3  * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8.0b1)
4  * Copyright (C) 2014 The Jalview Authors
5  * 
6  * This file is part of Jalview.
7  * 
8  * Jalview is free software: you can redistribute it and/or
9  * modify it under the terms of the GNU General Public License 
10  * as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
11  *  
12  * Jalview is distributed in the hope that it will be useful, but 
13  * WITHOUT ANY WARRANTY; without even the implied warranty 
14  * of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
15  * PURPOSE.  See the GNU General Public License for more details.
16  * 
17  * You should have received a copy of the GNU General Public License along with Jalview.  If not, see <http://www.gnu.org/licenses/>.
18  * The Jalview Authors are detailed in the 'AUTHORS' file.
19 -->
20 <head>
21 <title>The Jmol PDB Viewer</title>
22 </head>
23 <body>
24 <p><strong>The Jmol PDB Viewer</strong></p>
25 <p>Since Jalview 2.3, <a href="http://jmol.sourceforge.net/">Jmol</a>
26 has been integrated into Jalview for interactively viewing structures
27 opened by selecting the <strong>&quot;Structure&#8594;View PDB
28 entry:&quot;</strong> option in the <a href="../menus/popupMenu.html">sequence
29 id pop-up menu</a> (if you can't see this, then you need to <a
30         href="viewingpdbs.html">associate a PDB structure</a> with the
31 sequence). Jmol is available from the Jalview desktop and should also
32 run in the JalviewLite applet, providing the browser supports Java 1.5.
33 If Jmol is not available, then the original <a href="pdbviewer.html">internal
34 pdb viewer</a> will be used as a fallback.</p>
35 <p><a name="align"><strong>Superposing structures based
36 on their aligned sequences</strong></a><br>
37 If several structures are available on the alignment, you may add
38 additional structures to an existing Jmol view by selecting their entry
39 in the appropriate pop-up menu. Jalview will ask you if you wish to add
40 the structure to the existing alignment, and if you do, it will import
41 and superimpose the new PDB file using the corresponding positions from
42 the alignment. If the alignment is subsequently edited, you can use the
43 <a href="#sAlign"><em>Jmol&#8594;Align</em></a> menu option from the
44 menu bar of the structure view window to superpose the structures using
45 the updated alignment.<br>
46 <em>Sequence based structure superposition was added in Jalview 2.6</em>
47 </p>
48 <p><strong>Controls</strong><br>
49 The structure is by default rendered as a ribbon diagram. Moving the
50 mouse over the structure brings up tooltips giving the residue name, PDB
51 residue number and chain code, atom name and number
52 ([RES]Num:Chain.AtomName#AtomNumber). If a mapping exists to a residue
53 in any associated sequences, then this will be highlighted in each one's
54 alignment window. The converse also occurs - moving the mouse over an
55 associated residue in an alignment window highlights the associated
56 atoms in the displayed structures.</p>
57 <p>Selecting a residue highlights its associated sequence residue
58 and alpha carbon location. Double clicking an atom allows distances to
59 be measured from it to any other atom in the structure.</p>
60 <p>
61 <table>
62         <tr>
63                 <td><strong>Action</strong></td>
64                 <td><strong>Windows</strong></td>
65                 <td><strong>Unix</strong></td>
66                 <td><strong>Mac/OSX</strong></td>
67         </tr>
68         <tr>
69                 <td>Rotate View</td>
70                 <td>Left Click and Drag</td>
71                 <td>Left Click and Drag</td>
72                 <td>Click and Drag</td>
73         </tr>
74         <tr>
75                 <td>Zoom</td>
76                 <td>Shift + Left Click<br>
77                 drag mouse up or down</td>
78                 <td>Shift + Left Click<br>
79                 or middle button<br>
80                 drag mouse up or down</td>
81                 <td>Left-Alt + Click and drag mouse up or down</td>
82         </tr>
83         <tr>
84                 <td>Select/<br>
85                 Deselect<br>
86                 Residue</td>
87                 <td>Left Click</td>
88                 <td>Left Click</td>
89                 <td>Click</td>
90         </tr>
91         <tr>
92                 <td>Roll View</td>
93                 <td>Shift + Left Click<br>
94                 drag mouse to left or right</td>
95                 <td>Shift + Left Click<br>
96                 or middle button<br>
97                 drag mouse to left or right</td>
98                 <td>Left-Alt + Click and drag mouse to left or right</td>
99         </tr>
100         <tr>
101                 <td>Move Origin</td>
102                 <td>Shift+Control+Left Click<br>
103                 or Middle Button<br>
104                 + Drag</td>
105                 <td>Middle-Button<br>
106                 and<br>
107                 drag</td>
108                 <td>Shift+Control+Left Click<br>
109                 or Middle Button<br>
110                 and drag</td>
111         </tr>
112         <tr>
113                 <td>Jmol Menu</td>
114                 <td>Right-Click</td>
115                 <td>Right-Click</td>
116                 <td>Apple-Click</td>
117         </tr>
118 </table>
119 </p>
120 <p>The window has up to five menus:
121 <ul>
122         <li><Strong>File<br>
123         </strong>
124         <ul>
125                 <li><strong>Save As<br>
126                 </strong><em>Save the displayed PDB File, or the current view as an EPS or
127                 PNG file.</em></li>
128                 <li><strong>View Mapping<br>
129                 </strong><em> Opens a text window showing the alignment between the
130                 residues corresponding to alpha-carbon atoms in the PDB structure and
131                 the residues in the associated sequence.</em></li>
132         </ul>
133         </li>
134         <li><strong>View</strong>
135         <ul>
136                 <li><strong>Show Chains<br>
137                 </strong><em>Select which of the PDB file's chains are to be displayed.</em></li>
138                 <li><strong>Colour by ..<br></strong><em>Submenu allowing specific alignment views to be selected for colouring associated chains in the structure display. This menu contains all the alignment views associated with the structure view, with those used to colour the view indicated by ticks. Addditionally, it contains the following menu entries:</em>
139                 <ul><li><strong>Select many views<br></strong><em>When this option is enabled, selecting an alignment view adds it to the set used to colour the structures. Use this when colouring structures related to a number of alignments involving different domains or chains which are shown in the same structure view.</em>
140                 </li>
141     <li><strong>Select all views<br></strong><em>This is only enabled when </em><strong>Select many views</strong><em> is also enabled, and will add all associated views to the set used to colour the structure display.</em>
142   </li>
143     <li><strong>Invert selection<br></strong><em>This is only enabled when </em><strong>Select many views</strong><em> is also enabled, and will replace the current set of views with any remaining views not currently used to colour the structure display.</em>
144   </li></ul></li>
145         <li><strong>Colours<br>
146         </strong>
147         <ul>
148                 <li><strong>By Sequence<br>
149                 </strong><em> Colours each residue in the structure with the colour of its
150                 corresponding residue in the associated sequence as rendered in the
151                 associated alignment views, including any Uniprot sequence features or
152                 region colourings.<br/>Pick which of the associated alignment views are used to colour the structures using the <strong>View&#8594;Colour by ..</strong> sub menu.</em><br>
153                 Residues which only exist in the PDB structure are coloured white if
154                 they are insertions (relative to the associated sequence in the
155                 alignment) and grey if they are N or C terminal flanks outside the
156                 region mapped to the alignment window's sequence.</em></li>
157                 <li><strong>By Chain<br>
158                 </strong><em> Assigns a random colour to each PDB chain.</em>
159                 <li><strong>Charge &amp; Cysteine<br>
160                 </strong><em> Highlights cysteines in yellow, anionic (Aspartic Acid or
161                 Glutamic Acid) residues in red, and cationic (Lysine or Arginine)
162                 residues in blue.</em></li>
163                 <li><strong>Colour with Jmol<br></strong><em>Defers any colouring operations to Jmol. Select this if you want to use the Jmol scripting interface or menu to modify the view directly.</em></li>
164                 <li><strong>Standard and User Defined Jalview
165                 colourschemes.<br>
166                 </strong><em>The remaining entries apply the colourschemes available from
167                 the standard and user defined <a href="../colourSchemes/index.html">amino
168                 acid colours</a>.</em></li>
169         </ul>
170         </li>
171         <li><strong>Jmol<br>
172         </strong><em>This pulldown menu is only displayed if there are multiple
173         structures shown in the Jmol window, and Jalview can also locate at
174         least two of the structures in the currently associated alignment view.</em>
175         <ul>
176                 <li><strong><a name="sAlign">Align</a> <br>
177                 </strong><em> When selected, the associated alignment will be used to
178                 superimpose all the structures in the view onto the first structure in
179                 the alignment. The regions used to calculate the superposition will be
180                 highlighted using the 'Cartoon' rendering style, and the remaining
181                 data shown as a chain trace.<br>
182                 (This option was introduced in Jalview 2.6)</em></li>
183         </ul>
184         </li>
185         <li><strong>Help<br>
186         </strong>
187         <ul>
188                 <li><strong>Jmol Help<br>
189                 </strong><em>Access the Jmol Help documentation in a new browser window.</em></li>
190         </ul>
191         </li>
192 </ul>
193 </p>
194 <p><strong>Functionality provided by Jmol</strong></p>
195 <p>Jmol's own functions are accessed by clicking the 'Jmol' logo or
196 right-clicking in the structure display area. Either way will open the
197 Jmol pop-up menu, which provides access to a number of features for
198 controlling the colour and display of molecules, adding measurements and
199 labels, plotting surfaces, and display animation. The 'Set Picking' menu
200 controls the behaviour of single and double mouse clicking on the
201 structure, and the 'Console' option opens the Jmol scripting console.</p>
202 <p>The state of each Jmol display is stored within <a
203         href="jalarchive.html">jalview archives</a> as a Jmol state recovery
204 script file. This means that any Jmol visualization effects that you add
205 beyond those provided by Jalview will be able to be stored and recovered
206 along with the displayed alignments in Jalview.</p>
207 <p><strong>More Information</strong></p>
208 <p>Jmol is a sophisticated program in its own right, with its own
209 command console and scripting language. Only the essentials have been
210 described here - the interested reader is referred to <a
211         href="http://jmol.sourceforge.net/docs/">Jmol's own comprehensive
212 online documentation</a>.</p>
213 </p>
214 </body>
215 </html>