| 1 |
.TH "alimask" 1 "@HMMER_DATE@" "HMMER @HMMER_VERSION@" "HMMER Manual" |
| 2 |
|
| 3 |
.SH NAME |
| 4 |
alimask \- calculate and add column mask to a multiple sequence alignment |
| 5 |
|
| 6 |
.SH SYNOPSIS |
| 7 |
.B alimask |
| 8 |
[\fIoptions\fR] |
| 9 |
.I msafile |
| 10 |
.I postmsafile |
| 11 |
|
| 12 |
|
| 13 |
.SH DESCRIPTION |
| 14 |
|
| 15 |
.PP |
| 16 |
.B alimask |
| 17 |
is used to apply a mask line to a multiple sequence |
| 18 |
alignment, based on provided alignment or model coordinates. |
| 19 |
When |
| 20 |
.B hmmbuild |
| 21 |
receives a masked alignment as input, it produces a profile |
| 22 |
model in which the emission probabilities at masked positions |
| 23 |
are set to match the background frequency, rather than being |
| 24 |
set based on observed frequencies in the alignment. |
| 25 |
Position-specific insertion and deletion rates are not |
| 26 |
altered, even in masked regions. |
| 27 |
.B alimask |
| 28 |
autodetects input format, and produces masked alignments |
| 29 |
in Stockholm format. |
| 30 |
.I msafile |
| 31 |
may contain only one sequence alignment. |
| 32 |
|
| 33 |
.PP |
| 34 |
A common motivation for masking a region in an alignment is |
| 35 |
that the region contains a simple tandem repeat that is |
| 36 |
observed to cause an unacceptably high rate of false positive |
| 37 |
hits. |
| 38 |
|
| 39 |
.PP |
| 40 |
In the simplest case, a mask range is given in coordinates |
| 41 |
relative to the input alignment, using |
| 42 |
.BI \-\-alirange " <s>". |
| 43 |
However it is more often the case that the region to be |
| 44 |
masked has been identified in coordinates relative to |
| 45 |
the profile model (e.g. based on recognizing a simple |
| 46 |
repeat pattern in false hit alignments or in the HMM logo). |
| 47 |
Not all alignment columns are converted to match state |
| 48 |
positions in the profile (see the |
| 49 |
.B \-\-symfrac |
| 50 |
flag for |
| 51 |
.B hmmbuild |
| 52 |
for discussion), so model positions do not necessarily match |
| 53 |
up to alignment column positions. |
| 54 |
To remove the burden of converting model positions to |
| 55 |
alignment positions, |
| 56 |
.B alimask |
| 57 |
accepts the mask range input in model coordinates as well, |
| 58 |
using |
| 59 |
.BI \-\-modelrange " <s>". |
| 60 |
When using this flag, |
| 61 |
.I alimask |
| 62 |
determines which alignment positions would be identified by |
| 63 |
.B hmmbuild |
| 64 |
as match states, a process that requires that all |
| 65 |
.B hmmbuild |
| 66 |
flags impacting that decision be supplied to |
| 67 |
.BR alimask . |
| 68 |
It is for this reason that many of the |
| 69 |
.B hmmbuild |
| 70 |
flags are also used by |
| 71 |
.BR alimask . |
| 72 |
|
| 73 |
|
| 74 |
|
| 75 |
.SH OPTIONS |
| 76 |
|
| 77 |
.TP |
| 78 |
.B \-h |
| 79 |
Help; print a brief reminder of command line usage and all available |
| 80 |
options. |
| 81 |
|
| 82 |
.TP |
| 83 |
.BI \-o " <f>" |
| 84 |
Direct the summary output to file |
| 85 |
.IR <f> , |
| 86 |
rather than to stdout. |
| 87 |
|
| 88 |
|
| 89 |
.SH OPTIONS FOR SPECIFYING MASK RANGE |
| 90 |
|
| 91 |
A single mask range is given as a dash-separated pair, like |
| 92 |
.B "\-\-modelrange 10\-20" |
| 93 |
and multiple ranges may be submitted as a comma-separated list, |
| 94 |
.BR "\-\-modelrange 10\-20,30\-42" . |
| 95 |
|
| 96 |
|
| 97 |
.TP |
| 98 |
.BI \-\-modelrange " <s>" |
| 99 |
Supply the given range(s) in model coordinates. |
| 100 |
|
| 101 |
.TP |
| 102 |
.BI \-\-alirange " <s>" |
| 103 |
Supply the given range(s) in alignment coordinates. |
| 104 |
|
| 105 |
.TP |
| 106 |
.B \-\-appendmask |
| 107 |
Add to the existing mask found with the alignment. |
| 108 |
The default is to overwrite any existing mask. |
| 109 |
|
| 110 |
.TP |
| 111 |
.BI \-\-model2ali " <s>" |
| 112 |
Print model range(s) and the corresponding alignment range(s). |
| 113 |
No masked alignment is produced. |
| 114 |
The output is a single line for each input range, of the form |
| 115 |
.nf |
| 116 |
i..j -> m..n |
| 117 |
.fi |
| 118 |
with i & j representing model range values, and m & n |
| 119 |
representing alignment range values. |
| 120 |
|
| 121 |
.TP |
| 122 |
.BI \-\-ali2model " <s>" |
| 123 |
Print alignment range(s) and the corresponding model range(s). |
| 124 |
No masked alignment is produced. |
| 125 |
Because some alignment positions may not map to model positions, |
| 126 |
the range(s) produced will begin with the first alignment |
| 127 |
position between <from> and <to> (inclusive) that maps to a |
| 128 |
model position, and end with the final alignment position in |
| 129 |
that range that maps to a model position. |
| 130 |
The output is a single line for each input range, of |
| 131 |
the form |
| 132 |
.nf |
| 133 |
i..j -> m..n |
| 134 |
.fi |
| 135 |
with i & j representing alignment range values, and m & n |
| 136 |
representing model range values. |
| 137 |
If no alignment positions in the range <from>..<to> map |
| 138 |
to a model position, the output prints the input <from> |
| 139 |
and <to> mapping to nothing, with the format: |
| 140 |
.nf |
| 141 |
i..j -> \-..\- (no map) . |
| 142 |
.fi |
| 143 |
|
| 144 |
|
| 145 |
.SH OPTIONS FOR SPECIFYING THE ALPHABET |
| 146 |
|
| 147 |
.TP |
| 148 |
.B \-\-amino |
| 149 |
Assert that sequences in |
| 150 |
.I msafile |
| 151 |
are protein, bypassing alphabet autodetection. |
| 152 |
|
| 153 |
.TP |
| 154 |
.B \-\-dna |
| 155 |
Assert that sequences in |
| 156 |
.I msafile |
| 157 |
are DNA, bypassing alphabet autodetection. |
| 158 |
|
| 159 |
.TP |
| 160 |
.B \-\-rna |
| 161 |
Assert that sequences in |
| 162 |
.I msafile |
| 163 |
are RNA, bypassing alphabet autodetection. |
| 164 |
|
| 165 |
|
| 166 |
|
| 167 |
.SH OPTIONS CONTROLLING PROFILE CONSTRUCTION |
| 168 |
|
| 169 |
These options control how consensus columns are defined in an alignment. |
| 170 |
|
| 171 |
.TP |
| 172 |
.B \-\-fast |
| 173 |
Define consensus columns as those that have a fraction >= |
| 174 |
.B symfrac |
| 175 |
of residues as opposed to gaps. (See below for the |
| 176 |
.B \-\-symfrac |
| 177 |
option.) This is the default. |
| 178 |
|
| 179 |
.TP |
| 180 |
.B \-\-hand |
| 181 |
Define consensus columns in next profile using reference annotation to |
| 182 |
the multiple alignment. |
| 183 |
This allows you to define any consensus columns you like. |
| 184 |
|
| 185 |
.TP |
| 186 |
.BI \-\-symfrac " <x>" |
| 187 |
Define the residue fraction threshold necessary to define a |
| 188 |
consensus column when using the |
| 189 |
.B \-\-fast |
| 190 |
option. The default is 0.5. The symbol fraction in each column |
| 191 |
is calculated after taking relative sequence weighting into account, |
| 192 |
and ignoring gap characters corresponding to ends of sequence |
| 193 |
fragments |
| 194 |
(as opposed to internal insertions/deletions). |
| 195 |
Setting this to 0.0 means that every alignment column will be assigned |
| 196 |
as consensus, which may be useful in some cases. Setting it to 1.0 |
| 197 |
means that only columns that include 0 gaps (internal |
| 198 |
insertions/deletions) will be assigned as consensus. |
| 199 |
|
| 200 |
.TP |
| 201 |
.BI \-\-fragthresh " <x>" |
| 202 |
We only want to count terminal gaps as deletions if the aligned |
| 203 |
sequence is known to be full-length, not if it is a fragment (for |
| 204 |
instance, because only part of it was sequenced). HMMER uses a simple |
| 205 |
rule to infer fragments: if the sequence length L is less than |
| 206 |
or equal to a fraction |
| 207 |
.I <x> |
| 208 |
times the alignment length in columns, |
| 209 |
then the sequence is handled as a fragment. The default is 0.5. |
| 210 |
Setting |
| 211 |
.B \-\-fragthresh 0 |
| 212 |
will define no (nonempty) sequence as a fragment; you might want to do |
| 213 |
this if you know you've got a carefully curated alignment of full-length |
| 214 |
sequences. |
| 215 |
Setting |
| 216 |
.B \-\-fragthresh 1 |
| 217 |
will define all sequences as fragments; you might want to do this if |
| 218 |
you know your alignment is entirely composed of fragments, such as |
| 219 |
translated short reads in metagenomic shotgun data. |
| 220 |
|
| 221 |
|
| 222 |
.SH OPTIONS CONTROLLING RELATIVE WEIGHTS |
| 223 |
|
| 224 |
HMMER uses an ad hoc sequence weighting algorithm to downweight |
| 225 |
closely related sequences and upweight distantly related ones. This |
| 226 |
has the effect of making models less biased by uneven phylogenetic |
| 227 |
representation. For example, two identical sequences would typically |
| 228 |
each receive half the weight that one sequence would. These options |
| 229 |
control which algorithm gets used. |
| 230 |
|
| 231 |
.TP |
| 232 |
.B \-\-wpb |
| 233 |
Use the Henikoff position-based sequence weighting scheme [Henikoff |
| 234 |
and Henikoff, J. Mol. Biol. 243:574, 1994]. This is the default. |
| 235 |
|
| 236 |
.TP |
| 237 |
.B \-\-wgsc |
| 238 |
Use the Gerstein/Sonnhammer/Chothia weighting algorithm [Gerstein et |
| 239 |
al, J. Mol. Biol. 235:1067, 1994]. |
| 240 |
|
| 241 |
.TP |
| 242 |
.B \-\-wblosum |
| 243 |
Use the same clustering scheme that was used to weight data in |
| 244 |
calculating BLOSUM substitution matrices [Henikoff and Henikoff, |
| 245 |
Proc. Natl. Acad. Sci 89:10915, 1992]. Sequences are single-linkage |
| 246 |
clustered at an identity threshold (default 0.62; see |
| 247 |
.BR \-\-wid ) |
| 248 |
and within each cluster of c sequences, each sequence gets relative |
| 249 |
weight 1/c. |
| 250 |
|
| 251 |
.TP |
| 252 |
.B \-\-wnone |
| 253 |
No relative weights. All sequences are assigned uniform weight. |
| 254 |
|
| 255 |
.TP |
| 256 |
.BI \-\-wid " <x>" |
| 257 |
Sets the identity threshold used by single-linkage clustering when |
| 258 |
using |
| 259 |
.BR \-\-wblosum . |
| 260 |
Invalid with any other weighting scheme. Default is 0.62. |
| 261 |
|
| 262 |
|
| 263 |
|
| 264 |
|
| 265 |
|
| 266 |
.SH OTHER OPTIONS |
| 267 |
|
| 268 |
.TP |
| 269 |
.BI \-\-informat " <s>" |
| 270 |
Assert that input |
| 271 |
.I msafile |
| 272 |
is in alignment format |
| 273 |
.IR <s> , |
| 274 |
bypassing format autodetection. |
| 275 |
Common choices for |
| 276 |
.I <s> |
| 277 |
include: |
| 278 |
.BR stockholm , |
| 279 |
.BR a2m , |
| 280 |
.BR afa , |
| 281 |
.BR psiblast , |
| 282 |
.BR clustal , |
| 283 |
.BR phylip . |
| 284 |
For more information, and for codes for some less common formats, |
| 285 |
see main documentation. |
| 286 |
The string |
| 287 |
.I <s> |
| 288 |
is case-insensitive (\fBa2m\fR or \fBA2M\fR both work). |
| 289 |
|
| 290 |
|
| 291 |
.TP |
| 292 |
.BI \-\-outformat " <s>" |
| 293 |
Write the output |
| 294 |
.I postmsafile |
| 295 |
in alignment format |
| 296 |
.IR <s> . |
| 297 |
Common choices for |
| 298 |
.I <s> |
| 299 |
include: |
| 300 |
.BR stockholm , |
| 301 |
.BR a2m , |
| 302 |
.BR afa , |
| 303 |
.BR psiblast , |
| 304 |
.BR clustal , |
| 305 |
.BR phylip . |
| 306 |
The string |
| 307 |
.I <s> |
| 308 |
is case-insensitive (\fBa2m\fR or \fBA2M\fR both work). |
| 309 |
Default is |
| 310 |
.BR stockholm . |
| 311 |
|
| 312 |
|
| 313 |
.TP |
| 314 |
.BI \-\-seed " <n>" |
| 315 |
Seed the random number generator with |
| 316 |
.IR <n> , |
| 317 |
an integer >= 0. |
| 318 |
If |
| 319 |
.I <n> |
| 320 |
is nonzero, any stochastic simulations will be reproducible; the same |
| 321 |
command will give the same results. |
| 322 |
If |
| 323 |
.I <n> |
| 324 |
is 0, the random number generator is seeded arbitrarily, and |
| 325 |
stochastic simulations will vary from run to run of the same command. |
| 326 |
The default seed is 42. |
| 327 |
|
| 328 |
|
| 329 |
|
| 330 |
.SH SEE ALSO |
| 331 |
|
| 332 |
See |
| 333 |
.BR hmmer (1) |
| 334 |
for a master man page with a list of all the individual man pages |
| 335 |
for programs in the HMMER package. |
| 336 |
|
| 337 |
.PP |
| 338 |
For complete documentation, see the user guide that came with your |
| 339 |
HMMER distribution (Userguide.pdf); or see the HMMER web page |
| 340 |
(@HMMER_URL@). |
| 341 |
|
| 342 |
|
| 343 |
|
| 344 |
.SH COPYRIGHT |
| 345 |
|
| 346 |
.nf |
| 347 |
@HMMER_COPYRIGHT@ |
| 348 |
@HMMER_LICENSE@ |
| 349 |
.fi |
| 350 |
|
| 351 |
For additional information on copyright and licensing, see the file |
| 352 |
called COPYRIGHT in your HMMER source distribution, or see the HMMER |
| 353 |
web page |
| 354 |
(@HMMER_URL@). |
| 355 |
|
| 356 |
|
| 357 |
.SH AUTHOR |
| 358 |
|
| 359 |
.nf |
| 360 |
http://eddylab.org |
| 361 |
.fi |
| 362 |
|