-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 1.18
-
Fix Version/s: 1.20
-
Component/s: Basic-MSA, Basic-Other
-
Story Points:5
-
Tests Type:GUI automatic
-
Sprint:DEV-10/11/2015
-
Affect Type:Userdefined
Current problem
Adding of a sequence into an alignment is not consistent in the current UGENE version. For example:
- When an amino acid sequence is added to an alignment with "Extended DNA" alphabet, the result alignment alphabet is amino acid.
- When an amino acid sequence is added to an alignment with "Standard DNA" alphabet, the result alphabet is "Raw".
So, it must be done more consistent and user-friendly as described below.
Required solution
Actions
Apply modification for the following actions:
- "Add > Sequence from file" item in the context menu is used.
- "Actions > Add > Sequence from file" item of the main menu is used.
- Drag'n'drop from the Project View is used.
- "Align sequence to this alignment" is clicked on the toolbar and MAFFT is set up.
- "Align sequence to this alignment" is clicked on the toolbar and MAFFT is NOT set up.
Rules for Switching Alphabets
UGENE supports seven alphabets for sequences and multiple alignments ("Standard DNA", "Extended DNA", etc.). The rules for switching between the alphabets on sequence adding to an alignment are described on the figure in the attachment. Each cell of the table on the figure is the intersection of the alignment alphabet (rows) and alphabet of the added sequence (columns). The value of a cell specifies the alphabet of the result alignment.
Use Cases
For each action, specified above, make sure that the following scenarios work properly in accordance with the alphabets switching rules.
Use case 1:
- Open an alignment with some alphabet.
- Do the action for a sequence of the same alphabet.
Expected state:- The sequence was added according to the action.
- There is NO notifications.
Use case 2:
- Open an alignment with some alphabet.
- Do the action for a sequence of another alphabet.
Expected state:- The sequence was added according to the action.
- A warning notification appears:
The alignment has been modified, so that its alphabet has been switched from "%1" to "%2". Use "Undo", if you'd like to restore the original alignment.
Here "%1" and "%2" are taken from values: "Standard DNA", "Extended DNA", "Standard RNA", "Extended RNA", "Standard amino acid", "Extended amino acid", "Raw".
- Undo the modifications.
Expected state:- The alignment has been reverted to the previous state.
- There is NO notifications.
Use case 3:
- Open an alignment with some alphabet.
- Do the action for a sequence of another alphabet.
Expected state: The warning notification appears. - Click "Undo".
Expected state: There is NO notifications. - Click "Redo".
Expected state: The warning notification appears again.
- relates to
-
UGENE-4719 Empty "Color" and "Highlighting" fields after changing of an alignment alphabet
- Closed
-
UGENE-4906 Incosistent alphabet deriving for alignments: pasting to MSA
- Closed
-
UGENE-4869 Strange behaviour of Similarity label.
- Closed
-
UGENE-4816 Replacing of characters in alignment
- Closed
-
UGENE-4834 Alphabets of visualized objects
- Closed
-
UGENE-4833 Incosistent alphabet deriving for alignments: remained use cases
- Closed