Edit alignments

Move residues and gaps

The placement of gaps in the alignment can be changed by modifying the parameters when creating the alignment (see Create an alignment). However, gaps and residues can also be moved after the alignment is created:

        select one or more gaps or residues in the alignment | drag the selection to move

This can be done both for single sequences, but also for multiple sequences by making a selection covering more than one sequence. When you have made the selection, the mouse pointer turns into a horizontal arrow indicating that the selection can be moved (see figure 21.9).

Note! Residues can only be moved when they are next to a gap.

Image move
Figure 21.9: Moving a part of an alignment. Notice the change of mouse pointer to a horizontal arrow.


Insert gaps

The placement of gaps in the alignment can be changed by modifying the parameters when creating the alignment. However, gaps can also be added manually after the alignment is created.

To insert extra gaps:

        select a part of the alignment | right-click the selection | Add gaps before/after

If you have made a selection covering five residues for example, a gap of five will be inserted. In this way you can easily control the number of gaps to insert. Gaps will be inserted in the sequences that you selected. If you make a selection in two sequences in an alignment, gaps will be inserted into these two sequences. This means that these two sequences will be displaced compared to the other sequences in the alignment.


Delete residues and gaps

Residues or gaps can be deleted for individual sequences or for the whole alignment. For individual sequences:

        select the part of the sequence you want to delete | right-click the selection | Edit Selection (Image edit_selection) | Delete the text in the dialog | Replace

The selection shown in the dialog will be replaced by the text you enter. If you delete the text, the selection will be replaced by an empty text, i.e. deleted.

In order to delete entire columns:

        manually select the columns to delete | right-click the selection | click 'Delete Selection'


Copy annotations to other sequences

Annotations on one sequence can be transferred to other sequences in the alignment:

        right-click the annotation | Copy Annotation to other Sequences

This will display a dialog listing all the sequences in the alignment. Next to each sequence is a checkbox which is used for selecting which sequences the annotation should be copied to. Click Copy to copy the annotation.

If you wish to copy all annotations on the sequence, click the Copy All Annotations to other Sequences.

Copied/transferred annotations will contain the same qualifier text as the original, i.e., the text is not updated. As an example, if the annotation contains 'translation' as qualifier text, this translation will be copied to the new sequence and will thus reflect the translation of the original sequence, and not the new sequence which may differ.


Move sequences up and down

Sequences can be moved up and down in the alignment:

        drag the name of the sequence up or down

When you move the mouse pointer over the label, the pointer will turn into a vertical arrow indicating that the sequence can be moved.

The sequences can also be sorted automatically to let you save time moving the sequences around. To sort the sequences alphabetically:

        Right-click the name of a sequence | Sort Sequences Alphabetically

If you change the Sequence name (in the Sequence Layout view preferences), you will have to ask the program to sort the sequences again.

If you have one particular sequence that you would like to use as a reference sequence, it can be useful to move this to the top. This can be done manually, but it can also be done automatically:

        Right-click the name of a sequence | Move Sequence to Top

The sequences can also be sorted by similarity, grouping similar sequences together:

        Right-click the name of a sequence | Sort Sequences by Similarity

Delete, rename and add sequences

Sequences can be removed from the alignment by right-clicking the label of a sequence:

        right-click label | Delete Sequence

If you wish to delete several sequences, you can check all the sequences, right-click and choose Delete Marked Sequences. To show the checkboxes, you first have to click the Show Selection Boxes in the Side Panel.

A sequence can also be renamed:

        right-click label | Rename Sequence

This will show a dialog, letting you rename the sequence. This will not affect the sequence that the alignment is based on.

Extra sequences can be added to the alignment by creating a new alignment where you select the current alignment and the extra sequences (see Create alignments).

The same procedure can be used for joining two alignments.



Subsections