3 * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$)
4 * Copyright (C) $$Year-Rel$$ The Jalview Authors
6 * This file is part of Jalview.
8 * Jalview is free software: you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License
10 * as published by the Free Software Foundation, either version 3
11 * of the License, or (at your option) any later version.
13 * Jalview is distributed in the hope that it will be useful, but
14 * WITHOUT ANY WARRANTY; without even the implied warranty
15 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR
16 * PURPOSE. See the GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with Jalview. If not, see <http://www.gnu.org/licenses/>.
20 * The Jalview Authors are detailed in the 'AUTHORS' file.
23 <title>Sequence feature colour schemes</title>
28 <strong>Visualisation of Sequence Features</strong>
30 <p>Jalview can visualize sequence features - the positional
31 annotation present on parts of a sequence, as colours overlaid on
32 corresponding positions in the alignment. Features may be coloured
33 either according to their type, or for a particular type, according to
34 each feature's associated label, score, or other attributes.</p>
36 The <a href="featuresettings.html">Feature Settings dialog box</a>
37 controls the order and display of each feature type, and
38 also allows filters and colour schemes to be configured.
43 <img src="featureDisplaySettings.png" /><br />
44 <em>Feature Display Settings dialog for 'sequence_variant'
45 features imported from VCF</em>
47 <p>The Feature Display Settings has the following controls:
48 <p><strong>Colour</strong></p>
50 <li><em>Simple Colour</em> - select this to assign a given colour
51 to any features of this type. The assigned colour can be changed by
52 clicking on the colour box.</li>
53 <li><em>Colour by text</em> - this option derives a colour for
54 each feature based on its label, or any other attributes presented <em>via</em>
55 the drop-down menu.</li>
56 <li><em>Graduated Colour</em> - shade features according to
57 associated score, or other numeric attribute.
59 <li><em>Min and Max Color boxes</em> - Click on these boxes to
60 set the minimum and maximum colours for the shading scheme.</li>
61 <li><em>Threshold type combo box</em> - Specify an exclusion
62 threshold.<br />Set the threshold using the slider or
63 type it in to the text box. The threshold cannot be set outside
64 the available range of values observed for the selected attribute.</li>
65 <li><em>Threshold is Min/Max</em> - When checked, the threshold
66 will be used as the upper or lower limit for shading using the Min
71 <strong><em>Filters</em></strong><br /> Any number of filter
72 conditions may be specified to select features based on one or more
73 attributes. The <strong>join</strong> condition specifies whether all
74 filters must apply (<strong><em>And</em></strong>) or whether any one
75 filter must apply (<strong><em>Or</em></strong>) for a feature to be
78 <p>The filters available depend on the type of attribute:</p>
80 <li><strong>Numeric</strong> - specify a threshold above, equal
81 to or below which a feature will be selected or ignored.</li>
82 <li><strong>String</strong> - select or ignore features based on
83 presence, absence, equivalence, or containment of a string (not case sensitive).</li>
86 The filters and colour schemes active for a particular feature type
87 are shown in the <em>Colour</em> and <em>Configuration</em> columns in
88 the feature settings dialog. Styles and filters can be saved as a
89 Jalview Feature Colours file, and are also exported and imported via <a
90 href="featuresFormat.html">Jalview Feature files</a>.
93 <strong>Icon styles for feature rendering styles</strong><br />
96 When a graduated colour scheme is applied to a feature according to
97 the value of a particular attribute, it is indicated in the feature
98 settings or amend feature dialog box by the following types of icon:<br />
101 <table width="50%" border="1">
103 <td><strong>Type of Colouring</strong></td>
104 <td><strong>Icon</strong></td>
107 <td><em>Graduated colour by Feature Score</em></td>
108 <td><img src="fcsminmax.gif" /></td>
111 <td><em>Graduated colour thresholded (less than) by
112 feature Score (or other attribute)</em></td>
113 <td><img src="fcsltthan.gif" /></td>
116 <td><em>Graduated colour thresholded (greater than) by
117 feature Score (or other attribute)</em></td>
118 <td><img src="fcsgtthan.gif" /></td>
121 <td><em>Colour by Feature Label</em></td>
122 <td><img src="fcsntlabel.gif" /></td>
125 <td align="center" colspan="2"><em> <strong>The
126 current threshold and attribute is shown in the icon's tooltip.</strong>
132 <em>Graduated feature colours were introduced in Jalview 2.5.
133 Attribute based colouring and filters were added in Jalview 2.11.</em>