2.2 documentation
[jalview.git] / help / html / editing / index.html
1 <html>
2 <head><title>Editing</title></head>
3 <body>
4 <p><strong>Editing</strong></p>
5 <p>There are two major ways to edit alignments - in 'Normal mode',
6 gaps are inserted and deleted at the mouse pointer in various ways by
7 clicking the left mouse button and pressing a combination of either
8 shift and control (or the apple key on Macs) and dragging the mouse. Pressing
9 <em>F2</em> toggles the alternative <a href="../features/cursorMode.html">'Cursor
10 mode'</a> keyboard editing facility, where the space bar and delete 
11 keys add and remove gaps at the current editing position. The key
12 strokes for both these modes are summarised in the <a
13 href="../keys.html">keystrokes table</a>.</p>
14 <p><strong>Tip:</strong> For large alignments, deselect &quot;Calculate -&gt; 
15   Autocalculate Consensus&quot; to prevent the alignment performing lengthy calculations 
16   after every edit. </p>
17 <p><em>Inserting / removing gaps</em> - hold down the
18   &quot;Shift&quot; key. Click on a residue with the mouse and drag it
19   to the left or right to insert gaps and remove gaps.<br>
20   If the current selection is a group over all sequences in the
21   alignment, or a group over some sequences or all columns in the
22   alignment, then hold down either &quot;Control&quot; 
23   key and drag the residue left or right to edit all sequences in the defined 
24   group at once.</p>
25 <p><em>Copy/paste/cut/delete</em> - any sequences which are in the current selection
26   box (indicated in red) may be cut and / or copied to a new alignment or deleted.
27 </p>
28 <p><em>Undo / redo</em> - editing of sequences (insertion/removal of gaps, removal
29   of sequences, trimming sequences etc) may be undone or redone at any time using
30   the appropriate menu items from the edit menu. The undo history list only allows
31   a maximum of 10 actions.
32 <p><em>Trimming alignment</em> - First select a column by clicking the scale indicator
33   (above the sequences) The alignment may then be trimmed to the left or right
34   of this column. If multiple columns are selected, the alignment is trimmed to
35   the right of the rightmost selected column (or to the left of the leftmost selected
36   column)</p>
37 <p><em>Remove gapped columns</em> - Removes columns within the alignment which
38   contain only space characters (&quot;-&quot; or &quot;.&quot; or &quot; &quot;)</p>
39 <p><em>Removing gaps</em> - Removes all gaps from the alignment. Gaps are &quot;-&quot;
40   or &quot;.&quot; or &quot; &quot;.</p>
41 <p><em>Set gap character</em> - Switches the gap character between &quot;.&quot; 
42   and &quot;-&quot;. If the &quot;Render Gaps&quot; option from the &quot;View&quot; 
43   menu is unticked all gaps will appear as blank spaces.</p>
44 <p>&nbsp;</p>
45 <p><strong>Editing In Selection Areas</strong></p>
46 Editing can be restricted to the current selection area. 
47 This allows the user to &quot;Lock&quot; the alignment either side of the selection 
48 area. Any gap insertions or deletions will only affect the current selection area.
49 <p><img src="editing.jpg" width="428" height="186" align="top"></p>
50 <p>In this example, if Sequence IL2RA_MACMU has gaps removed from position 98-104, 
51   the same number of gaps will be inserted at position 116, (between M and L). 
52 </p>
53 <p><em>Locked selection area based editing was introduced in Jalview 2.08</em></p>
54 <p>&nbsp;</p>
55 </body>
56 </html>