| 1 |
.TH "hmmpgmd" 1 "@HMMER_DATE@" "HMMER @HMMER_VERSION@" "HMMER Manual" |
| 2 |
|
| 3 |
.SH NAME |
| 4 |
hmmpgmd \- daemon for database search web services |
| 5 |
|
| 6 |
|
| 7 |
.SH SYNOPSIS |
| 8 |
.B hmmpgmd |
| 9 |
[\fIoptions\fR] |
| 10 |
|
| 11 |
|
| 12 |
.SH DESCRIPTION |
| 13 |
|
| 14 |
.PP |
| 15 |
The |
| 16 |
.B hmmpgmd |
| 17 |
program is the daemon that we use internally for the hmmer.org web server. |
| 18 |
It essentially stands in front of the search programs |
| 19 |
.BR phmmer , |
| 20 |
.BR hmmsearch , |
| 21 |
and |
| 22 |
.BR hmmscan . |
| 23 |
|
| 24 |
.PP |
| 25 |
To use |
| 26 |
.BR hmmpgmd , |
| 27 |
first an instance must be started up as a |
| 28 |
master |
| 29 |
server, and provided with at least one |
| 30 |
sequence database |
| 31 |
(using the |
| 32 |
.B \-\-seqdb |
| 33 |
flag) |
| 34 |
and/or an |
| 35 |
HMM database |
| 36 |
(using the |
| 37 |
.B \-\-hmmdb |
| 38 |
flag). |
| 39 |
A sequence database must be in hmmpgmd format, which may be |
| 40 |
produced using |
| 41 |
.BR esl-reformat . |
| 42 |
An HMM database is of the form produced by |
| 43 |
.BR hmmbuild . |
| 44 |
The input database(s) will be loaded into memory by the |
| 45 |
master. When the master has finished loading the database(s), it |
| 46 |
prints the line: |
| 47 |
"Data loaded into memory. Master is ready." |
| 48 |
|
| 49 |
|
| 50 |
.PP |
| 51 |
After the master is ready, one or more instances of hmmpgmd may |
| 52 |
be started as workers. These workers may be (and typically are) on |
| 53 |
different machines from the master, but must have access to the |
| 54 |
same database file(s) provided to the master, with the same path. As |
| 55 |
with the master, each worker loads the database(s) into memory, and |
| 56 |
indicates completion by printing: "Data loaded into memory. Worker is ready." |
| 57 |
|
| 58 |
|
| 59 |
.PP |
| 60 |
The master process and workers are expected to remain running. |
| 61 |
One or more clients then connect to the master and submit possibly |
| 62 |
many queries. The master distributes the work of a query among the |
| 63 |
workers, collects results, and merges them before responding to the |
| 64 |
client. Two example client programs are included in the HMMER src |
| 65 |
directory - the C program |
| 66 |
.B hmmc2 |
| 67 |
and the perl script |
| 68 |
.BR hmmpgmd_client_example.pl . |
| 69 |
These are intended as examples only, and should be extended as |
| 70 |
necessary to meet your needs. |
| 71 |
|
| 72 |
.PP |
| 73 |
A query is submitted to the master from the client as a character |
| 74 |
string. Queries may be the sort that would normally be handled |
| 75 |
by |
| 76 |
.B phmmer |
| 77 |
(protein sequence vs protein database), |
| 78 |
.B hmmsearch |
| 79 |
(protein HMM query vs protein database), or |
| 80 |
.B hmmscan |
| 81 |
(protein query vs protein HMM database). |
| 82 |
|
| 83 |
|
| 84 |
The general form of a client query is to start with a single line |
| 85 |
of the form |
| 86 |
.BR "@[options]" , |
| 87 |
followed by multiple lines of text representing either the query HMM |
| 88 |
or fasta-formatted sequence. The final line of each query is the separator |
| 89 |
.BR "//" . |
| 90 |
|
| 91 |
|
| 92 |
.PP |
| 93 |
For example, to perform a |
| 94 |
.B phmmer |
| 95 |
type search of a sequence against a sequence database |
| 96 |
file, the first line is of the form |
| 97 |
.BR "@\-\-seqdb 1" , |
| 98 |
then the fasta-formatted query sequence starting with the header line |
| 99 |
.BR >sequence-name , |
| 100 |
followed by one or more lines of sequence, and finally the closing |
| 101 |
.BR "//" . |
| 102 |
|
| 103 |
.PP |
| 104 |
To perform an |
| 105 |
.B hmmsearch |
| 106 |
type search, the query sequence is replaced by the full |
| 107 |
text of a HMMER-format query HMM. |
| 108 |
|
| 109 |
.PP |
| 110 |
To perform an |
| 111 |
.B hmmscan |
| 112 |
type search, the text matches that of the |
| 113 |
.B phmmer |
| 114 |
type search, except that the first line changes to |
| 115 |
.BR "@\-\-hmmdb 1" . |
| 116 |
|
| 117 |
.PP |
| 118 |
In the hmmpgmd-formatted sequence database file, each sequence |
| 119 |
can be associated with one or more sub-databases. The |
| 120 |
.B \-\-seqdb |
| 121 |
flag indicates which of these sub-databases will be queried. |
| 122 |
The HMM database format does not support sub-databases. |
| 123 |
|
| 124 |
|
| 125 |
|
| 126 |
|
| 127 |
.SH OPTIONS |
| 128 |
|
| 129 |
.TP |
| 130 |
.B \-h |
| 131 |
Help; print a brief reminder of command line usage and all available |
| 132 |
options. |
| 133 |
|
| 134 |
.TP |
| 135 |
.BI \-\-master |
| 136 |
Run as the master server. |
| 137 |
|
| 138 |
.TP |
| 139 |
.BI \-\-worker " <s>" |
| 140 |
Run as a worker, connecting to the master server that is running on IP |
| 141 |
address |
| 142 |
.IR <s> . |
| 143 |
|
| 144 |
.TP |
| 145 |
.BI \-\-cport " <n>" |
| 146 |
Port to use for communication between clients and the master server. |
| 147 |
The default is 51371. |
| 148 |
|
| 149 |
.TP |
| 150 |
.BI \-\-wport " <n>" |
| 151 |
Port to use for communication between workers and the master server. |
| 152 |
The default is 51372. |
| 153 |
|
| 154 |
.TP |
| 155 |
.BI \-\-ccncts " <n>" |
| 156 |
Maximum number of client connections to accept. The default is 16. |
| 157 |
|
| 158 |
.TP |
| 159 |
.BI \-\-wcncts " <n>" |
| 160 |
Maximum number of worker connections to accept. The default is 32. |
| 161 |
|
| 162 |
.TP |
| 163 |
.BI \-\-pid " <f>" |
| 164 |
Name of file into which the process id will be written. |
| 165 |
|
| 166 |
.TP |
| 167 |
.BI \-\-seqdb " <f>" |
| 168 |
Name of the file (in |
| 169 |
.B hmmpgmd |
| 170 |
format) containing protein sequences. |
| 171 |
The contents of this file will be cached for searches. |
| 172 |
|
| 173 |
.TP |
| 174 |
.BI \-\-hmmdb " <f>" |
| 175 |
Name of the file containing protein HMMs. The contents of this file |
| 176 |
will be cached for searches. |
| 177 |
|
| 178 |
.TP |
| 179 |
.BI \-\-cpu " <n>" |
| 180 |
Number of parallel threads to use (for |
| 181 |
.B \-\-worker |
| 182 |
). |
| 183 |
|
| 184 |
|
| 185 |
.SH SEE ALSO |
| 186 |
|
| 187 |
See |
| 188 |
.BR hmmer (1) |
| 189 |
for a master man page with a list of all the individual man pages |
| 190 |
for programs in the HMMER package. |
| 191 |
|
| 192 |
.PP |
| 193 |
For complete documentation, see the user guide that came with your |
| 194 |
HMMER distribution (Userguide.pdf); or see the HMMER web page |
| 195 |
(@HMMER_URL@). |
| 196 |
|
| 197 |
|
| 198 |
|
| 199 |
.SH COPYRIGHT |
| 200 |
|
| 201 |
.nf |
| 202 |
@HMMER_COPYRIGHT@ |
| 203 |
@HMMER_LICENSE@ |
| 204 |
.fi |
| 205 |
|
| 206 |
For additional information on copyright and licensing, see the file |
| 207 |
called COPYRIGHT in your HMMER source distribution, or see the HMMER |
| 208 |
web page |
| 209 |
(@HMMER_URL@). |
| 210 |
|
| 211 |
|
| 212 |
.SH AUTHOR |
| 213 |
|
| 214 |
.nf |
| 215 |
http://eddylab.org |
| 216 |
.fi |
| 217 |
|
| 218 |
|
| 219 |
|