| 1 |
.TH "esl\-compalign" 1 "@EASEL_DATE@" "Easel @EASEL_VERSION@" "Easel Manual" |
| 2 |
|
| 3 |
.SH NAME |
| 4 |
esl\-compalign \- compare two multiple sequence alignments |
| 5 |
|
| 6 |
.SH SYNOPSIS |
| 7 |
.B esl\-compalign |
| 8 |
[\fIoptions\fR] |
| 9 |
.I trusted_file |
| 10 |
.I test_file |
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
.SH DESCRIPTION |
| 15 |
|
| 16 |
.PP |
| 17 |
.B esl\-compalign |
| 18 |
evaluates the accuracy of a predicted multiple sequence alignment with |
| 19 |
respect to a trusted alignment of the same sequences. |
| 20 |
|
| 21 |
.PP |
| 22 |
The |
| 23 |
.I trusted_file |
| 24 |
and |
| 25 |
.I test_file |
| 26 |
must contain the same number of alignments. Each predicted alignment in the |
| 27 |
.I test_file |
| 28 |
will be compared against a single trusted alignment from the |
| 29 |
.I trusted_file. |
| 30 |
The first alignments in each file correspond to each other and will be |
| 31 |
compared, the second alignment in each file correspond to each other |
| 32 |
and will be compared, and so on. Each corresponding pair of |
| 33 |
alignments must contain the same sequences (i.e. if they were |
| 34 |
unaligned they would be identical) in the same order in both |
| 35 |
files. Further, both alignment files must be in Stockholm format and |
| 36 |
contain 'reference' annotation, which appears as "#=GC RF" per-column |
| 37 |
markup for each alignment. The number of nongap (non '.' characters) |
| 38 |
in the reference (RF) annotation must be identical between all |
| 39 |
corresponding alignments in the two files. |
| 40 |
|
| 41 |
.PP |
| 42 |
.B esl\-compalign |
| 43 |
reads an alignment from each file, and compares them based on |
| 44 |
their 'reference' annotation. The number of correctly predicted |
| 45 |
residues for each sequence is computed as follows. A residue that is |
| 46 |
in the Nth nongap RF column in the trusted alignment must also appear |
| 47 |
in the Nth nongap RF column in the predicted alignment to be counted |
| 48 |
as 'correct', otherwise it is 'incorrect'. A residue that appears in a |
| 49 |
gap RF column in the trusted alignment between nongap RF columns N and |
| 50 |
N+1 must also appear in a nongap RF column in the predicted alignment |
| 51 |
between nongap RF columns N and N+1 to be counted as 'correct', |
| 52 |
otherwise it is incorrect. |
| 53 |
|
| 54 |
.PP |
| 55 |
The default output of |
| 56 |
.B esl\-compalign |
| 57 |
lists each sequence and the number of correctly and incorrectly |
| 58 |
predicted residues for that sequence. These counts are broken down |
| 59 |
into counts for residues in the predicted alignments that occur |
| 60 |
in 'match' columns and 'insert' columns. A 'match' column is one for |
| 61 |
which the RF annotation does not contain a gap. An 'insert' column is |
| 62 |
one for which the RF annotation does contain a gap. |
| 63 |
|
| 64 |
|
| 65 |
|
| 66 |
.SH OPTIONS |
| 67 |
|
| 68 |
.TP |
| 69 |
.B \-h |
| 70 |
Print brief help; includes version number and summary of |
| 71 |
all options. |
| 72 |
|
| 73 |
.TP |
| 74 |
.B \-c |
| 75 |
Print per-column statistics instead of per-sequence statistics. |
| 76 |
|
| 77 |
.TP |
| 78 |
.B \-p |
| 79 |
Print statistics on accuracy versus posterior probability values. The |
| 80 |
.I test_file |
| 81 |
must be annotated with posterior probabilities (#=GR PP) for this |
| 82 |
option to work. |
| 83 |
|
| 84 |
|
| 85 |
.SH EXPERT OPTIONS |
| 86 |
|
| 87 |
.TP |
| 88 |
.BI \-\-p\-mask " <f>" |
| 89 |
This option may only be used in combination with the |
| 90 |
.B \-p |
| 91 |
option. Read a "mask" from file |
| 92 |
.IR <f> . |
| 93 |
The mask file must consist of a single line, of only '0' and '1' |
| 94 |
characters. There must be exactly RFLEN characters where RFLEN is the |
| 95 |
number of nongap characters in the RF annotation of all alignments in |
| 96 |
both |
| 97 |
.I trusted_file |
| 98 |
and |
| 99 |
.IR test_file . |
| 100 |
Positions of the mask that are '1' characters indicate that the |
| 101 |
corresponding nongap RF position is included by the mask. The |
| 102 |
posterior probability accuracy statistics for match columns will only |
| 103 |
pertain to positions that are included by the mask, those that are |
| 104 |
excluded will be ignored from the accuracy calculation. |
| 105 |
|
| 106 |
.BI \-\-c2dfile " <f>" |
| 107 |
Save a 'draw file' to file |
| 108 |
.I <f> |
| 109 |
which can be read into the |
| 110 |
.B esl\-ssdraw |
| 111 |
miniapp. This draw file will define two postscript pages for |
| 112 |
.BR esl\-ssdraw . |
| 113 |
The first page will depict the frequency of errors per match position and |
| 114 |
frequency of gaps per match position, indicated by magenta and yellow, |
| 115 |
respectively. The darker magenta, the more errors and the darker |
| 116 |
yellow, the more gaps. The second page will depict the frequency of |
| 117 |
errors in insert positions in shades of magenta, the darker the |
| 118 |
magenta the more errors in inserts after each position. See |
| 119 |
.B esl\-ssdraw |
| 120 |
documentation for more information on these diagrams. |
| 121 |
|
| 122 |
.TP |
| 123 |
.B \-\-amino |
| 124 |
Assert that |
| 125 |
.I trusted_file |
| 126 |
and |
| 127 |
.I test_file |
| 128 |
contain protein sequences. |
| 129 |
|
| 130 |
.TP |
| 131 |
.B \-\-dna |
| 132 |
Assert that |
| 133 |
.I trusted_file |
| 134 |
and |
| 135 |
.I test_file |
| 136 |
contain DNA sequences. |
| 137 |
|
| 138 |
.TP |
| 139 |
.B \-\-rna |
| 140 |
Assert that the |
| 141 |
.I trusted_file |
| 142 |
and |
| 143 |
.I test_file |
| 144 |
contain RNA sequences. |
| 145 |
|
| 146 |
|
| 147 |
|
| 148 |
.SH SEE ALSO |
| 149 |
|
| 150 |
.nf |
| 151 |
@EASEL_URL@ |
| 152 |
.fi |
| 153 |
|
| 154 |
.SH COPYRIGHT |
| 155 |
|
| 156 |
.nf |
| 157 |
@EASEL_COPYRIGHT@ |
| 158 |
@EASEL_LICENSE@ |
| 159 |
.fi |
| 160 |
|
| 161 |
.SH AUTHOR |
| 162 |
|
| 163 |
.nf |
| 164 |
http://eddylab.org |
| 165 |
.fi |
| 166 |
|