Debian Codegraph @

hmmer/documentation/man/hmmbuild.man.in

raw
1 .TH "hmmbuild" 1 "@HMMER_DATE@" "HMMER @HMMER_VERSION@" "HMMER Manual"
2
3 .SH NAME
4 hmmbuild \- construct profiles from multiple sequence alignments
5
6 .SH SYNOPSIS
7 .B hmmbuild
8 [\fIoptions\fR]
9 .I hmmfile
10 .I msafile
11
12
13 .SH DESCRIPTION
14
15 For each multiple sequence alignment in
16 .I msafile
17 build a profile HMM
18 and save it to a new file
19 .IR hmmfile .
20
21
22 .PP
23 .I msafile
24 may be '\-' (dash), which means
25 reading this input from stdin rather than a file.
26
27
28 .PP
29 .I hmmfile
30 may not be '\-' (stdout), because sending the HMM file to stdout would
31 conflict with the other text output of the program.
32
33
34
35
36 .SH OPTIONS
37
38 .TP
39 .B \-h
40 Help; print a brief reminder of command line usage and all available
41 options.
42
43 .TP
44 .BI \-n " <s>"
45 Name the new profile
46 .IR <s> .
47 The default is to use the name of the alignment (if one is present in
48 the
49 .IR msafile ,
50 or, failing that, the name of the
51 .IR hmmfile .
52 If
53 .I msafile
54 contains more than one alignment,
55 .B \-n
56 doesn't work, and every alignment must have a name
57 annotated in the
58 .I msafile
59 (as in Stockholm #=GF ID annotation).
60
61
62 .TP
63 .BI \-o " <f>"
64 Direct the summary output to file
65 .IR <f> ,
66 rather than to stdout.
67
68 .TP
69 .BI \-O " <f>"
70 After each model is constructed, resave annotated, possibly modified
71 source alignments to a file
72 .I <f>
73 in Stockholm format.
74 The alignments are annotated with a reference annotation line
75 indicating which columns were assigned as consensus, and sequences are
76 annotated with what relative sequence weights were assigned. Some
77 residues of the alignment may have been shifted to accommodate
78 restrictions of the Plan7 profile architecture, which disallows
79 transitions between insert and delete states.
80
81
82 .SH OPTIONS FOR SPECIFYING THE ALPHABET
83
84 .TP
85 .B \-\-amino
86 Assert that sequences in
87 .I msafile
88 are protein, bypassing alphabet autodetection.
89
90 .TP
91 .B \-\-dna
92 Assert that sequences in
93 .I msafile
94 are DNA, bypassing alphabet autodetection.
95
96 .TP
97 .B \-\-rna
98 Assert that sequences in
99 .I msafile
100 are RNA, bypassing alphabet autodetection.
101
102 .SH OPTIONS CONTROLLING PROFILE CONSTRUCTION
103
104 These options control how consensus columns are defined in an alignment.
105
106 .TP
107 .B \-\-fast
108 Define consensus columns as those that have a fraction >=
109 .B symfrac
110 of residues as opposed to gaps. (See below for the
111 .B \-\-symfrac
112 option.) This is the default.
113
114 .TP
115 .B \-\-hand
116 Define consensus columns in next profile using reference annotation to
117 the multiple alignment.
118 This allows you to define any consensus columns you like.
119
120 .TP
121 .BI \-\-symfrac " <x>"
122 Define the residue fraction threshold necessary to define a
123 consensus column when using the
124 .B \-\-fast
125 option. The default is 0.5. The symbol fraction in each column
126 is calculated after taking relative sequence weighting into account,
127 and ignoring gap characters corresponding to ends of sequence
128 fragments
129 (as opposed to internal insertions/deletions).
130 Setting this to 0.0 means that every alignment column will be assigned
131 as consensus, which may be useful in some cases. Setting it to 1.0
132 means that only columns that include 0 gaps (internal
133 insertions/deletions) will be assigned as consensus.
134
135 .TP
136 .BI \-\-fragthresh " <x>"
137 We only want to count terminal gaps as deletions if the aligned
138 sequence is known to be full-length, not if it is a fragment (for
139 instance, because only part of it was sequenced). HMMER uses a simple
140 rule to infer fragments: if the range of a sequence in the alignment
141 (the number of alignment columns between the first and last positions
142 of the sequence) is less than or equal to a fraction
143 .I <x>
144 times the alignment length in columns,
145 then the sequence is handled as a fragment. The default is 0.5.
146 Setting
147 .B \-\-fragthresh 0
148 will define no (nonempty) sequence as a fragment; you might want to do
149 this if you know you've got a carefully curated alignment of full\-length
150 sequences.
151 Setting
152 .B \-\-fragthresh 1
153 will define all sequences as fragments; you might want to do this if
154 you know your alignment is entirely composed of fragments, such as
155 translated short reads in metagenomic shotgun data.
156
157
158 .SH OPTIONS CONTROLLING RELATIVE WEIGHTS
159
160 HMMER uses an ad hoc sequence weighting algorithm to downweight
161 closely related sequences and upweight distantly related ones. This
162 has the effect of making models less biased by uneven phylogenetic
163 representation. For example, two identical sequences would typically
164 each receive half the weight that one sequence would. These options
165 control which algorithm gets used.
166
167 .TP
168 .B \-\-wpb
169 Use the Henikoff position-based sequence weighting scheme [Henikoff
170 and Henikoff, J. Mol. Biol. 243:574, 1994]. This is the default.
171
172 .TP
173 .B \-\-wgsc
174 Use the Gerstein/Sonnhammer/Chothia weighting algorithm [Gerstein et
175 al, J. Mol. Biol. 235:1067, 1994].
176
177 .TP
178 .B \-\-wblosum
179 Use the same clustering scheme that was used to weight data in
180 calculating BLOSUM substitution matrices [Henikoff and Henikoff,
181 Proc. Natl. Acad. Sci 89:10915, 1992]. Sequences are single-linkage
182 clustered at an identity threshold (default 0.62; see
183 .BR \-\-wid )
184 and within each cluster of c sequences, each sequence gets relative
185 weight 1/c.
186
187 .TP
188 .B \-\-wnone
189 No relative weights. All sequences are assigned uniform weight.
190
191 .TP
192 .BI \-\-wid " <x>"
193 Sets the identity threshold used by single-linkage clustering when
194 using
195 .BR \-\-wblosum .
196 Invalid with any other weighting scheme. Default is 0.62.
197
198
199
200
201 .SH OPTIONS CONTROLLING EFFECTIVE SEQUENCE NUMBER
202
203 After relative weights are determined, they are normalized to sum to a
204 total effective sequence number,
205 .IR eff_nseq .
206 This number may be the actual number of sequences in the alignment,
207 but it is almost always smaller than that.
208 The default entropy weighting method
209 (\fB\-\-eent\fR)
210 reduces the effective sequence
211 number to reduce the information content (relative entropy, or average
212 expected score on true homologs) per consensus position. The target
213 relative entropy is controlled by a two-parameter function, where the
214 two parameters are settable with
215 .B \-\-ere
216 and
217 .BR \-\-esigma .
218
219 .TP
220 .B \-\-eent
221 Adjust effective sequence number to achieve a specific relative entropy
222 per position (see
223 .BR \-\-ere ).
224 This is the default.
225
226 .TP
227 .B \-\-eclust
228 Set effective sequence number to the number of single-linkage clusters
229 at a specific identity threshold (see
230 .BR \-\-eid ).
231 This option is not recommended; it's for experiments evaluating
232 how much better
233 .B \-\-eent
234 is.
235
236 .TP
237 .B \-\-enone
238 Turn off effective sequence number determination and just use the
239 actual number of sequences. One reason you might want to do this is
240 to try to maximize the relative entropy/position of your model, which
241 may be useful for short models.
242
243 .TP
244 .BI \-\-eset " <x>"
245 Explicitly set the effective sequence number for all models to
246 .IR <x> .
247
248 .TP
249 .BI \-\-ere " <x>"
250 Set the minimum relative entropy/position target to
251 .IR <x> .
252 Requires
253 .BR \-\-eent .
254 Default depends on the sequence alphabet. For protein
255 sequences, it is 0.59 bits/position; for nucleotide
256 sequences, it is 0.45 bits/position.
257
258 .TP
259 .BI \-\-esigma " <x>"
260 Sets the minimum relative entropy contributed by an entire
261 model alignment, over its whole length. This has the effect
262 of making short models have
263 higher relative entropy per position than
264 .B \-\-ere
265 alone would give. The default is 45.0 bits.
266
267 .TP
268 .BI \-\-eid " <x>"
269 Sets the fractional pairwise identity cutoff used by
270 single linkage clustering with the
271 .B \-\-eclust
272 option. The default is 0.62.
273
274
275 .SH OPTIONS CONTROLLING PRIORS
276
277 By default, weighted counts are converted to mean posterior
278 probability parameter estimates using mixture Dirichlet priors.
279 Default mixture Dirichlet prior parameters for protein models and for
280 nucleic acid (RNA and DNA) models are built in. The following options
281 allow you to override the default priors.
282
283 .TP
284 .B \-\-pnone
285 Don't use any priors. Probability parameters will simply be the
286 observed frequencies, after relative sequence weighting.
287
288 .TP
289 .B \-\-plaplace
290 Use a Laplace +1 prior in place of the default mixture Dirichlet
291 prior.
292
293
294
295
296 .SH OPTIONS CONTROLLING SINGLE SEQUENCE SCORING
297
298 By default, if a query is a single sequence from a file in
299 .IR fasta
300 format,
301 .B hmmbuild
302 constructs a search model from that sequence and a standard
303 20x20 substitution matrix for residue probabilities, along with two
304 additional parameters for position-independent gap open and gap extend
305 probabilities. These options allow the default single-sequence scoring
306 parameters to be changed, and for single-sequence scoring options to
307 be applied to a single sequence coming from an aligned format.
308
309 .TP
310 .BI \-\-singlemx
311 If a single sequence query comes from a multiple sequence alignment file,
312 such as in
313 .IR stockholm
314 format, the search model is by default constructed as is typically done
315 for multiple sequence alignments. This option forces
316 .B hmmbuild
317 to use the single-sequence method with substitution score matrix.
318
319 .TP
320 .BI \-\-mx " <s>"
321 Obtain residue alignment probabilities from the built-in
322 substitution matrix named
323 .IR <s> .
324 Several standard matrices are built-in, and do not need to be
325 read from files.
326 The matrix name
327 .I <s>
328 can be
329 PAM30, PAM70, PAM120, PAM240, BLOSUM45, BLOSUM50, BLOSUM62, BLOSUM80,
330 BLOSUM90, or DNA1.
331 Only one of the
332 .B \-\-mx
333 and
334 .B \-\-mxfile
335 options may be used.
336
337 .TP
338 .BI \-\-mxfile " <mxfile>"
339 Obtain residue alignment probabilities from the substitution matrix
340 in file
341 .IR <mxfile> .
342 The default score matrix is BLOSUM62 for protein sequences, and
343 DNA1 for nucleotide sequences (these matrices are internal to
344 HMMER and do not need to be available as a file).
345 The format of a substitution matrix
346 .I <mxfile>
347 is the standard format accepted by BLAST, FASTA, and other sequence
348 analysis software.
349 See ftp.ncbi.nlm.nih.gov/blast/matrices/ for example files. (The only
350 exception: we require matrices to be square, so for DNA, use files
351 like NCBI's NUC.4.4, not NUC.4.2.)
352
353 .TP
354 .BI \-\-popen " <x>"
355 Set the gap open probability for a single sequence query model to
356 .IR <x> .
357 The default is 0.02.
358 .I <x>
359 must be >= 0 and < 0.5.
360
361 .TP
362 .BI \-\-pextend " <x>"
363 Set the gap extend probability for a single sequence query model to
364 .IR <x> .
365 The default is 0.4.
366 .I <x>
367 must be >= 0 and < 1.0.
368
369
370 .SH OPTIONS CONTROLLING E-VALUE CALIBRATION
371
372 The location parameters for the expected score distributions for MSV
373 filter scores, Viterbi filter scores, and Forward scores require three
374 short random sequence simulations.
375
376 .TP
377 .BI \-\-EmL " <n>"
378 Sets the sequence length in simulation that estimates the location
379 parameter mu for MSV filter E-values. Default is 200.
380
381 .TP
382 .BI \-\-EmN " <n>"
383 Sets the number of sequences in simulation that estimates the location
384 parameter mu for MSV filter E-values. Default is 200.
385
386 .TP
387 .BI \-\-EvL " <n>"
388 Sets the sequence length in simulation that estimates the location
389 parameter mu for Viterbi filter E-values. Default is 200.
390
391 .TP
392 .BI \-\-EvN " <n>"
393 Sets the number of sequences in simulation that estimates the location
394 parameter mu for Viterbi filter E-values. Default is 200.
395
396 .TP
397 .BI \-\-EfL " <n>"
398 Sets the sequence length in simulation that estimates the location
399 parameter tau for Forward E-values. Default is 100.
400
401 .TP
402 .BI \-\-EfN " <n>"
403 Sets the number of sequences in simulation that estimates the location
404 parameter tau for Forward E-values. Default is 200.
405
406 .TP
407 .BI \-\-Eft " <x>"
408 Sets the tail mass fraction to fit in the simulation that estimates
409 the location parameter tau for Forward evalues. Default is 0.04.
410
411
412 .SH OTHER OPTIONS
413
414 .TP
415 .BI \-\-cpu " <n>"
416 Set the number of parallel worker threads to
417 .IR <n> .
418 On multicore machines, the default is 2.
419 You can also control this number by setting an environment variable,
420 .IR HMMER_NCPU .
421 There is also a master thread, so the actual number of threads that
422 HMMER spawns is
423 .IR <n> +1.
424
425 This option is not available if HMMER was compiled with POSIX threads
426 support turned off.
427
428
429
430 .TP
431 .BI \-\-informat " <s>"
432 Assert that input
433 .I msafile
434 is in alignment format
435 .IR <s> ,
436 bypassing format autodetection.
437 Common choices for
438 .I <s>
439 include:
440 .BR stockholm ,
441 .BR a2m ,
442 .BR afa ,
443 .BR psiblast ,
444 .BR clustal ,
445 .BR phylip .
446 For more information, and for codes for some less common formats,
447 see main documentation.
448 The string
449 .I <s>
450 is case-insensitive (\fBa2m\fR or \fBA2M\fR both work).
451
452
453 .TP
454 .BI \-\-seed " <n>"
455 Seed the random number generator with
456 .IR <n> ,
457 an integer >= 0.
458 If
459 .I <n>
460 is nonzero, any stochastic simulations will be reproducible; the same
461 command will give the same results.
462 If
463 .I <n>
464 is 0, the random number generator is seeded arbitrarily, and
465 stochastic simulations will vary from run to run of the same command.
466 The default seed is 42.
467
468
469 .TP
470 .BI \-\-w_beta " <x>"
471 Window length tail mass.
472 The upper bound,
473 .IR W ,
474 on the length at which nhmmer expects to find an instance of the
475 model is set such that the fraction of all sequences generated
476 by the model with length
477 .I ">= W"
478 is less than
479 .IR <x> .
480 The default is 1e-7.
481
482
483
484 .TP
485 .BI \-\-w_length " <n>"
486 Override the model instance length upper bound,
487 .IR W ,
488 which is otherwise controlled by
489 .BR \-\-w_beta .
490 It should be larger than the model length. The value of
491 .I W
492 is used deep in the acceleration pipeline, and modest changes
493 are not expected to impact results (though larger values of
494 .I W
495 do lead to longer run time).
496
497
498 .TP
499 .B \-\-mpi
500 Run as a parallel MPI program. Each alignment is assigned to a MPI
501 worker node for construction. (Therefore, the maximum parallelization
502 cannot exceed the number of alignments in the input
503 .IR msafile .)
504 This is useful when building large profile libraries. This option is
505 only available if optional MPI capability was enabled at compile-time.
506
507
508 .TP
509 .B \-\-stall
510 For debugging MPI parallelization: arrest program execution
511 immediately after start, and wait for a debugger to attach to the
512 running process and release the arrest.
513
514
515 .TP
516 .BI \-\-maxinsertlen " <n>"
517 Restrict insert length parameterization such that the expected
518 insert length at each position of the model is no more than
519 .IR <n> .
520
521
522
523
524 .SH SEE ALSO
525
526 See
527 .BR hmmer (1)
528 for a master man page with a list of all the individual man pages
529 for programs in the HMMER package.
530
531 .PP
532 For complete documentation, see the user guide that came with your
533 HMMER distribution (Userguide.pdf); or see the HMMER web page
534 (@HMMER_URL@).
535
536
537
538 .SH COPYRIGHT
539
540 .nf
541 @HMMER_COPYRIGHT@
542 @HMMER_LICENSE@
543 .fi
544
545 For additional information on copyright and licensing, see the file
546 called COPYRIGHT in your HMMER source distribution, or see the HMMER
547 web page
548 (@HMMER_URL@).
549
550
551 .SH AUTHOR
552
553 .nf
554 http://eddylab.org
555 .fi
556