| 1 |
.TH "esl\-alimerge" 1 "@EASEL_DATE@" "Easel @EASEL_VERSION@" "Easel Manual" |
| 2 |
|
| 3 |
.SH NAME |
| 4 |
esl\-alimerge \- merge alignments based on their reference (RF) annotation |
| 5 |
|
| 6 |
.SH SYNOPSIS |
| 7 |
|
| 8 |
.nf |
| 9 |
\fBesl\-alimerge \fR[\fIoptions\fR] \fIalifile1 alifile2\fR |
| 10 |
(merge two alignment files) |
| 11 |
|
| 12 |
\fBesl\-alimerge \-\-list \fR[\fIoptions\fR] \fIlistfile\fR |
| 13 |
(merge many alignment files listed in a file) |
| 14 |
|
| 15 |
|
| 16 |
.SH DESCRIPTION |
| 17 |
|
| 18 |
.PP |
| 19 |
.B esl\-alimerge |
| 20 |
reads more than one input alignments, merges them into a single |
| 21 |
alignment and outputs it. |
| 22 |
|
| 23 |
.PP |
| 24 |
The input alignments must all be in Stockholm format. All alignments |
| 25 |
must have reference ('#=GC RF') annotation. Further, the RF annotation |
| 26 |
must be identical in all alignments once gap characters in the RF |
| 27 |
annotation ('.','\-','_') have been removed. This requirement allows |
| 28 |
alignments with different numbers of total columns to be merged |
| 29 |
together based on consistent RF annotation, such as alignments created |
| 30 |
by successive runs of the |
| 31 |
.B cmalign |
| 32 |
program of the INFERNAL package using the same CM. Columns which have |
| 33 |
a gap character in the RF annotation are called 'insert' columns. |
| 34 |
|
| 35 |
.PP |
| 36 |
All sequence data in all input alignments will be included in the |
| 37 |
output alignment regardless of the output format (see |
| 38 |
.B \-\-outformat |
| 39 |
option below). However, sequences in the merged alignment will usually |
| 40 |
contain more gaps ('.') than they did in their respective input |
| 41 |
alignments. This is because |
| 42 |
.B esl\-alimerge |
| 43 |
must add 100% gap columns to each individual input alignment so that |
| 44 |
insert columns in the other input alignments can be accomodated in the |
| 45 |
merged alignment. |
| 46 |
|
| 47 |
.PP |
| 48 |
If the output format is Stockholm or Pfam, annotation will be |
| 49 |
transferred from the input alignments to the merged alignment as |
| 50 |
follows. All per-sequence ('#=GS') and per-residue ('#=GR') annotation |
| 51 |
is transferred. Per-file ('#=GF') annotation is transferred if it is |
| 52 |
present and identical in all alignments. Per-column ('#=GC') annotation is |
| 53 |
transferred if it is present and identical in all alignments once all |
| 54 |
insert positions have been removed and |
| 55 |
the '#=GC' annotation includes zero non-gap characters in insert |
| 56 |
columns. |
| 57 |
|
| 58 |
.PP |
| 59 |
With the |
| 60 |
.BI \-\-list " <f>" |
| 61 |
option, |
| 62 |
.I <f> |
| 63 |
is a file listing alignment files to merge. In the list file, blank |
| 64 |
lines and lines that start with '#' (comments) are ignored. Each data |
| 65 |
line contains a single word: the name of an alignment file to be |
| 66 |
merged. All alignments in each file will be merged. |
| 67 |
|
| 68 |
.PP |
| 69 |
With the |
| 70 |
.B \-\-small |
| 71 |
option, |
| 72 |
.B esl\-alimerge |
| 73 |
will operate in memory saving mode and the required RAM for the merge |
| 74 |
will be minimal (should be only a few Mb) and independent of the |
| 75 |
alignment sizes. To use |
| 76 |
.BR \-\-small , |
| 77 |
all alignments must be in Pfam format (non-interleaved, 1 |
| 78 |
line/sequence Stockholm format). You can reformat alignments to Pfam |
| 79 |
using the |
| 80 |
.B esl\-reformat |
| 81 |
Easel miniapp. Without |
| 82 |
.B \-\-small |
| 83 |
the required RAM will be equal to roughly the size of the final merged |
| 84 |
alignment file which will necessarily be at least the summed size of |
| 85 |
all of the input alignment files to be merged and sometimes several |
| 86 |
times larger. If you're merging large alignments or you're |
| 87 |
experiencing very slow performance of |
| 88 |
.BR esl\-alimerge , |
| 89 |
try reformatting to Pfam and using |
| 90 |
.BR \-\-small . |
| 91 |
|
| 92 |
|
| 93 |
|
| 94 |
.SH OPTIONS |
| 95 |
|
| 96 |
.TP |
| 97 |
.B \-h |
| 98 |
Print brief help; includes version number and summary of |
| 99 |
all options, including expert options. |
| 100 |
|
| 101 |
.TP |
| 102 |
.BI \-o " <f>" |
| 103 |
Output merged alignment to file |
| 104 |
.I <f> |
| 105 |
instead of to stdout. |
| 106 |
|
| 107 |
.TP |
| 108 |
.B \-v |
| 109 |
Be verbose; print information on the size of the alignments being merged, |
| 110 |
and the annotation transferred to the merged alignment to stdout. |
| 111 |
This option can only be used in combination with the |
| 112 |
.B \-o |
| 113 |
option (so that the printed info doesn't corrupt the output alignment |
| 114 |
file). |
| 115 |
|
| 116 |
.TP |
| 117 |
.B \-\-small |
| 118 |
Operate in memory saving mode. Required RAM will be independent of the |
| 119 |
sizes of the alignments to merge, instead of roughly the size of the |
| 120 |
eventual merged alignment. When enabled, all alignments must be in |
| 121 |
Pfam Stockholm (non-interleaved 1 line/seq) format; see |
| 122 |
.BR esl\-reformat (1). |
| 123 |
The output alignment will be in Pfam format. |
| 124 |
|
| 125 |
.TP |
| 126 |
.B \-\-rfonly |
| 127 |
Only include columns that are not gaps in the GC RF annotation in the |
| 128 |
merged alignment. |
| 129 |
|
| 130 |
.TP |
| 131 |
.BI \-\-outformat " <s>" |
| 132 |
Write the output alignment in format |
| 133 |
.IR <s> . |
| 134 |
Common choices for |
| 135 |
.I <s> |
| 136 |
include: |
| 137 |
.BR stockholm , |
| 138 |
.BR a2m , |
| 139 |
.BR afa , |
| 140 |
.BR psiblast , |
| 141 |
.BR clustal , |
| 142 |
.BR phylip . |
| 143 |
The string |
| 144 |
.I <s> |
| 145 |
is case-insensitive (\fBa2m\fR or \fBA2M\fR both work). |
| 146 |
Default is |
| 147 |
.BR stockholm . |
| 148 |
|
| 149 |
|
| 150 |
.TP |
| 151 |
.B \-\-rna |
| 152 |
Specify that the input alignments are RNA alignments. By default |
| 153 |
.B esl\-alimerge |
| 154 |
will try to autodetect the alphabet, but if the alignment is sufficiently |
| 155 |
small it may be ambiguous. This option defines the alphabet as RNA. |
| 156 |
|
| 157 |
.TP |
| 158 |
.B \-\-dna |
| 159 |
Specify that the input alignments are DNA alignments. |
| 160 |
|
| 161 |
.TP |
| 162 |
.B \-\-amino |
| 163 |
Specify that the input alignments are protein alignments. |
| 164 |
|
| 165 |
|
| 166 |
|
| 167 |
.SH SEE ALSO |
| 168 |
|
| 169 |
.nf |
| 170 |
@EASEL_URL@ |
| 171 |
.fi |
| 172 |
|
| 173 |
.SH COPYRIGHT |
| 174 |
|
| 175 |
.nf |
| 176 |
@EASEL_COPYRIGHT@ |
| 177 |
@EASEL_LICENSE@ |
| 178 |
.fi |
| 179 |
|
| 180 |
.SH AUTHOR |
| 181 |
|
| 182 |
.nf |
| 183 |
http://eddylab.org |
| 184 |
.fi |