| 1 |
.TH "esl\-alimanip" 1 "@EASEL_DATE@" "Easel @EASEL_VERSION@" "Easel Manual" |
| 2 |
|
| 3 |
.SH NAME |
| 4 |
esl\-alimanip \- manipulate a multiple sequence alignment |
| 5 |
|
| 6 |
.SH SYNOPSIS |
| 7 |
|
| 8 |
.B esl\-alimanip |
| 9 |
[\fIoptions\fR] |
| 10 |
.I msafile |
| 11 |
|
| 12 |
.SH DESCRIPTION |
| 13 |
|
| 14 |
.B esl\-alimanip |
| 15 |
can manipulate the multiple sequence alignment(s) in |
| 16 |
.I msafile |
| 17 |
in various ways. Options exist to remove |
| 18 |
specific sequences, reorder sequences, designate reference columns |
| 19 |
using Stockholm "#=GC RF" markup, and add annotation that numbers |
| 20 |
columns. |
| 21 |
|
| 22 |
.PP |
| 23 |
The alignments can be of protein or DNA/RNA sequences. All alignments |
| 24 |
in the same |
| 25 |
.I msafile |
| 26 |
must be either protein or DNA/RNA. The alphabet will be autodetected |
| 27 |
unless one of the options |
| 28 |
.B \-\-amino, |
| 29 |
.B \-\-dna, |
| 30 |
or |
| 31 |
.B \-\-rna |
| 32 |
are given. |
| 33 |
|
| 34 |
|
| 35 |
|
| 36 |
.SH OPTIONS |
| 37 |
|
| 38 |
.TP |
| 39 |
.B \-h |
| 40 |
Print brief help; includes version number and summary of |
| 41 |
all options, including expert options. |
| 42 |
|
| 43 |
.TP |
| 44 |
.BI \-o " <f>" |
| 45 |
Save the resulting, modified alignment in Stockholm format to a file |
| 46 |
.I <f>. |
| 47 |
The default is to write it to standard output. |
| 48 |
|
| 49 |
.TP |
| 50 |
.BI \-\-informat " <s>" |
| 51 |
Assert that |
| 52 |
.I msafile |
| 53 |
is in alignment format |
| 54 |
.IR <s> , |
| 55 |
bypassing format autodetection. |
| 56 |
Common choices for |
| 57 |
.I <s> |
| 58 |
include: |
| 59 |
.BR stockholm , |
| 60 |
.BR a2m , |
| 61 |
.BR afa , |
| 62 |
.BR psiblast , |
| 63 |
.BR clustal , |
| 64 |
.BR phylip . |
| 65 |
For more information, and for codes for some less common formats, |
| 66 |
see main documentation. |
| 67 |
The string |
| 68 |
.I <s> |
| 69 |
is case-insensitive (\fBa2m\fR or \fBA2M\fR both work). |
| 70 |
|
| 71 |
|
| 72 |
.TP |
| 73 |
.BI \-\-outformat " <s>" |
| 74 |
Write the output in alignment format |
| 75 |
.IR <s> . |
| 76 |
Common choices for |
| 77 |
.I <s> |
| 78 |
include: |
| 79 |
.BR stockholm , |
| 80 |
.BR a2m , |
| 81 |
.BR afa , |
| 82 |
.BR psiblast , |
| 83 |
.BR clustal , |
| 84 |
.BR phylip . |
| 85 |
The string |
| 86 |
.I <s> |
| 87 |
is case-insensitive (\fBa2m\fR or \fBA2M\fR both work). |
| 88 |
Default is |
| 89 |
.BR stockholm . |
| 90 |
|
| 91 |
.TP |
| 92 |
.B \-\-devhelp |
| 93 |
Print help, as with |
| 94 |
.B \-h, |
| 95 |
but also include undocumented developer options. These options are not |
| 96 |
listed below, are under development or experimental, and are not |
| 97 |
guaranteed to even work correctly. Use developer options at your own |
| 98 |
risk. The only resources for understanding what they actually do are |
| 99 |
the brief one-line description printed when |
| 100 |
.B \-\-devhelp |
| 101 |
is enabled, and the source code. |
| 102 |
|
| 103 |
.SH EXPERT OPTIONS |
| 104 |
|
| 105 |
.TP |
| 106 |
.BI \-\-lnfract " <x>" |
| 107 |
Remove any sequences with length less than |
| 108 |
.I <x> |
| 109 |
fraction the length of the median length sequence in the alignment. |
| 110 |
|
| 111 |
.TP |
| 112 |
.BI \-\-lxfract " <x>" |
| 113 |
Remove any sequences with length more than |
| 114 |
.I <x> |
| 115 |
fraction the length of the median length sequence in the alignment. |
| 116 |
|
| 117 |
.TP |
| 118 |
.BI \-\-lmin " <n>" |
| 119 |
Remove any sequences with length less than |
| 120 |
.I <n> |
| 121 |
residues. |
| 122 |
|
| 123 |
.TP |
| 124 |
.BI \-\-lmax " <n>" |
| 125 |
Remove any sequences with length more than |
| 126 |
.I <n> |
| 127 |
residues. |
| 128 |
|
| 129 |
.TP |
| 130 |
.BI \-\-rfnfract " <x>" |
| 131 |
Remove any sequences with nongap RF length less than |
| 132 |
.I <x> |
| 133 |
fraction the nongap RF length of the alignment. |
| 134 |
|
| 135 |
.TP |
| 136 |
.BI \-\-detrunc " <n>" |
| 137 |
Remove any sequences that have all gaps in the first |
| 138 |
.I <n> |
| 139 |
non-gap #=GC RF columns or the last |
| 140 |
.I <n> |
| 141 |
non-gap #=GC RF columns. |
| 142 |
|
| 143 |
.TP |
| 144 |
.BI \-\-xambig " <n>" |
| 145 |
Remove any sequences that has more than |
| 146 |
.I <n> |
| 147 |
ambiguous (degenerate) residues. |
| 148 |
|
| 149 |
.TP |
| 150 |
.BI \-\-seq\-r " <f>" |
| 151 |
Remove any sequences with names listed in file |
| 152 |
.I <f>. |
| 153 |
Sequence names listed in |
| 154 |
.I <f> |
| 155 |
can be separated by tabs, new lines, or spaces. |
| 156 |
The file must be in Stockholm format for this option to work. |
| 157 |
|
| 158 |
.TP |
| 159 |
.BI \-\-seq\-k " <f>" |
| 160 |
Keep only sequences with names listed in file |
| 161 |
.I <f>. |
| 162 |
Sequence names listed in |
| 163 |
.I <f> |
| 164 |
can be separated by tabs, new lines, or spaces. |
| 165 |
By default, the kept sequences will remain in the original order |
| 166 |
they appeared in |
| 167 |
.I msafile, |
| 168 |
but the order from |
| 169 |
.I <f> |
| 170 |
will be used if the |
| 171 |
.B \-\-k\-reorder |
| 172 |
option is enabled. |
| 173 |
The file must be in Stockholm format for this option to work. |
| 174 |
|
| 175 |
.TP |
| 176 |
.B \-\-small |
| 177 |
With |
| 178 |
.B \-\-seq\-k |
| 179 |
or |
| 180 |
.B \-\-seq\-r, |
| 181 |
operate in small memory mode. |
| 182 |
The alignment(s) will not be stored in memory, thus |
| 183 |
.B \-\-seq\-k |
| 184 |
and |
| 185 |
.B \-\-seq\-r |
| 186 |
will be able to work on very large alignments regardless |
| 187 |
of the amount of available RAM. |
| 188 |
The alignment file must be in Pfam |
| 189 |
format and |
| 190 |
.B \-\-informat pfam |
| 191 |
and one of |
| 192 |
.B \-\-amino, |
| 193 |
.B \-\-dna, |
| 194 |
or |
| 195 |
.B \-\-rna |
| 196 |
must be given as well. |
| 197 |
|
| 198 |
.TP |
| 199 |
.B \-\-k\-reorder |
| 200 |
With |
| 201 |
.BI \-\-seq\-k " <f>", |
| 202 |
reorder the kept sequences in the output alignment to the order |
| 203 |
from the list file |
| 204 |
.I <f>. |
| 205 |
|
| 206 |
.TP |
| 207 |
.BI \-\-seq\-ins " <n>" |
| 208 |
Keep only sequences that have at least 1 inserted residue after |
| 209 |
nongap RF position |
| 210 |
.I <n>. |
| 211 |
|
| 212 |
.TP |
| 213 |
.BI \-\-seq\-ni " <n>" |
| 214 |
With |
| 215 |
.B \-\-seq\-ins |
| 216 |
require at least |
| 217 |
.I <n> |
| 218 |
inserted residues in a sequence for it to be kept. |
| 219 |
|
| 220 |
.TP |
| 221 |
.BI \-\-seq\-xi " <n>" |
| 222 |
With |
| 223 |
.B \-\-seq\-ins |
| 224 |
allow at most |
| 225 |
.I <n> |
| 226 |
inserted residues in a sequence for it to be kept. |
| 227 |
|
| 228 |
.TP |
| 229 |
.BI \-\-trim " <f>" |
| 230 |
File |
| 231 |
.I <f> |
| 232 |
is an unaligned FASTA file containing truncated versions of each |
| 233 |
sequence in the |
| 234 |
.I msafile. |
| 235 |
Trim the sequences in the alignment to match their truncated versions |
| 236 |
in |
| 237 |
.I <f>. |
| 238 |
If the alignment output format is Stockholm (the default output |
| 239 |
format), all per-column (GC) and per-residue (GR) annotation will be |
| 240 |
removed from the alignment when |
| 241 |
.B \-\-trim |
| 242 |
is used. However, if |
| 243 |
.B \-\-t\-keeprf |
| 244 |
is also used, the reference annotation (GC RF) will be kept. |
| 245 |
|
| 246 |
.TP |
| 247 |
.B \-\-t\-keeprf |
| 248 |
Specify that the 'trimmed' alignment maintain the original |
| 249 |
reference (GC RF) annotation. Only works in combination with |
| 250 |
.B \-\-trim. |
| 251 |
|
| 252 |
.TP |
| 253 |
.BI \-\-minpp " <x>" |
| 254 |
Replace all residues in the alignments for which the posterior |
| 255 |
probability annotation (#=GR PP) is less than |
| 256 |
.I <x> |
| 257 |
with gaps. The PP annotation for these residues is also converted to |
| 258 |
gaps. |
| 259 |
.I <x> |
| 260 |
must be greater than 0.0 and less than or equal to 0.95. |
| 261 |
|
| 262 |
.TP |
| 263 |
.BI \-\-tree " <f>" |
| 264 |
Reorder sequences by tree order. |
| 265 |
Perform single linkage clustering on the sequences in the alignment |
| 266 |
based on sequence identity given the alignment to define a 'tree' |
| 267 |
of the sequences. The sequences in the alignment are reordered |
| 268 |
according to the tree, which groups similar sequences together. The |
| 269 |
tree is output in Newick format to |
| 270 |
.I <f>. |
| 271 |
|
| 272 |
.TP |
| 273 |
.BI \-\-reorder " <f>" |
| 274 |
Reorder sequences to the order listed in file |
| 275 |
.I <f>. |
| 276 |
Each sequence in the alignment must be listed in |
| 277 |
.I <f>. |
| 278 |
Use |
| 279 |
.B \-\-k\-reorder |
| 280 |
to reorder only a subset of sequences to a subset alignment file. |
| 281 |
The file must be in Stockholm format for this option to work. |
| 282 |
|
| 283 |
.TP |
| 284 |
.BI \-\-mask2rf " <f>" |
| 285 |
Read in the 'mask' file |
| 286 |
.I <f> |
| 287 |
and use it to define new #=GC RF annotation for the |
| 288 |
alignment. |
| 289 |
.I <f> |
| 290 |
must be a single line, with exactly |
| 291 |
.I <alen> |
| 292 |
or |
| 293 |
.I <rflen> |
| 294 |
characters, either the full alignment length or the number of nongap #=GC RF characters, respectively. |
| 295 |
Each character must be either a '1' |
| 296 |
or a '0'. The new #=GC RF markup will contain an 'x' for each column |
| 297 |
that is a '1' in lane mask file, and a '.' for each column that is a '0'. |
| 298 |
If the mask is of length |
| 299 |
.I <rflen> |
| 300 |
then it is interpreted as applying to only nongap RF characters in the |
| 301 |
existing RF annotation, all gap RF characters will remain gaps and |
| 302 |
nongap RF characters will be redefined as above. |
| 303 |
|
| 304 |
.TP |
| 305 |
.BI \-\-m\-keeprf |
| 306 |
With |
| 307 |
.B \-\-mask2rf, |
| 308 |
do not overwrite existing nongap RF characters that are included by |
| 309 |
the input mask as 'x', leave them as the character they are. |
| 310 |
|
| 311 |
.TP |
| 312 |
.BI \-\-num\-all |
| 313 |
Add annotation to the alignment numbering all of the columns in the |
| 314 |
alignment. |
| 315 |
|
| 316 |
.TP |
| 317 |
.BI \-\-num\-rf |
| 318 |
Add annotation to the alignment numbering the non-gap (non '.') #=GC |
| 319 |
RF columns of the alignment. |
| 320 |
|
| 321 |
.TP |
| 322 |
.BI \-\-rm\-gc " <s>" |
| 323 |
Remove certain types of #=GC annotation from the alignment. |
| 324 |
.I "<s>" |
| 325 |
must be one of: |
| 326 |
.BR RF , |
| 327 |
.BR SS_cons , |
| 328 |
.BR SA_cons , |
| 329 |
.BR PP_cons . |
| 330 |
|
| 331 |
.TP |
| 332 |
.BI \-\-sindi |
| 333 |
Annotate individual secondary structures for each sequence by imposing |
| 334 |
the consensus secondary structure defined by the #=GC SS_cons |
| 335 |
annotation. |
| 336 |
|
| 337 |
.TP |
| 338 |
.BI \-\-post2pp |
| 339 |
Update Infernal's cmalign 0.72-1.0.2 posterior probability "POST" |
| 340 |
annotation to "PP" annotation, which is read by other miniapps, |
| 341 |
including |
| 342 |
.B esl\-alimask |
| 343 |
and |
| 344 |
.B esl\-alistat. |
| 345 |
|
| 346 |
.TP |
| 347 |
.B \-\-amino |
| 348 |
Assert that the |
| 349 |
.I msafile |
| 350 |
contains protein sequences. |
| 351 |
|
| 352 |
.TP |
| 353 |
.B \-\-dna |
| 354 |
Assert that the |
| 355 |
.I msafile |
| 356 |
contains DNA sequences. |
| 357 |
|
| 358 |
.TP |
| 359 |
.B \-\-rna |
| 360 |
Assert that the |
| 361 |
.I msafile |
| 362 |
contains RNA sequences. |
| 363 |
|
| 364 |
|
| 365 |
|
| 366 |
.SH SEE ALSO |
| 367 |
|
| 368 |
.nf |
| 369 |
@EASEL_URL@ |
| 370 |
.fi |
| 371 |
|
| 372 |
.SH COPYRIGHT |
| 373 |
|
| 374 |
.nf |
| 375 |
@EASEL_COPYRIGHT@ |
| 376 |
@EASEL_LICENSE@ |
| 377 |
.fi |
| 378 |
|
| 379 |
.SH AUTHOR |
| 380 |
|
| 381 |
.nf |
| 382 |
http://eddylab.org |
| 383 |
.fi |