| 1 |
.TH "hmmfetch" 1 "@HMMER_DATE@" "HMMER @HMMER_VERSION@" "HMMER Manual" |
| 2 |
|
| 3 |
.SH NAME |
| 4 |
hmmfetch \- retrieve profiles from a file |
| 5 |
|
| 6 |
.SH SYNOPSIS |
| 7 |
|
| 8 |
.nf |
| 9 |
\fBhmmfetch\fR [\fIoptions\fR] \fIhmmfile key\fR |
| 10 |
(retrieve HMM named \fIkey\fR) |
| 11 |
|
| 12 |
\fBhmmfetch \-f \fR[\fIoptions\fR] \fIhmmfile keyfile\fR |
| 13 |
(retrieve all HMMs listed in \fIkeyfile\fR) |
| 14 |
|
| 15 |
\fBhmmfetch \-\-index \fR[\fIoptions\fR] \fIhmmfile\fR |
| 16 |
(index \fIhmmfile\fR for fetching) |
| 17 |
.fi |
| 18 |
|
| 19 |
.SH DESCRIPTION |
| 20 |
|
| 21 |
.PP |
| 22 |
Quickly retrieves one or more profile HMMs from an |
| 23 |
.I hmmfile |
| 24 |
(a large Pfam database, for example). |
| 25 |
|
| 26 |
.PP |
| 27 |
For maximum speed, the |
| 28 |
.I hmmfile |
| 29 |
should be indexed first, using |
| 30 |
.BR "hmmfetch \-\-index" . |
| 31 |
The index is a binary file named |
| 32 |
.IR hmmfile .ssi. |
| 33 |
However, this is optional, and retrieval will still |
| 34 |
work from unindexed files, albeit much more slowly. |
| 35 |
|
| 36 |
.PP |
| 37 |
The default mode is to retrieve a single profile by name or |
| 38 |
accession, called the |
| 39 |
.IR key . |
| 40 |
For example: |
| 41 |
|
| 42 |
.nf |
| 43 |
\fB% hmmfetch Pfam-A.hmm Caudal_act\fR |
| 44 |
\fB% hmmfetch Pfam-A.hmm PF00045\fR |
| 45 |
.fi |
| 46 |
|
| 47 |
.PP |
| 48 |
With the |
| 49 |
.B \-f |
| 50 |
option, a |
| 51 |
.I keyfile |
| 52 |
containing a list of one or more keys is read instead. |
| 53 |
The first whitespace-delimited field on each non-blank non-comment |
| 54 |
line of the |
| 55 |
.I keyfile |
| 56 |
is used as a |
| 57 |
.IR key , |
| 58 |
and any remaining data on the line is ignored. This allows |
| 59 |
a variety of whitespace delimited datafiles to be used |
| 60 |
as a |
| 61 |
.IR keyfile . |
| 62 |
|
| 63 |
.PP |
| 64 |
When using |
| 65 |
.B \-f |
| 66 |
and a |
| 67 |
.IR keyfile , |
| 68 |
if |
| 69 |
.B hmmfile |
| 70 |
has been indexed, the keys are retrieved in the order |
| 71 |
they occur in the |
| 72 |
.IR keyfile , |
| 73 |
but if |
| 74 |
.B hmmfile |
| 75 |
isn't indexed, keys are retrieved in the order they occur |
| 76 |
in the |
| 77 |
.BR hmmfile . |
| 78 |
This is a side effect of an implementation that allows |
| 79 |
multiple keys to be retrieved even if the |
| 80 |
.B hmmfile |
| 81 |
is a nonrewindable stream, like a standard input pipe. |
| 82 |
|
| 83 |
.PP |
| 84 |
In normal use |
| 85 |
(without |
| 86 |
.B \-\-index |
| 87 |
or |
| 88 |
.B \-f |
| 89 |
options), |
| 90 |
.I hmmfile |
| 91 |
may be '\-' (dash), which |
| 92 |
means reading input from stdin rather than a file. |
| 93 |
With the |
| 94 |
.B \-\-index |
| 95 |
option, |
| 96 |
.I hmmfile |
| 97 |
may not be '\-'; it does not make sense |
| 98 |
to index a standard input stream. |
| 99 |
With the |
| 100 |
.B \-f |
| 101 |
option, |
| 102 |
either |
| 103 |
.I hmmfile |
| 104 |
or |
| 105 |
.I keyfile |
| 106 |
(but not both) may be '\-'. |
| 107 |
It is often particularly useful to read |
| 108 |
.I keyfile |
| 109 |
from standard input, because this allows |
| 110 |
use to use arbitrary command line invocations to |
| 111 |
create a list of HMM names or accessions, then fetch them all |
| 112 |
to a new file, just with one command. |
| 113 |
|
| 114 |
.PP |
| 115 |
By default, fetched HMMs are printed to standard output in HMMER3 format. |
| 116 |
|
| 117 |
|
| 118 |
.SH OPTIONS |
| 119 |
|
| 120 |
.TP |
| 121 |
.B \-h |
| 122 |
Help; print a brief reminder of command line usage and all available |
| 123 |
options. |
| 124 |
|
| 125 |
.TP |
| 126 |
.B \-f |
| 127 |
The second commandline argument is a |
| 128 |
.I keyfile |
| 129 |
instead of a single |
| 130 |
.IR key . |
| 131 |
The first field on each line of the |
| 132 |
.I keyfile |
| 133 |
is used as a retrieval |
| 134 |
.I key |
| 135 |
(an HMM name or accession). |
| 136 |
Blank lines and comment lines (that start with |
| 137 |
a # character) are ignored. |
| 138 |
|
| 139 |
.TP |
| 140 |
.BI \-o " <f>" |
| 141 |
Output HMM(s) to file |
| 142 |
.I <f> |
| 143 |
instead of to standard output. |
| 144 |
|
| 145 |
.TP |
| 146 |
.B \-O |
| 147 |
Output one retrieved HMM (by |
| 148 |
.IR key ) |
| 149 |
to a file named |
| 150 |
.IR key . |
| 151 |
This is a convenience for saving some typing: |
| 152 |
instead of |
| 153 |
.nf |
| 154 |
\fB% hmmfetch \-o RRM_1 hmmfile RRM_1\fR |
| 155 |
.fi |
| 156 |
you can just type |
| 157 |
.nf |
| 158 |
\fB% hmmfetch \-O hmmfile RRM_1\fR |
| 159 |
.fi |
| 160 |
The |
| 161 |
.B \-O |
| 162 |
option only works if you're retrieving a |
| 163 |
single profile; it is incompatible with |
| 164 |
.B \-f. |
| 165 |
|
| 166 |
|
| 167 |
|
| 168 |
|
| 169 |
.TP |
| 170 |
.B \-\-index |
| 171 |
Instead of retrieving one or more profiles from |
| 172 |
.IR hmmfile , |
| 173 |
index the |
| 174 |
.I hmmfile |
| 175 |
for future retrievals. |
| 176 |
This creates a |
| 177 |
.IR hmmfile .ssi |
| 178 |
binary index file. |
| 179 |
|
| 180 |
|
| 181 |
|
| 182 |
.SH SEE ALSO |
| 183 |
|
| 184 |
See |
| 185 |
.BR hmmer (1) |
| 186 |
for a master man page with a list of all the individual man pages |
| 187 |
for programs in the HMMER package. |
| 188 |
|
| 189 |
.PP |
| 190 |
For complete documentation, see the user guide that came with your |
| 191 |
HMMER distribution (Userguide.pdf); or see the HMMER web page |
| 192 |
(@HMMER_URL@). |
| 193 |
|
| 194 |
|
| 195 |
|
| 196 |
.SH COPYRIGHT |
| 197 |
|
| 198 |
.nf |
| 199 |
@HMMER_COPYRIGHT@ |
| 200 |
@HMMER_LICENSE@ |
| 201 |
.fi |
| 202 |
|
| 203 |
For additional information on copyright and licensing, see the file |
| 204 |
called COPYRIGHT in your HMMER source distribution, or see the HMMER |
| 205 |
web page |
| 206 |
(@HMMER_URL@). |
| 207 |
|
| 208 |
|
| 209 |
.SH AUTHOR |
| 210 |
|
| 211 |
.nf |
| 212 |
http://eddylab.org |
| 213 |
.fi |