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