45949fc03f15f5b5681223c1035ca0efb72d2e3a
[jalview.git] / help / html / editing / index.html
1 #-------------------------------------------------------------------------------
2 # Jalview - A Sequence Alignment Editor and Viewer (Version 2.5.1)
3 # Copyright (C) 2010 J Procter, AM Waterhouse, G Barton, M Clamp, S Searle
4
5 # This file is part of Jalview.
6
7 # Jalview is free software: you can redistribute it and/or
8 # modify it under the terms of the GNU General Public License 
9 # as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
10
11 # Jalview is distributed in the hope that it will be useful, but 
12 # WITHOUT ANY WARRANTY; without even the implied warranty 
13 # of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
14 # PURPOSE.  See the GNU General Public License for more details.
15
16 # You should have received a copy of the GNU General Public License along with Jalview.  If not, see <http://www.gnu.org/licenses/>.
17 #-------------------------------------------------------------------------------
18 <html>
19 <!--
20  * Jalview - A Sequence Alignment Editor and Viewer (Version 2.5)
21  * Copyright (C) 2010 J Procter, AM Waterhouse, G Barton, M Clamp, S Searle
22  * 
23  * This file is part of Jalview.
24  * 
25  * Jalview is free software: you can redistribute it and/or
26  * modify it under the terms of the GNU General Public License 
27  * as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
28  * 
29  * Jalview is distributed in the hope that it will be useful, but 
30  * WITHOUT ANY WARRANTY; without even the implied warranty 
31  * of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
32  * PURPOSE.  See the GNU General Public License for more details.
33  * 
34  * You should have received a copy of the GNU General Public License along with Jalview.  If not, see <http://www.gnu.org/licenses/>.
35 -->
36 <head><title>Editing</title></head>
37 <body>
38 <p><strong>Editing</strong></p>
39 <p>There are two major ways to edit alignments - in 'Normal mode',
40 gaps are inserted and deleted at the mouse pointer in various ways by
41 clicking the left mouse button and pressing a combination of either
42 shift and control (or the apple key on Macs) and dragging the mouse. Pressing
43 <em>F2</em> toggles the alternative <a href="../features/cursorMode.html">'Cursor
44 mode'</a> keyboard editing facility, where the space bar and delete 
45 keys add and remove gaps at the current editing position. The key
46 strokes for both these modes are summarised in the <a
47 href="../keys.html">keystrokes table</a>.</p>
48 <p><strong>Tip:</strong> For large alignments, deselect &quot;Calculate -&gt; 
49   Autocalculate Consensus&quot; to prevent the alignment performing lengthy calculations 
50   after every edit. </p>
51 <p><em>Inserting / removing gaps</em> - hold down the
52   &quot;Shift&quot; key. Click on a residue with the mouse and drag it
53   to the left or right to insert gaps and remove gaps.<br>
54   If the current selection is a group over all sequences in the
55   alignment, or a group over some sequences or all columns in the
56   alignment, then hold down either &quot;Control&quot; 
57   key and drag the residue left or right to edit all sequences in the defined 
58   group at once.</p>
59 <p><em>Copy/paste/cut/delete</em> - any sequences which are in the current selection
60   box (indicated in red) may be cut and / or copied to a new alignment or deleted.
61 </p>
62 <p><em>Undo / redo</em> - editing of sequences (insertion/removal of gaps, removal
63   of sequences, trimming sequences etc) may be undone or redone at any time using
64   the appropriate menu items from the edit menu. The undo history list only allows
65   a maximum of 10 actions.
66 <p><em>Trimming alignment</em> - First select a column by clicking the scale indicator
67   (above the sequences) The alignment may then be trimmed to the left or right
68   of this column. If multiple columns are selected, the alignment is trimmed to
69   the right of the rightmost selected column (or to the left of the leftmost selected
70   column)</p>
71 <p><em>Remove gapped columns</em> - Removes columns within the alignment which
72   contain only space characters (&quot;-&quot; or &quot;.&quot; or &quot; &quot;)</p>
73 <p><em>Removing gaps</em> - Removes all gaps from the alignment. Gaps are &quot;-&quot;
74   or &quot;.&quot; or &quot; &quot;.</p>
75 <p><em>Set gap character</em> - Switches the gap character between &quot;.&quot; 
76   and &quot;-&quot;. If the &quot;Render Gaps&quot; option from the &quot;View&quot; 
77   menu is unticked all gaps will appear as blank spaces.</p>
78 <p>&nbsp;</p>
79 <p><strong>Editing In Selection Areas</strong></p>
80 Editing can be restricted to the current selection area. 
81 This allows the user to &quot;Lock&quot; the alignment either side of the selection 
82 area. Any gap insertions or deletions will only affect the current selection area.
83 <p><img src="editing.jpg" width="428" height="186" align="top"></p>
84 <p>In this example, if Sequence IL2RA_MACMU has gaps removed from position 98-104, 
85   the same number of gaps will be inserted at position 116, (between M and L). 
86 </p>
87 <p><em>Locked selection area based editing was introduced in Jalview 2.08</em></p>
88 <p>&nbsp;</p>
89 </body>
90 </html>