3 <head><title>The Alignment Annotations File</title></head>
\r
6 <p><strong>The Alignment Annotations File</strong></p>
\r
7 <p>Alignment annotations can be imported onto an alignment since
\r
8 version 2.08 of Jalview, via an annotations file. It is a simple
\r
9 ASCII text file consisting of tab
\r
10 delimited records similar to the <a
\r
11 href="featuresFormat.html">Sequence Features File</a>, and
\r
12 introduced primarily for use with the Jalview applet.</p>
\r
13 <p>Alignment annotations files are imported into Jalview in the
\r
16 <li>from the command line<strong><pre>
\r
17 -annotations <<em>Annotations filename</em>></pre></strong></li>
\r
18 <li>Dragging an annotations file onto an alignment window</li>
\r
19 <li>Via the "Load Features / Annotations" entry in the
\r
20 <strong>File</strong> menu of an alignment window.</li>
\r
23 <p><strong>Annotations File Format</strong></p>
\r
24 <p>The File consists of lines containing an instruction followed by
\r
25 tab delimited fields, and any lines starting with "#" are
\r
26 ignored. The first non-commented out line of a valid Annotations file must begin with :<strong><pre>JALVIEW_ANNOTATION</pre></strong></p>
\r
27 <p>A row of annotation is added with a line like
\r
28 <strong><pre><em>GRAPH_TYPE</em>	<em>Label</em>	<em>Values</em></pre></strong>
\r
30 <li><em>GRAPH_TYPE</em><br>This is can be either of "BAR_GRAPH",
\r
31 "LINE_GRAPH" or "NO_GRAPH", defining the type of
\r
32 annotation row that is being described.
\r
34 <li><em>Values</em><br>This field is a series
\r
35 of symbols and/or quantities separated by the pipe symbol "|",
\r
36 mapped onto the columns of the alignment.<br>Some types of annotation
\r
37 can display both text, symbols and quantities at each column, and these are
\r
38 separated with commas within the pipe-delimited Value field. Jalview
\r
39 will display the content if it's values are appropriate for the type
\r
40 of the annotation being defined:<ul>
\r
41 <li>BAR_GRAPH<br><em>text
\r
42 character</em>,<em>number</em></li>
\r
43 <li>LINE_GRAPH<br><em>number</em></li>
\r
44 <li>NO_GRAPH<br><em>text label</em>,<em>H or E for helix or strand
\r
45 symbol</em></li></ul>
\r
47 <p>You can associate an annotation with a sequence by preceding its
\r
48 definition with the line:
\r
49 <strong><pre>SEQUENCE_REF	<em>seq_name</em>	<em>[startIndex]</em></pre></strong>
\r
50 All Annotations defined after a SEQUENCE_REF command will then be
\r
51 associated with that sequence, and the first field in the Value
\r
52 field list will (optionally) be
\r
53 placed at the <em>startIndex</em>'th column.</p><p>Sequence associations
\r
54 are turned off for subsequent annotation definitions by:
\r
55 <strong><pre>SEQUENCE_REF	ALIGNMENT</pre></strong></p>
\r
56 <p><em>LINE_GRAPH</em> type annotations can be given a colour
\r
57 (specified as 24 bit RGB triplet in hexadecimal or comma separated values),
\r
58 combined onto the same vertical axis, and have ordinate lines (horizontal
\r
59 lines at a particular vertical axis value) using the following
\r
60 commands (respectively):
\r
61 <strong><pre>COLOUR	<em>graph_name</em>	<em>colour</em>
\r
62 COMBINE	<em>graph_1_name</em>	<em>graph_2_name</em>
\r
63 GRAPHLINE	<em>graph_name</em>	<em>value</em>	<em>label</em>	<em>colour</em></pre></strong>
\r
64 <p>An example Annotation file is given below:
\r
65 <pre>#Comment lines follow the hash symbol
\r
67 SEQUENCE_REF	FER1_MESCR	5
\r
68 BAR_GRAPH	Bar Graph 1	||-100,-|-200,-|-300,-|-400,-|200,+|300,+|150,+
\r
69 LINE_GRAPH	Green Values	1.1|2.2|1.3|3.4|0.7|1.4|3.3|2.2|2.1|-1.1|3.2
\r
70 LINE_GRAPH	Red Values	2.1|3.2|1.3|-1.4|5.5|1.4|1.3|4.2|-1.1|1.1|3.2
\r
71 BAR_GRAPH	Bar Graph	2 1,.|2,*|3,:|4,.|5,*|4,:|3,.|2|1|1|2|3|4|5|4
\r
72 NO_GRAPH	Icons 	||||E,Sheet1|E|E||||H,Sheet 2|H|H|H||||||
\r
73 NO_GRAPH	Purple Letters	m|y|p|r|o|t|e|i|n
\r
74 COLOUR	Bar Graph 2	blue
\r
75 COLOUR	Red Values	255,0,0
\r
76 COLOUR	Green Values	green
\r
77 COLOUR	Purple Letters	151,52,228
\r
78 COMBINE	Green Values	Red Values
\r
79 GRAPHLINE	Red Values	2.6	threshold	black
\r