Debian Codegraph @

hmmer/documentation/man/nhmmer.man.in

raw
1 .TH "nhmmer" 1 "@HMMER_DATE@" "HMMER @HMMER_VERSION@" "HMMER Manual"
2
3 .SH NAME
4 nhmmer \- search DNA queries against a DNA sequence database
5
6
7 .SH SYNOPSIS
8 .B nhmmer
9 [\fIoptions\fR]
10 .I queryfile
11 .I seqdb
12
13
14 .SH DESCRIPTION
15
16 .PP
17 .B nhmmer
18 is used to search one or more nucleotide queries against a
19 nucleotide sequence database.
20 For each query in
21 .IR queryfile ,
22 use that query to search the target database of sequences in
23 .IR seqdb ,
24 and output a ranked list of the hits with the most significant
25 matches to the query. A query may be either a profile model
26 built using
27 .BR hmmbuild ,
28 a sequence alignment, or a single sequence. Sequence based
29 queries can be in a number of formats (see
30 .BR \-\-qformat ),
31 and can typically be autodetected. Note that only
32 Stockholm
33 format supports queries made up of more than one sequence
34 alignment.
35
36
37
38 .PP
39 Either the query
40 .I queryfile
41 or the target
42 .I seqdb
43 may be '\-' (a dash character), in which case
44 the query file or target database input will be read from a <stdin> pipe instead of from a
45 file. Only one input source can come through <stdin>, not both.
46 If the
47 .I queryfile
48 contains more than one query, then
49 .I seqdb
50 cannot come from stdin, because we can't rewind the
51 streaming target database to search it with another profile.
52
53 .PP
54 If the query is sequence-based (unaligned or aligned),
55 a new file containing the HMM(s) built from the input(s) in
56 .I queryfile
57 may optionally be produced, with the filename set using the
58 .B \-\-hmmout
59 flag.
60
61
62 .PP
63 The output format is designed to be human-readable, but is often so
64 voluminous that reading it is impractical, and parsing it is a pain. The
65 .B \-\-tblout
66 option saves output in a simple tabular format that is concise and
67 easier to parse.
68 The
69 .B \-o
70 option allows redirecting the main output, including throwing it away
71 in /dev/null.
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
83
84 .SH OPTIONS FOR CONTROLLING OUTPUT
85
86 .TP
87 .BI \-o " <f>"
88 Direct the main human-readable output to a file
89 .I <f>
90 instead of the default stdout.
91
92 .TP
93 .BI \-A " <f>"
94 Save a multiple alignment of all significant hits (those satisfying
95 "inclusion thresholds") to the file
96 .IR <f> .
97
98 .TP
99 .BI \-\-tblout " <f>"
100 Save a simple tabular (space-delimited) file summarizing the
101 per-target output, with one data line per homologous target sequence
102 found.
103
104 .TP
105 .BI \-\-dfamtblout " <f>"
106 Save a tabular (space-delimited) file summarizing the
107 per-hit output, similar to
108 .B \-\-tblout
109 but more succinct.
110
111 .TP
112 .BI \-\-aliscoresout " <f>"
113 Save to file a list of per-position scores for each hit.
114 This is useful, for example, in identifying regions of high
115 score density for use in resolving overlapping hits from
116 different models.
117
118 .TP
119 .BI \-\-hmmout " <f>"
120 If
121 .I queryfile
122 is sequence-based, write the internally-computed HMM(s) to file
123 .IR <f> .
124
125
126 .TP
127 .B \-\-acc
128 Use accessions instead of names in the main output, where available
129 for profiles and/or sequences.
130
131 .TP
132 .B \-\-noali
133 Omit the alignment section from the main output. This can greatly
134 reduce the output volume.
135
136 .TP
137 .B \-\-notextw
138 Unlimit the length of each line in the main output. The default
139 is a limit of 120 characters per line, which helps in displaying
140 the output cleanly on terminals and in editors, but can truncate
141 target profile description lines.
142
143 .TP
144 .BI \-\-textw " <n>"
145 Set the main output's line length limit to
146 .I <n>
147 characters per line. The default is 120.
148
149
150
151 .SH OPTIONS CONTROLLING SINGLE SEQUENCE SCORING
152
153 By default, if a query is a single sequence from a file in
154 fasta format,
155 .B nhmmer
156 uses a search model constructed from that sequence and a standard
157 20x20 substitution matrix for residue probabilities, along with two
158 additional parameters for position-independent gap open and gap extend
159 probabilities. These options allow the default single-sequence scoring
160 parameters to be changed, and for single-sequence scoring options to
161 be applied to a single sequence coming from an aligned format.
162
163 .TP
164 .BI \-\-singlemx
165 If a single sequence query comes from a multiple sequence alignment file,
166 such as in Stockholm format, the search model is by default constructed as is typically done
167 for multiple sequence alignments. This option forces
168 .B nhmmer
169 to use the single-sequence method with substitution score matrix.
170
171 .TP
172 .BI \-\-mxfile "<mxfile"
173 Obtain residue alignment probabilities from the substitution matrix
174 in file
175 .IR mxfile .
176 The default score matrix is DNA1 (this matrix is internal to
177 HMMER and does not have to be available as a file).
178 The format of a substitution matrix
179 .I mxfile
180 is the standard format accepted by BLAST, FASTA, and other sequence
181 analysis software.
182 See
183 .B ftp.ncbi.nlm.nih.gov/blast/matrices/
184 for example files. (The only
185 exception: we require matrices to be square, so for DNA, use files
186 like NCBI's NUC.4.4, not NUC.4.2.)
187
188
189 .TP
190 .BI \-\-popen " <x>"
191 Set the gap open probability for a single sequence query model to
192 .IR <x> .
193 The default is 0.02.
194 .I <x>
195 must be >= 0 and < 0.5.
196
197 .TP
198 .BI \-\-pextend " <x>"
199 Set the gap extend probability for a single sequence query model to
200 .IR <x> .
201 The default is 0.4.
202 .I <x>
203 must be >= 0 and < 1.0.
204
205
206
207 .SH OPTIONS CONTROLLING REPORTING THRESHOLDS
208
209 Reporting thresholds control which hits are reported in output files
210 (the main output,
211 .BR \-\-tblout ,
212 and
213 .BR \-\-dfamtblout ).
214 Hits are ranked by statistical significance (E-value).
215
216
217 .TP
218 .BI \-E " <x>"
219 Report target sequences with an E-value of <=
220 .IR <x> .
221 The default is 10.0, meaning that on average, about 10 false positives
222 will be reported per query, so you can see the top of the noise
223 and decide for yourself if it's really noise.
224
225 .TP
226 .BI \-T " <x>"
227 Instead of thresholding output on E-value, instead
228 report target sequences with a bit score of >=
229 .IR <x> .
230
231
232
233
234 .SH OPTIONS FOR INCLUSION THRESHOLDS
235
236 Inclusion thresholds are stricter than reporting thresholds.
237 Inclusion thresholds control which hits are considered to be reliable
238 enough to be included in an output alignment or a subsequent search
239 round, or marked as significant ("!") as opposed to questionable ("?")
240 in hit output.
241
242 .TP
243 .BI \-\-incE " <x>"
244 Use an E-value of <=
245 .I <x>
246 as the inclusion threshold.
247 The default is 0.01, meaning that on average, about 1 false positive
248 would be expected in every 100 searches with different query
249 sequences.
250
251 .TP
252 .BI \-\-incT " <x>"
253 Instead of using E-values for setting the inclusion threshold,
254 use a bit score of >=
255 .I <x>
256 as the inclusion threshold.
257 By default this option is unset.
258
259
260
261 .SH OPTIONS FOR MODEL-SPECIFIC SCORE THRESHOLDING
262
263 Curated profile databases may define specific bit score thresholds for
264 each profile, superseding any thresholding based on statistical
265 significance alone.
266
267 To use these options, the profile must contain the appropriate (GA,
268 TC, and/or NC) optional score threshold annotation; this is picked up
269 by
270 .B hmmbuild
271 from Stockholm format alignment files. For a nucleotide model, each
272 thresholding option has a single per-hit threshold <x>
273 This acts as if
274 .BI \-T " <x>"
275 .BI \-\-incT " <x>"
276 has been applied specifically using each model's curated thresholds.
277
278 .TP
279 .B \-\-cut_ga
280 Use the GA (gathering) bit score threshold in the model to set
281 per-hit reporting and inclusion
282 thresholds. GA thresholds are generally considered to be the
283 reliable curated thresholds defining family membership; for example,
284 in Dfam, these thresholds are applied when annotating a genome
285 with a model of a family known to be found in that organism. They
286 may allow for minimal expected false discovery rate.
287
288 .TP
289 .B \-\-cut_nc
290 Use the NC (noise cutoff) bit score threshold in the model to set
291 per-hit reporting and inclusion
292 thresholds. NC thresholds are less stringent than GA; in the context
293 of Pfam, they are generally used to store the score of the
294 highest-scoring known false positive.
295
296 .TP
297 .B \-\-cut_tc
298 Use the TC (trusted cutoff) bit score threshold in the model to set
299 per-hit reporting and inclusion
300 thresholds. TC thresholds are more stringent than GA, and are
301 generally considered to be the score of the lowest-scoring known
302 true positive that is above all known false positives; for example,
303 in Dfam, these thresholds are applied when annotating a genome
304 with a model of a family not known to be found in that organism.
305
306
307
308
309 .SH OPTIONS CONTROLLING THE ACCELERATION PIPELINE
310
311 HMMER3 searches are accelerated in a three-step filter pipeline: the
312 scanning-SSV filter, the Viterbi filter, and the Forward filter. The
313 first filter is the fastest and most approximate; the last is the full
314 Forward scoring algorithm. There is also a bias filter step between
315 SSV and Viterbi. Targets that pass all the steps in the acceleration
316 pipeline are then subjected to postprocessing -- domain
317 identification and scoring using the Forward/Backward algorithm.
318
319 Changing filter thresholds only removes or includes targets from
320 consideration; changing filter thresholds does not alter bit scores,
321 E-values, or alignments, all of which are determined solely in
322 postprocessing.
323
324 .TP
325 .B \-\-max
326 Turn off (nearly) all filters, including the bias filter, and run full
327 Forward/Backward postprocessing on most of the target sequence.
328 In contrast to
329 .B phmmer
330 and
331 .BR hmmsearch ,
332 where this flag really does turn off the filters entirely, the
333 .B \-\-max
334 flag in
335 .B nhmmer
336 sets the scanning-SSV filter threshold to 0.4, not 1.0. Use of this
337 flag increases sensitivity somewhat, at a large cost in speed.
338
339 .TP
340 .BI \-\-F1 " <x>"
341 Set the P-value threshold for the SSV filter step. The default is
342 0.02, meaning that roughly 2% of the highest scoring nonhomologous
343 targets are expected to pass the filter.
344
345 .TP
346 .BI \-\-F2 " <x>"
347 Set the P-value threshold for the Viterbi filter step.
348 The default is 0.001.
349
350 .TP
351 .BI \-\-F3 " <x>"
352 Set the P-value threshold for the Forward filter step.
353 The default is 1e-5.
354
355 .TP
356 .B \-\-nobias
357 Turn off the bias filter. This increases sensitivity somewhat, but can
358 come at a high cost in speed, especially if the query has biased
359 residue composition (such as a repetitive sequence region, or if it is
360 a membrane protein with large regions of hydrophobicity). Without the
361 bias filter, too many sequences may pass the filter with biased
362 queries, leading to slower than expected performance as the
363 computationally intensive Forward/Backward algorithms shoulder an
364 abnormally heavy load.
365
366
367
368 .SH OPTIONS FOR SPECIFYING THE ALPHABET
369
370 .TP
371 .B \-\-dna
372 Assert that sequences in
373 .I msafile
374 are DNA, bypassing alphabet autodetection.
375
376 .TP
377 .B \-\-rna
378 Assert that sequences in
379 .I msafile
380 are RNA, bypassing alphabet autodetection.
381
382
383
384 .SH OPTIONS CONTROLLING SEED SEARCH HEURISTIC
385
386 When searching with
387 .BR nhmmer ,
388 one may optionally precompute a binary version of the target database, using
389 .BR makehmmerdb ,
390 then search against that database. Using default settings, this yields a
391 roughly 10-fold acceleration with small loss of sensitivity on benchmarks.
392 This is achieved using a heuristic method that searches for seeds (ungapped
393 alignments) around which full processing is done. This is essentially
394 a replacement to the SSV stage. (This method has been extensively tested,
395 but should still be treated as somewhat experimental.)
396 The following options only impact
397 .B nhmmer
398 if the value of
399 .B \-\-tformat
400 is
401 .BR hmmerdb .
402
403 Changing parameters for this seed-finding step will impact both speed and
404 sensitivity - typically faster search leads to lower sensitivity.
405
406 .TP
407 .BI \-\-seed_max_depth " <n>"
408 The seed step requires that a seed reach a specified bit score in length
409 no longer than
410 .IR <n> .
411 By default, this value is 15. Longer seeds allow a greater chance of
412 meeting the bit score threshold, leading to diminished filtering
413 (greater sensitivity, slower run time).
414
415 .TP
416 .BI \-\-seed_sc_thresh " <x>"
417 The seed must reach score
418 .I <x>
419 (in bits). The default is 15.0 bits. A higher threshold increases
420 filtering stringency, leading to faster run times and lower
421 sensitivity.
422
423 .TP
424 .BI \-\-seed_sc_density " <x>"
425 Either all prefixes or all suffixes of a seed must have
426 bit density (bits per aligned position) of at least
427 .IR <x> .
428 The default is 0.8 bits/position. An increase in the density
429 requirement leads to increased filtering stringency, thus faster
430 run times and lower sensitivity.
431
432 .TP
433 .BI \-\-seed_drop_max_len " <n>"
434 A seed may not have a run of length
435 .I <n>
436 in which the score drops by
437 .B \-\-seed_drop_lim
438 or more. Basically, this prunes seeds that go through long
439 slightly-negative seed extensions. The default is 4. Increasing
440 the limit causes (slightly) diminished filtering efficiency, thus
441 slower run times and higher sensitivity. (minor tuning option)
442
443 .TP
444 .BI \-\-seed_drop_lim " <x>"
445 In a seed, there may be no run of length
446 .B \-\-seed_drop_max_len
447 in which the score drops by
448 .BR \-\-seed_drop_lim .
449 The default is 0.3 bits. Larger numbers mean less filtering.
450 (minor tuning option)
451
452 .TP
453 .BI \-\-seed_req_pos " <n>"
454 A seed must contain a run of at least
455 .I <n>
456 positive-scoring matches. The default is 5. Larger values mean
457 increased filtering.
458 (minor tuning option)
459
460 .TP
461 .BI \-\-seed_ssv_length " <n>"
462 After finding a short seed, an ungapped alignment is extended
463 in both directions in an attempt to meet the
464 .B \-\-F1
465 score threshold. The window through which this ungapped alignment
466 extends is length
467 .IR <n> .
468 The default is 70.
469 Decreasing this value slightly reduces run time, at a small risk of
470 reduced sensitivity. (minor tuning option)
471
472
473 .SH OTHER OPTIONS
474
475
476 .TP
477 .BI \-\-qformat " <s>"
478 Assert that input
479 .I queryfile
480 is a sequence file (unaligned or aligned), in format
481 .IR <s> ,
482 bypassing format autodetection.
483 Common choices for
484 .I <s>
485 include:
486 .BR fasta ,
487 .BR embl ,
488 .BR genbank.
489 Alignment formats also work, and will serve as the
490 basis for automatic creation of a profile HMM used for
491 searching;
492 common choices include:
493 .BR stockholm ,
494 .BR a2m ,
495 .BR afa ,
496 .BR psiblast ,
497 .BR clustal ,
498 .BR phylip .
499 For more information, and for codes for some less common formats,
500 see main documentation.
501
502
503 .TP
504 .BI \-\-qsingle_seqs
505 Force
506 .I queryfile
507 to be read as individual sequences, even if it is in
508 an msa format. For example, if the input is in aligned
509 .BR stockholm
510 format, the
511 .BR \-\-qsingle_seqs
512 flag will cause each sequence in that alignment to be used as a separate query sequence.
513
514 .TP
515 .BI \-\-tformat " <s>"
516 Assert that target sequence database
517 .I seqdb
518 is in format
519 .IR <s> ,
520 bypassing format autodetection.
521 Common choices for
522 .I <s>
523 include:
524 .BR fasta ,
525 .BR embl ,
526 .BR genbank ,
527 .BR fmindex .
528 Alignment formats also work;
529 common choices include:
530 .BR stockholm ,
531 .BR a2m ,
532 .BR afa ,
533 .BR psiblast ,
534 .BR clustal ,
535 .BR phylip .
536 For more information, and for codes for some less common formats,
537 see main documentation.
538 The string
539 .I <s>
540 is case-insensitive (\fBfasta\fR or \fBFASTA\fR both work).
541 The format
542 .B fmindex
543 indicates that the database file is a binary file produced using
544 .BR makehmmerdb .
545
546
547 .TP
548 .B \-\-nonull2
549 Turn off the null2 score corrections for biased composition.
550
551 .TP
552 .BI \-Z " <x>"
553 For the purposes of per-hit E-value calculations,
554 Assert that the total size of the target database is
555 .I <x>
556 million nucleotides,
557 rather than the actual number of targets seen.
558
559
560 .TP
561 .BI \-\-seed " <n>"
562 Set the random number seed to
563 .IR <n> .
564 Some steps in postprocessing require Monte Carlo simulation. The
565 default is to use a fixed seed (42), so that results are exactly
566 reproducible. Any other positive integer will give different (but also
567 reproducible) results. A choice of 0 uses a randomly chosen seed.
568
569
570 .TP
571 .BI \-\-w_beta " <x>"
572 Window length tail mass.
573 The upper bound,
574 .IR W ,
575 on the length at which nhmmer expects to find an instance of the
576 model is set such that the fraction of all sequences generated
577 by the model with length >= W is less than
578 .IR <x> .
579 The default is 1e-7.
580 This flag may be used to override the value of
581 .I W
582 established for the model by
583 .BR hmmbuild ,
584 or when the query is sequence-based.
585
586
587
588 .TP
589 .BI \-\-w_length " <n>"
590 Override the model instance length upper bound, W,
591 which is otherwise controlled by
592 .BR \-\-w_beta .
593 It should be larger than the model length. The value of W
594 is used deep in the acceleration pipeline, and modest changes
595 are not expected to impact results (though larger values of W
596 do lead to longer run time).
597 This flag may be used to override the value of
598 W established for the model by
599 .BR hmmbuild ,
600 or when the query is sequence-based.
601
602
603
604 .TP
605 .B \-\-watson
606 Only search the top strand. By default both the query sequence
607 and its reverse-complement are searched.
608
609 .TP
610 .B \-\-crick
611 Only search the bottom (reverse-complement) strand. By
612 default both the query sequence and its reverse-complement are searched.
613
614
615 .TP
616 .BI \-\-cpu " <n>"
617 Set the number of parallel worker threads to
618 .IR <n> .
619 On multicore machines, the default is 2.
620 You can also control this number by setting an environment variable,
621 .IR HMMER_NCPU .
622 There is also a master thread, so the actual number of threads that
623 HMMER spawns is
624 .IR <n> +1.
625
626 This option is not available if HMMER was compiled with POSIX threads
627 support turned off.
628
629
630
631
632 .TP
633 .BI \-\-stall
634 For debugging the MPI master/worker version: pause after start, to
635 enable the developer to attach debuggers to the running master and
636 worker(s) processes. Send SIGCONT signal to release the pause.
637 (Under gdb:
638 .BR "(gdb) signal SIGCONT" )
639 (Only available if optional MPI support was enabled at compile-time.)
640
641 .TP
642 .BI \-\-mpi
643 Run under MPI control with master/worker parallelization (using
644 .BR mpirun ,
645 for example, or equivalent). Only available if optional MPI support
646 was enabled at compile-time.
647
648
649
650
651
652
653 .SH SEE ALSO
654
655 See
656 .BR hmmer (1)
657 for a master man page with a list of all the individual man pages
658 for programs in the HMMER package.
659
660 .PP
661 For complete documentation, see the user guide that came with your
662 HMMER distribution (Userguide.pdf); or see the HMMER web page
663 (@HMMER_URL@).
664
665
666
667 .SH COPYRIGHT
668
669 .nf
670 @HMMER_COPYRIGHT@
671 @HMMER_LICENSE@
672 .fi
673
674 For additional information on copyright and licensing, see the file
675 called COPYRIGHT in your HMMER source distribution, or see the HMMER
676 web page
677 (@HMMER_URL@).
678
679
680 .SH AUTHOR
681
682 .nf
683 http://eddylab.org
684 .fi
685
686
687