| 1 |
.TH "esl\-ssdraw" 1 "@EASEL_DATE@" "Easel @EASEL_VERSION@" "Easel Manual" |
| 2 |
|
| 3 |
.SH NAME |
| 4 |
esl\-ssdraw \- create postscript secondary structure diagrams |
| 5 |
|
| 6 |
.SH SYNOPSIS |
| 7 |
.B esl\-ssdraw |
| 8 |
[\fIoptions\fR] |
| 9 |
.I msafile |
| 10 |
.I postscript_template |
| 11 |
.I postscript_output_file |
| 12 |
|
| 13 |
.SH DESCRIPTION |
| 14 |
|
| 15 |
.PP |
| 16 |
.B esl\-ssdraw |
| 17 |
reads an existing template consensus secondary structure diagram from |
| 18 |
.I postscript_template |
| 19 |
and creates new postscript diagrams including the template structure |
| 20 |
but with positions colored differently based on alignment statistics |
| 21 |
such as frequency of gaps per position, average posterior probability |
| 22 |
per position or information content per position. Additionally, all |
| 23 |
or some of the aligned sequences can be drawn separately, with |
| 24 |
nucleotides or posterior probabilities mapped onto the corresponding |
| 25 |
positions of the consensus structure. |
| 26 |
|
| 27 |
.PP |
| 28 |
The alignment must be in Stockholm format with per-column reference |
| 29 |
annotation (#=GC RF). The sequences in the alignment must be RNA or |
| 30 |
DNA sequences. The |
| 31 |
.I postscript_template |
| 32 |
file must contain one page that includes <rflen> consensus nucleotides |
| 33 |
(positions), where <rflen> is the number of nongap characters in the |
| 34 |
reference (RF) annotation of the first alignment in |
| 35 |
.IR msafile . |
| 36 |
The specific format required in the |
| 37 |
.I postscript_template |
| 38 |
is described below in the INPUT section. |
| 39 |
Postscript diagrams will only be created for the first alignment in |
| 40 |
.IR msafile . |
| 41 |
|
| 42 |
|
| 43 |
.SH OUTPUT |
| 44 |
|
| 45 |
.PP |
| 46 |
By default (if run with zero command line options), |
| 47 |
.B esl\-ssdraw |
| 48 |
will create a six or seven page |
| 49 |
.IR postscript_output_file , |
| 50 |
with each page displaying a different alignment statistic. These pages display |
| 51 |
the alignment consensus sequence, information content per position, |
| 52 |
mutual information per position, frequency of inserts per position, |
| 53 |
average length of inserts per position, frequency of |
| 54 |
deletions (gaps) per position, and average posterior probability per |
| 55 |
position (if posterior probabilites exist in the alignment) |
| 56 |
If |
| 57 |
.B \-d |
| 58 |
is enabled, all of these pages plus additional ones, such as |
| 59 |
individual sequences (see discussion of |
| 60 |
.B \-\-indi |
| 61 |
below) will be drawn. |
| 62 |
These pages can be selected to be drawn individually by using |
| 63 |
the command line options |
| 64 |
.BR \-\-cons , |
| 65 |
.BR \-\-info , |
| 66 |
.BR \-\-mutinfo , |
| 67 |
.BR \-\-ifreq , |
| 68 |
.BR \-\-iavglen , |
| 69 |
.BR \-\-dall , |
| 70 |
and |
| 71 |
.BR \-\-prob . |
| 72 |
The calculation of the statistics for each of these options is |
| 73 |
discussed below in the description for each option. |
| 74 |
Importantly, only so-called 'consensus' positions of the alignment |
| 75 |
will be drawn. A consensus position is one that is a nongap nucleotide in |
| 76 |
the 'reference' annotation of the Stockholm alignment (#=GC RF) read |
| 77 |
from |
| 78 |
.IR msafile . |
| 79 |
|
| 80 |
.PP |
| 81 |
By default, a consensus sequence for the input alignment will be |
| 82 |
calculated and displayed on the alignment statistic diagrams. The |
| 83 |
consensus sequence is defined as the most common nucleotide at each |
| 84 |
consensus position of the alignment. The consensus sequence will not |
| 85 |
be displayed if the |
| 86 |
.B \-\-no\-cnt |
| 87 |
option is used. The |
| 88 |
.BR \-\-cthresh , |
| 89 |
.BR \-\-cambig , |
| 90 |
and |
| 91 |
.B \-\-athresh |
| 92 |
options affect the definition of the consensus sequence as |
| 93 |
explained below in the descriptions for those options. |
| 94 |
|
| 95 |
.PP |
| 96 |
If the |
| 97 |
.BI \-\-tabfile " <f>" |
| 98 |
option is used, a tab-delimited text file |
| 99 |
.I <f> |
| 100 |
will be created that includes per-position lists of the numerical |
| 101 |
values for each of the calculated statistics that were drawn to |
| 102 |
.IR postscript_output_file . |
| 103 |
Comment lines in |
| 104 |
.I <f> |
| 105 |
are prefixed with a '#' character and explain the meaning of |
| 106 |
each of the tab-delimited columns and how each of the statistics was |
| 107 |
calculated. |
| 108 |
|
| 109 |
If |
| 110 |
.B \-\-indi |
| 111 |
is used, |
| 112 |
.B esl\-ssdraw |
| 113 |
will create diagrams showing each sequence in the alignment on a |
| 114 |
separate page, with aligned nucleotides in their corresponding |
| 115 |
position in the structure diagram. By default, basepaired nucleotides |
| 116 |
will be colored based on their basepair type: either Watson-Crick |
| 117 |
(A:U, U:A, C:G, or G:C), G:U or U:G, or non-canonical (the other ten |
| 118 |
possible basepairs). This coloring can be turned off with the |
| 119 |
.B \-\-no\-bp |
| 120 |
option. |
| 121 |
Also by default, nucleotides that differ from the most common |
| 122 |
nucleotide at each aligned consensus position will be outlined. If |
| 123 |
the most common nucleotide occurs in more than 75% of sequences that |
| 124 |
do not have a gap at that position, the outline will be |
| 125 |
bold. Outlining can be turned off with the |
| 126 |
.B \-\-no\-ol |
| 127 |
option. |
| 128 |
|
| 129 |
.PP |
| 130 |
With |
| 131 |
.BR \-\-indi , |
| 132 |
if the alignment |
| 133 |
contains posterior probability annotation (#=GR PP), the |
| 134 |
.I postscript_output_file |
| 135 |
will contain an additional page for each sequence drawn with positions |
| 136 |
colored by the posterior probability of each aligned nucleotide. |
| 137 |
No posterior probability pages will be drawn if the |
| 138 |
.B \-\-no\-pp |
| 139 |
option is used. |
| 140 |
|
| 141 |
.PP |
| 142 |
.B esl\-ssdraw |
| 143 |
can also be used to draw 'mask' diagrams which color positions of the |
| 144 |
structure one of two colors depending on if they are included or |
| 145 |
excluded by a mask. This is enabled with the |
| 146 |
.BI \-\-mask\-col " <f>" |
| 147 |
option. |
| 148 |
.I <f> |
| 149 |
must contain a single line of <rflen> characters, where <rflen> is the |
| 150 |
the number of nongap RF characters in the alignment. The line must |
| 151 |
contain only '0' and '1' characters. A '0' at position <x> of the |
| 152 |
string indicates position <x> is excluded from the mask, and a '1' |
| 153 |
indicates position <x> is included by the mask. |
| 154 |
A page comparing the overlap of the |
| 155 |
.I <f> |
| 156 |
mask from |
| 157 |
.B \-\-mask\-col |
| 158 |
and another mask in |
| 159 |
.I <f2> |
| 160 |
will be created if the |
| 161 |
.BI \-\-mask\-diff " <f2>" |
| 162 |
option is used. |
| 163 |
|
| 164 |
.PP |
| 165 |
If the |
| 166 |
.BI \-\-mask " <f>" |
| 167 |
option is used, positions excluded by the mask in |
| 168 |
.I <f> |
| 169 |
will be drawn differently (as open circles by default) than positions |
| 170 |
included by the mask. The style of the masked positions can be |
| 171 |
modified with the |
| 172 |
.BR \-\-mask\-u , |
| 173 |
.BR \-\-mask\-x , |
| 174 |
and |
| 175 |
.B \-\-mask\-a |
| 176 |
options. |
| 177 |
|
| 178 |
.PP |
| 179 |
Finally, two different types of input files can be used to customize |
| 180 |
output diagrams using the |
| 181 |
.B \-\-dfile |
| 182 |
and |
| 183 |
.B \-\-efile |
| 184 |
options, as described below. |
| 185 |
|
| 186 |
|
| 187 |
|
| 188 |
.SH INPUT |
| 189 |
|
| 190 |
.PP |
| 191 |
The |
| 192 |
.I postscript_template_file |
| 193 |
is a postscript file that must be in a very specific format in order for |
| 194 |
.B esl\-ssdraw |
| 195 |
to work. The specifics of the format, described below, are likely to change in future |
| 196 |
versions of |
| 197 |
.BR esl\-ssdraw . |
| 198 |
The |
| 199 |
.I postscript_output_file |
| 200 |
files generated by |
| 201 |
.B esl\-ssdraw |
| 202 |
will not be valid |
| 203 |
.I postscript_template_file |
| 204 |
format (i.e. an output file from |
| 205 |
.B esl\-ssdraw |
| 206 |
cannot be used as an |
| 207 |
.I postscript_template_file |
| 208 |
in a subsequent run of the program). |
| 209 |
|
| 210 |
.PP |
| 211 |
An example |
| 212 |
.I postscript_template_file |
| 213 |
('trna\-ssdraw.ps') is included with the Easel distribution in |
| 214 |
the 'testsuite/' subdirectory of the top-level 'easel' directory. |
| 215 |
|
| 216 |
.PP |
| 217 |
The |
| 218 |
.I postscript_template_file |
| 219 |
is a valid postscript file. It includes postscript commands for |
| 220 |
drawing a secondary structure. The commands specify x and y |
| 221 |
coordinates for placing each nucleotide on the page. The |
| 222 |
.I postscript_template_file |
| 223 |
might also contain commands for drawing lines connecting basepaired |
| 224 |
positions and tick marks indicating every tenth position, though these |
| 225 |
are not required, as explained below. |
| 226 |
|
| 227 |
.PP |
| 228 |
If you are unfamiliar with the postscript language, it may be useful |
| 229 |
for you to know that a postscript page is, by default, 612 points wide |
| 230 |
and 792 points tall. |
| 231 |
The (0,0) coordinate of a postscript |
| 232 |
file is at the bottom left corner of the page, (0,792) is the top left, |
| 233 |
(612,0) is the bottom right, and (612,792) is the top right. |
| 234 |
.B esl\-ssdraw |
| 235 |
uses 8 point by 8 point cells for drawing positions of the consensus |
| 236 |
secondary structure. The 'scale' section of the |
| 237 |
.I postscript_template_file |
| 238 |
allows for different 'zoom levels', as described below. |
| 239 |
Also, it is important to know that postscript lines beginning with '%' |
| 240 |
are considered comments and do not include postscript commands. |
| 241 |
|
| 242 |
.PP |
| 243 |
An |
| 244 |
.B esl\-ssdraw |
| 245 |
.I postscript_template_file |
| 246 |
contains n >= 1 pages, each specifying a consensus secondary structure |
| 247 |
diagram. Each page is delimited by a 'showpage' line in an 'ignore' |
| 248 |
section (as described below). |
| 249 |
.B esl\-ssdraw |
| 250 |
will read all pages of the |
| 251 |
.I postscript_template_file |
| 252 |
and then choose the appropriate one that corresponds with the |
| 253 |
alignment in |
| 254 |
.I msafile |
| 255 |
based on the consensus (nongap RF) length of the alignment. |
| 256 |
For an alignment of consensus length <rflen>, the first |
| 257 |
page of |
| 258 |
.I postscript_template_file |
| 259 |
that has a structure diagram with consensus length <rflen> will be used |
| 260 |
as the template structure for the alignment. |
| 261 |
|
| 262 |
.PP |
| 263 |
Each page of |
| 264 |
.I postscript_template_file |
| 265 |
contains blocks of text organized into seven different possible |
| 266 |
sections. Each section must begin with a single line '% begin |
| 267 |
<sectionname>' and end with a single line '% end <sectionname>' and |
| 268 |
have n >= 1 lines in between. On the begin and end lines, there must |
| 269 |
be at least one space between the '%' and the 'begin' |
| 270 |
or 'end'. <sectionname> must be one of the |
| 271 |
following: 'modelname', 'legend', 'scale', 'regurgitate', 'ignore', 'text |
| 272 |
positiontext', 'text nucleotides', 'lines positionticks', or 'lines |
| 273 |
bpconnects'. The n >=1 lines in between the begin and end lines of |
| 274 |
each section must be in a specific format that differs for each |
| 275 |
section as described below. |
| 276 |
|
| 277 |
.PP |
| 278 |
Importantly, each page must end with an 'ignore' section that includes |
| 279 |
a single line 'showpage' between the begin and end lines. This |
| 280 |
lets |
| 281 |
.B esl\-ssdraw |
| 282 |
know that a page has ended and another might follow. |
| 283 |
|
| 284 |
.PP |
| 285 |
Each page of a |
| 286 |
.I postscript_template_file |
| 287 |
must include a single 'modelname' section. |
| 288 |
This section must include exactly one line in between its |
| 289 |
begin and end lines. This line must begin with a '%' character |
| 290 |
followed by a single space. The remainder of the line will be parsed |
| 291 |
as the model name and will appear on each page of |
| 292 |
.B postscript_output_file |
| 293 |
in the header section. If the name is more than 16 characters, it will |
| 294 |
be truncated in the output. |
| 295 |
|
| 296 |
.PP |
| 297 |
Each page of a |
| 298 |
.I postscript_template_file |
| 299 |
must include a single 'legend' section. This section must include |
| 300 |
exactly one line in between its begin and end lines. This line must be |
| 301 |
formatted as '% <d1> <f1> <f2> <d2> <f3>', where <d1> is an integer |
| 302 |
specifying the consensus position with relation to which the legend |
| 303 |
will be placed; <f1> and <f2> specify the x and y axis offsets for the |
| 304 |
top left corner of the legend relative to the x and y position of |
| 305 |
consensus position <d1>; <d2> specifies the size of a cell in the |
| 306 |
legend and <f3> specifies how many extra points should be between the |
| 307 |
right hand edge of the legend and the end of the page. the offset of |
| 308 |
the right hand end of the legend . For example, the line '% 34 |
| 309 |
\-40. \-30. 12 0.' specfies that the legend be placed 40 points to the left |
| 310 |
and 30 points below the 34th consensus position, that cells |
| 311 |
appearing in the legend be squares of size 12 points by 12 points, and |
| 312 |
that the right hand side of the legend flush against the right hand |
| 313 |
edge of the printable page. |
| 314 |
|
| 315 |
.PP |
| 316 |
Each page of a |
| 317 |
.I postscript_template_file |
| 318 |
must include a single 'scale' section. This section must include |
| 319 |
exactly one line in between its begin and end lines. This line must be |
| 320 |
formatted as '<f1> <f2> scale', where <f1> and <f2> are both positive |
| 321 |
real numbers that are identical, for example '1.7 1.7 scale' is valid, |
| 322 |
but '1.7 2.7 scale' is not. This line is a valid postscript command |
| 323 |
which specifies the scale or zoom level on the pages in the output. If |
| 324 |
<f1> and <f2> are '1.0' the default scale is used for which the total |
| 325 |
size of the page is 612 points wide and 792 points tall. A scale of |
| 326 |
2.0 will reduce this to 306 points wide by 396 points tall. A scale of |
| 327 |
0.5 will increase it to 1224 points wide by 1584 points tall. A single |
| 328 |
cell corresponding to one position of the secondary structure is 8 |
| 329 |
points by 8 points. For larger RNAs, a scale of less than 1.0 is |
| 330 |
appropriate (for example, SSU rRNA models (about 1500 nt) use a scale |
| 331 |
of about 0.6), and for smaller RNAs, a scale of more than 1.0 might be |
| 332 |
desirable (tRNA (about 70 nt) uses a scale of 1.7). The best way to |
| 333 |
determine the exact scale to use is trial and error. |
| 334 |
|
| 335 |
.PP |
| 336 |
Each page of a |
| 337 |
.I postscript_template_file |
| 338 |
can include n >= 0 'regurgitate' sections. |
| 339 |
These sections can include any number of lines. |
| 340 |
The text in this section will not be parsed by |
| 341 |
.B esl\-ssdraw |
| 342 |
but will be included in each page of |
| 343 |
.I postscript_output_file. |
| 344 |
The format of the lines in this section must therefore be valid |
| 345 |
postscript commands. An example of content that might be in a |
| 346 |
regurgitate section are commands to draw lines and text annotating the |
| 347 |
anticodon on a tRNA secondary structure diagram. |
| 348 |
|
| 349 |
.PP |
| 350 |
Each page of a |
| 351 |
.I postscript_template_file |
| 352 |
must include at least 1 'ignore' section. |
| 353 |
One of these sections must include a single line that |
| 354 |
reads 'showpage'. This section should be placed at the end of each |
| 355 |
page of the template file. |
| 356 |
Other ignore sections can include any number of lines. |
| 357 |
The text in these section will not be parsed by |
| 358 |
.B esl\-ssdraw |
| 359 |
nor will it be included in each page of |
| 360 |
.IR postscript_output_file . |
| 361 |
An ignore section can contain comments or postscript commands that |
| 362 |
draw features of the |
| 363 |
.I postscript_template_file |
| 364 |
that are |
| 365 |
unwanted in the |
| 366 |
.IR postscript_output_file . |
| 367 |
|
| 368 |
.PP |
| 369 |
Each page of a |
| 370 |
.I postscript_template_file |
| 371 |
must include a single 'text nucleotides' section. This section must |
| 372 |
include exactly <rflen> lines, indicating that the consensus secondary |
| 373 |
structure has exactly <rflen> nucleotide positions. Each line must be of |
| 374 |
the format '(<c>) <x> <y> moveto show' where <c> is a nucleotide (this |
| 375 |
can be any character actually), and <x> and <y> are the coordinates |
| 376 |
specifying the location of the nucleotide on the page, they should be |
| 377 |
positive real numbers. The best way to determine what these |
| 378 |
coordinates should be is manually by trial and error, by inspecting |
| 379 |
the resulting structure as you add each nucleotide. Note that |
| 380 |
.B esl\-ssdraw |
| 381 |
will color an 8 point by 8 point cell for each position, so nucleotides |
| 382 |
should be placed about 8 points apart from each other. |
| 383 |
|
| 384 |
.PP |
| 385 |
Each page of a |
| 386 |
.I postscript_template_file |
| 387 |
may or may not include a single 'text positiontext' section. This section |
| 388 |
can include n >= 1 lines, each specifying text to be placed next to |
| 389 |
specific positions of the structure, for example, to number them. |
| 390 |
Each line must be of |
| 391 |
the format '(<s>) <x> <y> moveto show' where <s> is a string of text |
| 392 |
to place at coordinates (<x>,<y>) of the postscript page. |
| 393 |
Currently, the best way to determine what these coordinates is |
| 394 |
manually by trial |
| 395 |
and error, by inspecting the resulting diagram as you add |
| 396 |
each line. |
| 397 |
|
| 398 |
.PP |
| 399 |
Each page of a |
| 400 |
.I postscript_template_file |
| 401 |
may or may not include a single 'lines positionticks' section. This section |
| 402 |
can include n >= 1 lines, each specifying the location of a tick mark |
| 403 |
on the diagram. Each line must be of |
| 404 |
the format '<x1> <y1> <x2> <y2> moveto show'. A tick mark (line of |
| 405 |
width 2.0) will be drawn from point (<x1>,<y1>) to point (<x2>,<y2>) |
| 406 |
on each page of |
| 407 |
.I postscript_output_file. |
| 408 |
Currently, the best way to determine what these coordinates should be |
| 409 |
is manually by trial and error, by inspecting the resulting diagram as |
| 410 |
you add each line. |
| 411 |
|
| 412 |
.PP |
| 413 |
Each page of a |
| 414 |
.I postscript_template_file |
| 415 |
may or may not include a single 'lines bpconnects' section. This section |
| 416 |
must include <nbp> lines, where <nbp> is the number of basepairs in |
| 417 |
the consensus structure of the input |
| 418 |
.I msafile |
| 419 |
annotated as #=GC SS_cons. Each line should connect two basepaired |
| 420 |
positions in the consensus structure diagram. |
| 421 |
Each line must be of |
| 422 |
the format '<x1> <y1> <x2> <y2> moveto show'. A line |
| 423 |
will be drawn from point (<x1>,<y1>) to point (<x2>,<y2>) |
| 424 |
on each page of |
| 425 |
.I postscript_output_file. |
| 426 |
Currently, the best way to determine what these coordinates should be |
| 427 |
is manually by trial and error, by inspecting the resulting diagram as |
| 428 |
you add each line. |
| 429 |
|
| 430 |
|
| 431 |
|
| 432 |
.SH REQUIRED MEMORY |
| 433 |
|
| 434 |
.PP |
| 435 |
The memory required by |
| 436 |
.B esl\-ssdraw |
| 437 |
will be equal to roughly the larger of 2 Mb and |
| 438 |
the size of the first alignment in |
| 439 |
.IR msafile . |
| 440 |
If the |
| 441 |
.B \-\-small |
| 442 |
option is used, the memory required will be independent of the |
| 443 |
alignment size. To use |
| 444 |
.B \-\-small |
| 445 |
the alignment must be in Pfam format, a non-interleaved (1 line/seq) |
| 446 |
version of Stockholm format. |
| 447 |
|
| 448 |
If the |
| 449 |
.B \-\-indi |
| 450 |
option is used, |
| 451 |
the required memory may exceed the |
| 452 |
size of the alignment by up to ten-fold, and the output |
| 453 |
.B postscript_output_file |
| 454 |
may be up to 50 times larger than the |
| 455 |
.B msafile. |
| 456 |
|
| 457 |
.SH OPTIONS |
| 458 |
|
| 459 |
.TP |
| 460 |
.B \-h |
| 461 |
Print brief help; includes version number and summary of |
| 462 |
all options, including expert options. |
| 463 |
|
| 464 |
.TP |
| 465 |
.B \-d |
| 466 |
Draw the default set of alignment summary diagrams: consensus |
| 467 |
sequence, information content, mutual information, insert frequency, |
| 468 |
average insert length, deletion frequency, and average posterior |
| 469 |
probability (if posterior probability annotation exists in the |
| 470 |
alignment). These diagrams are also drawn by default (if zero command line |
| 471 |
options are used), but using the |
| 472 |
.B \-d |
| 473 |
option allows the user to add additional pages, such as individual |
| 474 |
aligned sequences with |
| 475 |
.BR \-\-indi . |
| 476 |
|
| 477 |
.TP |
| 478 |
.BI \-\-mask " <f>" |
| 479 |
Read the mask from file |
| 480 |
.IR <f> , |
| 481 |
and draw positions differently in |
| 482 |
.I postscript_output_file |
| 483 |
depending on whether they are included or excluded by the mask. |
| 484 |
.I <f> |
| 485 |
must contain a single line of length <rflen> with only '0' and '1' |
| 486 |
characters. <rflen> is the number of nongap characters in the |
| 487 |
reference (#=GC RF) annotation of the first alignment in |
| 488 |
.I msafile |
| 489 |
A '0' at position <x> of the mask indicates position <x> is excluded |
| 490 |
by the mask, and a '1' indicates that position <x> is included by the mask. |
| 491 |
|
| 492 |
.TP |
| 493 |
.B \-\-small |
| 494 |
Operate in memory saving mode. Without |
| 495 |
.BR \-\-indi , |
| 496 |
required RAM will be independent of the |
| 497 |
size of the alignment in |
| 498 |
.IR msafile . |
| 499 |
With |
| 500 |
.BR \-\-indi , |
| 501 |
the required RAM will be roughly ten times the size of the alignment |
| 502 |
in |
| 503 |
.IR msafile . |
| 504 |
For |
| 505 |
.B \-\-small |
| 506 |
to work, the alignment must be in |
| 507 |
Pfam Stockholm (non-interleaved 1 line/seq) format. |
| 508 |
|
| 509 |
.TP |
| 510 |
.B \-\-rf |
| 511 |
Add a page to |
| 512 |
.I postscript_output_file |
| 513 |
showing the reference sequence from the #=GC RF annotation in |
| 514 |
.I msafile. |
| 515 |
By default, basepaired nucleotides will be colored based on what type of |
| 516 |
basepair they are. To turn this off, use |
| 517 |
.B \-\-no\-bp. |
| 518 |
This page is drawn by default (if zero command-line options are used). |
| 519 |
|
| 520 |
.TP |
| 521 |
.B \-\-info |
| 522 |
Add a page to |
| 523 |
.I postscript_output_file |
| 524 |
with consensus (nongap RF) positions colored based on their |
| 525 |
information content from the alignment. |
| 526 |
Information content is calculated as 2.0 \- H, where H = sum_x p_x |
| 527 |
log_2 p_x for x in {A,C,G,U}. |
| 528 |
This page is drawn by default (if zero command-line options are used). |
| 529 |
|
| 530 |
.TP |
| 531 |
.B \-\-mutinfo |
| 532 |
Add a page to |
| 533 |
.I postscript_output_file |
| 534 |
with basepaired consensus (nongap RF) positions colored based on the |
| 535 |
amount of mutual information they have in the alignment. Mutual |
| 536 |
information is sum_{x,y} p_{x,y} log_2 ((p_x * p_y) / p_{x,y}, where x |
| 537 |
and y are the four possible bases A,C,G,U. p_x is the fractions of |
| 538 |
aligned sequences that have nucleotide x of in the left half (5' half) of |
| 539 |
the basepair. p_y is the fraction of aligned sequences that have |
| 540 |
nucleotide y in the position corresponding to the right half (3' half) of |
| 541 |
the basepair. And p_{x,y} is the fraction of aligned sequences that |
| 542 |
have basepair x:y. For all p_x, p_y and p{x,y} only sequences that |
| 543 |
that have a nongap nucleotide at both the left and right half of the |
| 544 |
basepair are counted. |
| 545 |
This page is drawn by default (if zero command-line options are used). |
| 546 |
|
| 547 |
.TP |
| 548 |
.B \-\-ifreq |
| 549 |
Add a page to |
| 550 |
.I postscript_output_file |
| 551 |
with each consensus (nongap RF) position colored based on the fraction of |
| 552 |
sequences that span each position that have at least 1 inserted |
| 553 |
nucleotide after the position. |
| 554 |
A sequence s spans consensus position x that is actual alignment |
| 555 |
position a if s has at least one nongap nucleotide aligned to a position |
| 556 |
b <= a and at least one nongap nucleotide aligned to a consensus position |
| 557 |
c >= a. This page is drawn by default (if zero command-line options |
| 558 |
are used). |
| 559 |
|
| 560 |
.TP |
| 561 |
.B \-\-iavglen |
| 562 |
Add a page to |
| 563 |
.I postscript_output_file |
| 564 |
with each consensus (nongap RF) position colored based on average |
| 565 |
length of insertions that occur after it. The average is calculated as |
| 566 |
the total number of inserted nucleotides after position x, divided by the |
| 567 |
number of sequences that have at least 1 inserted nucleotide after |
| 568 |
position x (so the minimum possible average insert length is 1.0). |
| 569 |
|
| 570 |
.TP |
| 571 |
.B \-\-dall |
| 572 |
Add a page to |
| 573 |
.I postscript_output_file |
| 574 |
with each consensus (nongap RF) position colored based on the fraction of |
| 575 |
sequences that have a gap (delete) at the position. |
| 576 |
This page is drawn by default (if zero command-line options are used). |
| 577 |
|
| 578 |
.TP |
| 579 |
.B \-\-dint |
| 580 |
Add a page to |
| 581 |
.I postscript_output_file |
| 582 |
with each consensus (nongap RF) position colored based on the fraction of |
| 583 |
sequences that have an internal gap (delete) at the position. An |
| 584 |
internal gap in a sequence is one that occurs after (5' of) the |
| 585 |
sequence's first aligned nucleotide and after |
| 586 |
(3' of) the sequence's final aligned nucleotide. |
| 587 |
This page is drawn by default (if zero command-line options are used). |
| 588 |
|
| 589 |
.TP |
| 590 |
.B \-\-prob |
| 591 |
Add a page to |
| 592 |
.I postscript_output_file |
| 593 |
with positions colored based on average posterior probability (PP). The alignment |
| 594 |
must contain #=GR PP annotation for all sequences. PP annotation is |
| 595 |
converted to numerical PP values as follows: '*' = 0.975, '9' = |
| 596 |
0.90, '8' = 0.80, '7' = 0.70, '6' = 0.60, '5' = 0.50, '4' = 0.40, '3' |
| 597 |
= 0.30, '2' = 0.20, '1' = 0.10, '0' = 0.025. |
| 598 |
This page is drawn by default (if zero command-line options are used). |
| 599 |
|
| 600 |
.TP |
| 601 |
.B \-\-span |
| 602 |
Add a page to |
| 603 |
.I postscript_output_file |
| 604 |
with consensus (nongap RF) positions colored based on the |
| 605 |
fraction of sequences that 'span' the position. |
| 606 |
A sequence s spans consensus position x that is actual alignment |
| 607 |
position a if s has at least one nongap nucleotide aligned to a position |
| 608 |
b <= a and at least one nongap nucleotide aligned to a consensus position |
| 609 |
c >= a. This page is drawn by default (if zero command-line options |
| 610 |
are used). |
| 611 |
|
| 612 |
|
| 613 |
.SH OPTIONS FOR DRAWING INDIVIDUAL ALIGNED SEQUENCES |
| 614 |
|
| 615 |
.TP |
| 616 |
.B \-\-indi |
| 617 |
Add a page displaying the aligned nucleotides in their corresponding |
| 618 |
consensus positions of the structure diagram for each aligned |
| 619 |
sequence in the alignment. |
| 620 |
By default, basepaired nucleotides will be colored based on what type of |
| 621 |
basepair they are. To turn this off, use |
| 622 |
.B \-\-no\-bp. |
| 623 |
If posterior probability information (#=GR |
| 624 |
PP) exists in the alignment, one additional page per sequence will be |
| 625 |
drawn displaying the posterior probabilities. |
| 626 |
|
| 627 |
.TP |
| 628 |
.B \-f |
| 629 |
With |
| 630 |
.BR \-\-indi , |
| 631 |
force |
| 632 |
.B esl\-ssdraw |
| 633 |
to create a diagram, even if it is predicted to be large (> 100 Mb). |
| 634 |
By default, if the predicted size exceeds 100 Mb, |
| 635 |
.B esl\-ssdraw |
| 636 |
will fail with a warning. |
| 637 |
|
| 638 |
|
| 639 |
.SH OPTIONS FOR OMITTING PARTS OF THE DIAGRAMS |
| 640 |
|
| 641 |
.TP |
| 642 |
.B \-\-no\-leg |
| 643 |
Omit the legend on all pages of |
| 644 |
.IR postscript_output_file . |
| 645 |
|
| 646 |
.TP |
| 647 |
.B \-\-no\-head |
| 648 |
Omit the header on all pages of |
| 649 |
.IR postscript_output_file . |
| 650 |
|
| 651 |
.TP |
| 652 |
.B \-\-no\-foot |
| 653 |
Omit the footer on all pages of |
| 654 |
.IR postscript_output_file . |
| 655 |
|
| 656 |
|
| 657 |
|
| 658 |
.SH OPTIONS FOR SIMPLE TWO-COLOR MASK DIAGRAMS |
| 659 |
|
| 660 |
.TP |
| 661 |
.B \-\-mask\-col |
| 662 |
With |
| 663 |
.BR \-\-mask , |
| 664 |
.I postscript_output_file |
| 665 |
will contain exactly 1 page showing positions included by the mask as |
| 666 |
black squares, and positions excluded as pink squares. |
| 667 |
|
| 668 |
.TP |
| 669 |
.BI \-\-mask\-diff " <f>" |
| 670 |
With |
| 671 |
.BI \-\-mask " <f2>" |
| 672 |
and |
| 673 |
.BR mask\-col , |
| 674 |
.I postscript_output_file |
| 675 |
will contain one additional page comparing the mask from |
| 676 |
.I <f> |
| 677 |
and the mask from |
| 678 |
.IR <f2> . |
| 679 |
Positions will be colored based on whether they are included by one |
| 680 |
mask and not the other, excluded by both masks, and included by both |
| 681 |
masks. |
| 682 |
|
| 683 |
|
| 684 |
.SH EXPERT OPTIONS FOR CONTROLLING INDIVIDUAL SEQUENCE DIAGRAMS |
| 685 |
|
| 686 |
.TP |
| 687 |
.B \-\-no\-pp |
| 688 |
When used in combination with |
| 689 |
.BR \-\-indi , |
| 690 |
do not draw posterior probability structure diagrams for each |
| 691 |
sequence, even if the alignment has PP annotation. |
| 692 |
|
| 693 |
.TP |
| 694 |
.B \-\-no\-bp |
| 695 |
Do not color basepaired nucleotides based on their basepair type. |
| 696 |
|
| 697 |
.TP |
| 698 |
.B \-\-no\-ol |
| 699 |
When used in combination with |
| 700 |
.BR \-\-indi , |
| 701 |
do not outline nucleotides that differ from the majority rule |
| 702 |
consensus nucleotide given the alignment. |
| 703 |
|
| 704 |
.TP |
| 705 |
.B \-\-no\-ntpp |
| 706 |
When used in combination with |
| 707 |
.BR \-\-indi , |
| 708 |
do not draw nucleotides on the individual sequence posterior |
| 709 |
probability diagrams. |
| 710 |
|
| 711 |
|
| 712 |
.SH EXPERT OPTIONS RELATED TO CONSENSUS SEQUENCE DEFINITION |
| 713 |
|
| 714 |
.TP |
| 715 |
.B \-\-no\-cnt |
| 716 |
Do not draw consensus nucleotides on alignment statistic diagrams (such as |
| 717 |
information content diagrams). By default, the consensus nucleotide is |
| 718 |
defined as the most frequent nucleotide in the alignment at the |
| 719 |
corresponding position. Consensus nucleotides that occur in at least |
| 720 |
.I <x> |
| 721 |
fraction of the aligned sequences (that do not contain a gap at the |
| 722 |
position) are capitalized. By default |
| 723 |
.I <x> |
| 724 |
is 0.75, but can be changed with the |
| 725 |
.BI \-\-cthresh " <x>" |
| 726 |
option. |
| 727 |
|
| 728 |
.TP |
| 729 |
.BI \-\-cthresh " <x>" |
| 730 |
Specify the threshold for capitalizing consensus nucleotides defined by |
| 731 |
the majority rule (i.e. when |
| 732 |
.B \-\-cambig |
| 733 |
is not enabled) as |
| 734 |
.IR <x> . |
| 735 |
|
| 736 |
.TP |
| 737 |
.B \-\-cambig |
| 738 |
Change how consensus nucleotides are calculated from majority rule to |
| 739 |
the least ambiguous IUPAC nucleotide that represents at least |
| 740 |
.I <x> |
| 741 |
fraction of the nongap nucleotides at each consensus position. |
| 742 |
By default |
| 743 |
.I <x> |
| 744 |
is 0.9, but can be changed with the |
| 745 |
.BI \-\-athresh " <x>" |
| 746 |
option. |
| 747 |
|
| 748 |
.TP |
| 749 |
.BI \-\-athresh " <x>" |
| 750 |
With |
| 751 |
.BR \-\-cambig , |
| 752 |
specify the threshold for defining consensus nucleotides |
| 753 |
is the least ambiguous IUPAC nucleotide that represents at least |
| 754 |
.I <x> |
| 755 |
fraction of the nongap nucleotides at each position. |
| 756 |
|
| 757 |
|
| 758 |
.SH EXPERT OPTIONS CONTROLLING STYLE OF MASKING POSITIONS |
| 759 |
|
| 760 |
.TP |
| 761 |
.B \-\-mask\-u |
| 762 |
With |
| 763 |
.BR \-\-mask , |
| 764 |
change the style of masked columns to squares. |
| 765 |
|
| 766 |
.TP |
| 767 |
.B \-\-mask\-x |
| 768 |
With |
| 769 |
.BR \-\-mask , |
| 770 |
change the style of masked columns to x's. |
| 771 |
|
| 772 |
.TP |
| 773 |
.B \-\-mask\-a |
| 774 |
With |
| 775 |
.B \-\-mask |
| 776 |
and |
| 777 |
.B \-\-mask\-u |
| 778 |
or |
| 779 |
.B \-\-mask\-x |
| 780 |
draw the alternative style of square or 'x' masks. |
| 781 |
|
| 782 |
|
| 783 |
.SH EXPERT OPTIONS RELATED TO INPUT FILES |
| 784 |
|
| 785 |
.TP |
| 786 |
.BI \-\-dfile " <f>" |
| 787 |
Read the 'draw file' |
| 788 |
.I <f> |
| 789 |
which specifies numerical values for each consensus position in one or |
| 790 |
more postscript pages. For each page, the draw file must include |
| 791 |
<rflen>+3 lines (<rflen> is defined in the DESCRIPTION section). The first three lines are special. The following |
| 792 |
<rflen> 'value lines' each must contain a single number, the numerical |
| 793 |
value for the corresponding position. The first of the three special |
| 794 |
lines defines the 'description' for the page. This should be text that |
| 795 |
describes what the numerical values refer to for the page. The maximum |
| 796 |
allowable length is roughly 50 characters (the exact maximum |
| 797 |
length depends on the template file and the program will report an |
| 798 |
informative error message upon execution if it is exceeded). The |
| 799 |
second special line defines the 'legend header' line that which will |
| 800 |
appear immediately above the legend. It has a maximum allowable length |
| 801 |
of about 30 characters. The third special line per page must contain |
| 802 |
exactly 7 numbers, which must be in increasing order, each separated |
| 803 |
by a space. |
| 804 |
These numbers |
| 805 |
define the numerical ranges for the six different colors used to draw |
| 806 |
the consensus positions on the page. |
| 807 |
The first number defines the minimum value for the first color |
| 808 |
(blue) and must be less than or equal to the minimum |
| 809 |
value from the value lines. The second number defines the minimum |
| 810 |
value for the second color (turquoise). The third, fourth, fifth and |
| 811 |
sixth numbers define the minimum values for the third, fourth, fifth |
| 812 |
and sixth colors (light green, yellow, orange, red), and the seventh |
| 813 |
final number defines the maximum value for red and must be equal to |
| 814 |
or greater than the maximum value from the value lines. |
| 815 |
After the <rflen> value lines, there must exist a special line with |
| 816 |
only '//', signifying the end of a page. |
| 817 |
The draw file |
| 818 |
.I <f> |
| 819 |
must end with this special '//' line, even if it only includes a |
| 820 |
single page. A draw file specifying <n> pages should include exactly |
| 821 |
<n> * (<rflen> + 4) lines. |
| 822 |
|
| 823 |
.TP |
| 824 |
.BI \-\-efile " <f>" |
| 825 |
Read the 'expert draw file' |
| 826 |
.I <f> |
| 827 |
which specifies the colors and nucleotides to draw on each consensus |
| 828 |
position in one or more postscript pages. Unlike with the |
| 829 |
.B \-\-dfile |
| 830 |
option, no legend will be drawn when |
| 831 |
.B \-\-efile |
| 832 |
is used. |
| 833 |
For each page, the draw file must include <rflen> lines, each with four |
| 834 |
or five tab-delimited tokens. The first four tokens on line <x> |
| 835 |
specify the color to paint position <x> and must be real numbers |
| 836 |
between 0 and 1. The four numbers specify the cyan, magenta, yellow |
| 837 |
and black values, respectively, in the CMYK color scheme for the |
| 838 |
postscript file. The fifth token on line <x> specifies which nucleotide |
| 839 |
to write on position <x> (on top of the colored background). If the |
| 840 |
fifth token does not exist, no nucleotide will be written. |
| 841 |
After the <rflen> lines, there must exist a special line with |
| 842 |
only '//', signifying the end of a page. |
| 843 |
The expert draw file |
| 844 |
.I <f> |
| 845 |
must end with this special '//' line, even if it only includes a |
| 846 |
single page. A expert draw file specifying <n> pages should include exactly |
| 847 |
<n> * (<rflen> + 1) lines. |
| 848 |
|
| 849 |
.TP |
| 850 |
.BI \-\-ifile " <f>" |
| 851 |
Read insert information from the file |
| 852 |
.IR <f> , |
| 853 |
which may have been created with INFERNAL's |
| 854 |
.BR cmalign (1) |
| 855 |
program. The insert information in |
| 856 |
.I msafile |
| 857 |
will be ignored and the information from |
| 858 |
.I <f> |
| 859 |
will supersede it. Inserts are columns that are gaps in the reference |
| 860 |
(#=GC RF) annotation. |
| 861 |
|
| 862 |
|
| 863 |
|
| 864 |
|
| 865 |
.SH SEE ALSO |
| 866 |
|
| 867 |
.nf |
| 868 |
@EASEL_URL@ |
| 869 |
.fi |
| 870 |
|
| 871 |
.SH COPYRIGHT |
| 872 |
|
| 873 |
.nf |
| 874 |
@EASEL_COPYRIGHT@ |
| 875 |
@EASEL_LICENSE@ |
| 876 |
.fi |
| 877 |
|
| 878 |
.SH AUTHOR |
| 879 |
|
| 880 |
.nf |
| 881 |
http://eddylab.org |
| 882 |
.fi |