| 1 |
.TH "cmemit" 1 "@INFERNAL_DATE@" "Infernal @INFERNAL_VERSION@" "Infernal Manual" |
| 2 |
|
| 3 |
.SH NAME |
| 4 |
cmemit - sample sequences from a covariance model |
| 5 |
|
| 6 |
.SH SYNOPSIS |
| 7 |
.B cmemit |
| 8 |
.I [options] |
| 9 |
.I <cmfile> |
| 10 |
|
| 11 |
.SH DESCRIPTION |
| 12 |
|
| 13 |
.PP |
| 14 |
The |
| 15 |
.B cmemit |
| 16 |
program |
| 17 |
samples (emits) sequences from the covariance model(s) in |
| 18 |
.I <cmfile>, |
| 19 |
and writes them to output. |
| 20 |
Sampling sequences may be useful for a variety of purposes, including |
| 21 |
creating synthetic true positives for benchmarks or tests. |
| 22 |
|
| 23 |
.PP |
| 24 |
The default is to sample ten unaligned sequence from each |
| 25 |
CM. Alternatively, with the |
| 26 |
.B -c |
| 27 |
option, you can emit a single majority-rule consensus sequence; |
| 28 |
or with the |
| 29 |
.B -a |
| 30 |
option, you can emit an alignment. |
| 31 |
|
| 32 |
.PP |
| 33 |
The |
| 34 |
.I <cmfile> |
| 35 |
may contain a library of CMs, in which case |
| 36 |
each CM will be used in turn. |
| 37 |
|
| 38 |
.PP |
| 39 |
.I <cmfile> |
| 40 |
may be '-' (dash), which |
| 41 |
means reading this input from |
| 42 |
.I stdin |
| 43 |
rather than a file. |
| 44 |
|
| 45 |
.PP |
| 46 |
For models with zero basepairs, sequences are sampled from the profile |
| 47 |
HMM filter instead of the CM. However, since these models will be |
| 48 |
nearly identical (unless special options were used in |
| 49 |
.B cmbuild |
| 50 |
to prevent this), using the HMM instead of the CM will not change the |
| 51 |
output in a significant way, unless the |
| 52 |
.B -l |
| 53 |
option is used. With |
| 54 |
.B -l, |
| 55 |
the HMM will be configured for equiprobable model begin and end positions, |
| 56 |
while the CM will not. You can force |
| 57 |
.B cmemit |
| 58 |
to always sample from the CM with the |
| 59 |
.B --nohmmonly |
| 60 |
option. |
| 61 |
|
| 62 |
.SH OPTIONS |
| 63 |
|
| 64 |
.TP |
| 65 |
.B -h |
| 66 |
Help; print a brief reminder of command line usage and available |
| 67 |
options. |
| 68 |
|
| 69 |
.TP |
| 70 |
.BI -o " <f>" |
| 71 |
Save the synthetic sequences to file |
| 72 |
.I <f> |
| 73 |
rather than writing them to stdout. |
| 74 |
|
| 75 |
.TP |
| 76 |
.BI -N " <n>" |
| 77 |
Generate |
| 78 |
.I <n> |
| 79 |
sequences. The default value for |
| 80 |
.I <n> |
| 81 |
is 10. |
| 82 |
|
| 83 |
.TP |
| 84 |
.B -u |
| 85 |
Write the generated sequences in unaligned format (FASTA). This is |
| 86 |
the default behavior. |
| 87 |
|
| 88 |
.TP |
| 89 |
.B -a |
| 90 |
Write the generated sequences in an aligned format (STOCKHOLM) with |
| 91 |
consensus structure annotation rather than FASTA. Other output formats |
| 92 |
are possible with the |
| 93 |
.B --outformat |
| 94 |
option. |
| 95 |
|
| 96 |
.TP |
| 97 |
.B -c |
| 98 |
Predict a single majority-rule consensus sequence instead of sampling |
| 99 |
sequences from the CM\'s probability distribution. Highly conserved |
| 100 |
residues (base paired residues that score higher than 3.0 bits, or |
| 101 |
single stranded residues that score higher than 1.0 bits) are shown in |
| 102 |
upper case; others are shown in lower case. |
| 103 |
|
| 104 |
.TP |
| 105 |
.BI -e " <n>" |
| 106 |
Embed the CM emitted sequences in a larger randomly generated |
| 107 |
sequence of length |
| 108 |
.I <n> |
| 109 |
generated from an HMM that was trained on real genomic sequences with |
| 110 |
various GC contents (the same HMM used by |
| 111 |
.B cmcalibrate). |
| 112 |
You can use the |
| 113 |
.B --iid |
| 114 |
option to generate 25% A, C, G, and U sequence instead. |
| 115 |
The CM emitted sequence will begin at a random position within the larger |
| 116 |
sequence and will be included in its entirety unless the |
| 117 |
.B --u5p |
| 118 |
or |
| 119 |
.B --u3p |
| 120 |
options are used. |
| 121 |
When |
| 122 |
.B -e |
| 123 |
is used in combination with |
| 124 |
.B --u5p, |
| 125 |
the CM emitted sequence will always begin at position 1 of the larger |
| 126 |
sequence and will be truncated 5'. When used in combination |
| 127 |
.B --u3p |
| 128 |
the CM emitted sequence will always end at position |
| 129 |
.I <n> |
| 130 |
of the larger sequence and will be truncated 3'. |
| 131 |
|
| 132 |
.TP |
| 133 |
.B -l |
| 134 |
Configure the CMs into local mode before emitting sequences. By |
| 135 |
default the model will be in global mode. In local mode, large |
| 136 |
insertions and deletions are more common than in global mode. |
| 137 |
|
| 138 |
.SH OPTIONS FOR TRUNCATING EMITTED SEQUENCES |
| 139 |
|
| 140 |
.TP |
| 141 |
.B --u5p |
| 142 |
Truncate all emitted sequences at a randomly chosen start position |
| 143 |
.B <n>, |
| 144 |
by only outputting residues beginning at |
| 145 |
.B <n>. |
| 146 |
A different start point is randomly chosen for each sequence. |
| 147 |
|
| 148 |
.TP |
| 149 |
.B --u3p |
| 150 |
Truncate all emitted sequences at a randomly chosen end position |
| 151 |
.B <n>, |
| 152 |
by only outputting residues up to position |
| 153 |
.B <n>. |
| 154 |
A different end point is randomly chosen for each sequence. |
| 155 |
|
| 156 |
.TP |
| 157 |
.BI --a5p " <n>" |
| 158 |
In combination with the |
| 159 |
.B -a |
| 160 |
option, truncate the emitted alignment at a randomly chosen start |
| 161 |
match position |
| 162 |
.I <n>, |
| 163 |
by only outputting alignment columns for positions after match state |
| 164 |
.I <n> |
| 165 |
- 1. |
| 166 |
.I <n> |
| 167 |
must be an integer between 0 and the consensus length of the model |
| 168 |
(which can be determined using the |
| 169 |
.B cmstat |
| 170 |
program. As a special case, using 0 as |
| 171 |
.I <n> |
| 172 |
will result in a randomly chosen start position. |
| 173 |
|
| 174 |
.TP |
| 175 |
.BI --a3p " <n>" |
| 176 |
In combination with the |
| 177 |
.B -a |
| 178 |
option, truncate the emitted alignment at a randomly chosen end |
| 179 |
match position |
| 180 |
.I <n>, |
| 181 |
by only outputting alignment columns for positions before match state |
| 182 |
.I <n> |
| 183 |
+ 1. |
| 184 |
.I <n> |
| 185 |
must be an integer between 1 and the consensus length of the model |
| 186 |
(which can be determined using the |
| 187 |
.B cmstat |
| 188 |
program). As a special case, using 0 as |
| 189 |
.I <n> |
| 190 |
will result in a randomly chosen end position. |
| 191 |
|
| 192 |
.SH OTHER OPTIONS |
| 193 |
|
| 194 |
.TP |
| 195 |
.BI --seed " <n>" |
| 196 |
Seed the random number generator with |
| 197 |
.I <n>, |
| 198 |
an integer >= 0. If |
| 199 |
.I <n> |
| 200 |
is nonzero, stochastic sampling of sequences will be reproducible; the same |
| 201 |
command will give the same results. |
| 202 |
If |
| 203 |
.I <n> |
| 204 |
is 0, the random number generator is seeded arbitrarily, and |
| 205 |
stochastic samplings will vary from run to run of the same command. |
| 206 |
The default seed is 0. |
| 207 |
|
| 208 |
.TP |
| 209 |
.BI --iid |
| 210 |
With |
| 211 |
.B -e, |
| 212 |
generate the larger sequences as 25% each A, C, G and U. |
| 213 |
|
| 214 |
.TP |
| 215 |
.BI --rna |
| 216 |
Specify that the emitted sequences be output as RNA sequences. This is true by default. |
| 217 |
|
| 218 |
.TP |
| 219 |
.BI --dna |
| 220 |
Specify that the emitted sequences be output as DNA sequences. By default, |
| 221 |
the output alphabet is RNA. |
| 222 |
|
| 223 |
.TP |
| 224 |
.BI --idx " <n>" |
| 225 |
Specify that the emitted sequences be named starting with |
| 226 |
.I <modelname>.<n>. |
| 227 |
By default |
| 228 |
.I <n> |
| 229 |
is 1. |
| 230 |
|
| 231 |
.TP |
| 232 |
.BI --outformat " <s>" |
| 233 |
With |
| 234 |
.B -a, |
| 235 |
specify the output alignment format as |
| 236 |
.I <s>. |
| 237 |
Acceptable formats are: Pfam, AFA, A2M, Clustal, and Phylip. |
| 238 |
AFA is aligned fasta. Only Pfam and Stockholm alignment formats will |
| 239 |
include consensus structure annotation. |
| 240 |
|
| 241 |
.TP |
| 242 |
.BI --tfile " <f>" |
| 243 |
Dump tabular sequence parsetrees (tracebacks) for each |
| 244 |
emitted sequence to file |
| 245 |
.I <f>. |
| 246 |
Primarily useful for debugging. |
| 247 |
|
| 248 |
.TP |
| 249 |
.BI --exp " <x>" |
| 250 |
Exponentiate the emission and transition probabilities of the CM by |
| 251 |
.I <x> |
| 252 |
and then renormalize those distributions before emitting |
| 253 |
sequences. This option changes the CM probability distribution of |
| 254 |
parsetrees relative to default. With |
| 255 |
.I <x> |
| 256 |
less than 1.0 the emitted sequences will tend to have |
| 257 |
lower bit scores upon alignment to the CM. |
| 258 |
With <x> greater than 1.0, the emitted sequences will tend |
| 259 |
to have higher bit scores upon alignment to |
| 260 |
the CM. This bit score difference will increase as <x> moves |
| 261 |
further away from 1.0 in either direction. |
| 262 |
If <x> equals 1.0, this option has no effect relative to default. |
| 263 |
This option is useful for generating sequences that are either |
| 264 |
more difficult ( |
| 265 |
.I <x> |
| 266 |
< 1.0) or easier ( |
| 267 |
.I <x> |
| 268 |
> 1.0) for the CM to |
| 269 |
distinguish as homologous from background, random sequence. |
| 270 |
|
| 271 |
.TP |
| 272 |
.B --hmmonly |
| 273 |
Emit from the filter profile HMM instead of the CM. |
| 274 |
|
| 275 |
.TP |
| 276 |
.B --nohmmonly |
| 277 |
Never emit from the filter profile HMM, always use the CM, even for |
| 278 |
models with zero basepairs. |
| 279 |
|
| 280 |
.SH SEE ALSO |
| 281 |
|
| 282 |
See |
| 283 |
.B infernal(1) |
| 284 |
for a master man page with a list of all the individual man pages |
| 285 |
for programs in the Infernal package. |
| 286 |
|
| 287 |
.PP |
| 288 |
For complete documentation, see the user guide that came with your |
| 289 |
Infernal distribution (Userguide.pdf); or see the Infernal web page |
| 290 |
(@INFERNAL_URL@). |
| 291 |
|
| 292 |
|
| 293 |
.SH COPYRIGHT |
| 294 |
|
| 295 |
.nf |
| 296 |
@INFERNAL_COPYRIGHT@ |
| 297 |
@INFERNAL_LICENSE@ |
| 298 |
.fi |
| 299 |
|
| 300 |
For additional information on copyright and licensing, see the file |
| 301 |
called COPYRIGHT in your Infernal source distribution, or see the Infernal |
| 302 |
web page |
| 303 |
(@INFERNAL_URL@). |
| 304 |
|
| 305 |
.SH AUTHOR |
| 306 |
|
| 307 |
.nf |
| 308 |
http://eddylab.org |
| 309 |
.fi |
| 310 |
|
| 311 |
|
| 312 |
|