Debian Codegraph @

easel/miniapps/esl-mixdchlet.man.in

raw
1 .TH "esl\-mixdchlet" 1 "@EASEL_DATE@" "Easel @EASEL_VERSION@" "Easel Manual"
2
3 .SH NAME
4 esl\-mixdchlet \- fitting mixture Dirichlets to count data
5
6 .SH SYNOPSIS
7
8 .nf
9 \fBesl\-mixdchlet fit\fR [\fIoptions\fR] \fIQ K in_countfile out_mixchlet\fR
10 (train a new mixture Dirichlet)
11
12 \fBesl\-mixdchlet score\fR [\fIoptions\fR] \fImixdchlet_file counts_file\fR
13 (calculate log likelihood of count data, given mixture Dirichlet)
14
15 \fBesl\-mixdchlet gen \fR[\fIoptions\fR] \fImixdchlet_file\fR
16 (generate synthetic count data from mixture Dirichlet)
17
18 \fBesl\-mixdchlet sample \fR[\fIoptions\fR]
19 (sample a random mixture Dirichlet for testing)
20 .fi
21
22
23 .SH DESCRIPTION
24
25 .PP
26 The
27 .B esl\-mixdchlet
28 miniapp is for training mixture Dirichlet priors, such as the priors
29 used in HMMER and Infernal. It has four subcommands:
30 .B fit,
31 .B score,
32 .B gen,
33 and
34 .B sample.
35 The most important subcommand is
36 .B fit,
37 which is the subcommand for fitting a new mixture Dirichlet
38 distribution to a collection of count vectors (for example,
39 emission or transition count vectors from Pfam or Rfam training
40 sets).
41
42 .PP
43 Specifically,
44 .B esl\-mixdchlet fit
45 fits a new mixture Dirichlet distribution with
46 .I Q
47 mixture components to the count vectors (of alphabet size
48 .I K
49 ) in input file
50 .I in_countfile,
51 and saves the mixture Dirichlet into output file
52 .I out_mixdchlet.
53
54 .PP
55 The input count vector file
56 .I in_countfile
57 contains one count vector of length
58 .I K
59 fields per line, for any number of lines.
60 Blank lines and lines starting in # (comments) are ignored.
61 Fields are nonnegative real values; they do not have to be integers,
62 because they can be weighted counts.
63
64 .PP
65 The format of a mixture Dirichlet file
66 .I out_mixdchlet
67 is as follows. The first line has two fields,
68 .I K Q,
69 where
70 .I K
71 is the alphabet size and
72 .I Q
73 is the number of mixture components.
74 The next
75 .I Q
76 lines consist of
77 .I K+1
78 fields. The first field is the mixture coefficient
79 .I q_k,
80 followed by
81 .I K
82 fields with the Dirichlet alpha[k][a] parameters
83 for this component.
84
85 .PP
86 The
87 .B esl\-mixdchlet score
88 subcommand calculates the log likelihood of the count vector data in
89 .I counts_file,
90 given the mixture Dirichlet in
91 .I mixdchlet_file.
92
93 .PP
94 The
95 .B esl\-mixdchlet gen
96 subcommand generates synthetic count data, given
97 a mixture Dirichlet.
98
99 .PP
100 The
101 .B esl\-mixdchlet sample
102 subcommand creates a random mixture Dirichlet distribution
103 and outputs it to standard output.
104
105
106 .SH OPTIONS FOR FIT SUBCOMMAND
107
108 .TP
109 .B \-h
110 Print brief help specific to the
111 .B fit
112 subcommand.
113
114 .TP
115 .BI \-s " <seed>"
116 Set random number generator seed to nonnegative integer
117 .I <seed>.
118 Default is 0, which means to use a quasirandom arbitrary seed.
119 Values >0 give reproducible results.
120
121
122
123
124 .SH OPTIONS FOR SCORE SUBCOMMAND
125
126 .TP
127 .B \-h
128 Print brief help specific to the
129 .B score
130 subcommand.
131
132
133
134 .SH OPTIONS FOR GEN SUBCOMMAND
135
136 .TP
137 .B \-h
138 Print brief help specific to the
139 .B gen
140 subcommand.
141
142 .TP
143 .BI \-s " <seed>"
144 Set random number generator seed to nonnegative integer
145 .I <seed>.
146 Default is 0, which means to use a quasirandom arbitrary seed.
147 Values >0 give reproducible results.
148
149
150 .TP
151 .BI \-M " <M>"
152 Generate
153 .I <M>
154 counts per sampled vector. (Default 100.)
155
156 .TP
157 .BI \-N " <N>"
158 Generate
159 .I <N>
160 count vectors. (Default 1000.)
161
162
163 .SH OPTIONS FOR SAMPLE SUBCOMMAND
164
165 .TP
166 .B \-h
167 Print brief help specific to the
168 .B sample
169 subcommand.
170
171 .TP
172 .BI \-s " <seed>"
173 Set random number generator seed to nonnegative integer
174 .I <seed>.
175 Default is 0, which means to use a quasirandom arbitrary seed.
176 Values >0 give reproducible results.
177
178
179 .TP
180 .BI \-K " <K>"
181 Set the alphabet size to
182 .I <K>.
183 (Default is 20, for amino acids.)
184
185 .TP
186 .BI \-Q " <Q>"
187 Set the number of mixture components to
188 .I <Q>.
189 (Default is 9.)
190
191
192
193
194 .SH SEE ALSO
195
196 .nf
197 @EASEL_URL@
198 .fi
199
200 .SH COPYRIGHT
201
202 .nf
203 @EASEL_COPYRIGHT@
204 @EASEL_LICENSE@
205 .fi
206
207 .SH AUTHOR
208
209 .nf
210 http://eddylab.org
211 .fi
212