Debian Codegraph @

easel/miniapps/esl-alimap.man.in

raw
1 .TH "esl\-alimap" 1 "@EASEL_DATE@" "Easel @EASEL_VERSION@" "Easel Manual"
2
3 .SH NAME
4 esl\-alimap \- map two alignments to each other
5
6 .SH SYNOPSIS
7 .B esl\-alimap
8 [\fIoptions\fR]
9 .I msafile1
10 .I msafile2
11
12 .SH DESCRIPTION
13
14 .B esl\-alimap
15 is a highly specialized application that determines the optimal
16 alignment mapping of columns between two alignments of the same
17 sequences. An alignment mapping defines for each column in alignment 1
18 a matching column in alignment 2. The number of residues in the
19 aligned sequences that are in common between the two matched columns
20 are considered 'shared' by those two columns.
21
22 .PP
23 For example, if the nth residue of sequence i occurs in alignment 1
24 column x and alignment 2 column y, then only a mapping of alignment
25 1 and 2 that includes column x mapping to column y would correctly map
26 and share the residue.
27
28 .PP
29 The optimal mapping of the two alignments is the mapping which
30 maximizes the sum of shared residues between all pairs of matching
31 columns. The fraction of total residues that are shared is reported as
32 the coverage in the
33 .B esl\-alimap
34 output.
35
36 .PP
37 Only the first alignments in
38 .I msafile1
39 and
40 .I msafile2
41 will be mapped to each other. If the files contain more than one
42 alignment, all alignments after the first will be ignored.
43
44 .PP
45 The two alignments (one from each file) must contain exactly the same
46 sequences (if they were unaligned, they'd be identical) in precisely
47 the same order. They must also be in Stockholm format.
48
49 .PP
50 The output of
51 .B esl\-alimap
52 differs depending on whether one or both of the alignments
53 contain reference (#=GC RF) annotation. If so, the
54 coverage for residues from nongap RF positions will be reported
55 separately from the total coverage.
56
57 .PP
58 .B esl\-alimap
59 uses a dynamic programming algorithm to compute the optimal
60 mapping. The algorithm is similar to the Needleman-Wunsch-Sellers
61 algorithm but the scores used at each step of the recursion are not
62 residue-residue comparison scores but rather the number of residues
63 shared between two columns.
64
65 The
66 .BI \-\-mask\-a2a " <f>",
67 .BI \-\-mask\-a2rf " <f>",
68 .BI \-\-mask\-rf2a " <f>",
69 and
70 .BI \-\-mask\-rf2rf " <f>"
71 options create 'mask' files that pertain to the optimal mapping in
72 slightly different ways. A mask file consists of a single line, of
73 only '0' and '1' characters. These denote which positions of the
74 alignment from
75 .I msafile1
76 map to positions of the alignment from
77 .I msafile2
78 as described below for each of the four respective masking options.
79 These masks can be used to extract only those columns of the
80 .I msafile1
81 alignment
82 that optimally map to columns of the
83 .I msafile2
84 alignment
85 using the
86 .B esl\-alimask
87 miniapp. To extract the corresponding set of columns
88 from
89 .I msafile2
90 (that optimally map to columns of the alignment from
91 .IR msafile1 ),
92 it is necessary to rerun the program with the order of the two
93 msafiles reversed, save new masks, and use
94 .B esl\-alimask
95 again.
96
97 .SH OPTIONS
98
99 .TP
100 .B \-h
101 Print brief help; includes version number and summary of
102 all options.
103
104 .TP
105 .B \-q
106 Be quiet; don't print information the optimal mapping of each column,
107 only report coverage and potentially save masks to optional output files.
108
109 .TP
110 .BI \-\-mask\-a2a " <f>"
111 Save a mask of '0's and '1's to file
112 .I <f>.
113 A '1' at position x means that position x of the alignment from
114 .I msafile1
115 maps to an alignment position in the alignment from
116 .I msafile2
117 in the optimal map.
118
119 .TP
120 .BI \-\-mask\-a2rf " <f>"
121 Save a mask of '0's and '1's to file
122 .I <f>.
123 A '1' at position x means that position x of the alignment from
124 .I msafile1
125 maps to a nongap RF position in the alignment from
126 .I msafile2
127 in the optimal map.
128
129 .TP
130 .BI \-\-mask\-rf2a " <f>"
131 Save a mask of '0's and '1's to file
132 .I <f>.
133 A '1' at position x means that nongap RF position x of the alignment from
134 .I msafile1
135 maps to an alignment position in the alignment from
136 .I msafile2
137 in the optimal map.
138
139 .TP
140 .BI \-\-mask\-rf2rf " <f>"
141 Save a mask of '0's and '1's to file
142 .I <f>.
143 A '1' at position x means that nongap RF position x of the alignment from
144 .I msafile1
145 maps to a nongap RF position in the alignment from
146 .I msafile2
147 in the optimal map.
148
149 .TP
150 .BI \-\-submap " <f>"
151 Specify that all of the columns from the alignment from
152 .I msafile1
153 exist identically (contain the same residues from all sequences) in
154 the alignment from
155 .I msafile2.
156 This makes the task of mapping trivial.
157 However, not all columns of
158 .I msafile1
159 must exist in
160 .I msafile2.
161 Save the mask to file
162 .I <f>.
163 A '1' at position x of the mask means that position x of the alignment from
164 .I msafile1
165 is the same as position y of
166 .I msafile2,
167 where y is the number of '1's that occur at positions <= x in the mask.
168
169 .TP
170 .B \-\-amino
171 Assert that
172 .I msafile1
173 and
174 .I msafile2
175 contain protein sequences.
176
177 .TP
178 .B \-\-dna
179 Assert that
180 .I msafile1
181 and
182 .I msafile2
183 contain DNA sequences.
184
185 .TP
186 .B \-\-rna
187 Assert that the
188 .I msafile1
189 and
190 .I msafile2
191 contain RNA sequences.
192
193
194 .SH SEE ALSO
195
196 .nf
197 @EASEL_URL@
198 .fi
199
200 .SH COPYRIGHT
201
202 .nf
203 @EASEL_COPYRIGHT@
204 @EASEL_LICENSE@
205 .fi
206
207 .SH AUTHOR
208
209 .nf
210 http://eddylab.org
211 .fi