| 1 | <HTML> |
| 2 | <HEAD> |
| 3 | <TITLE> |
| 4 | EMBOSS: cons |
| 5 | </TITLE> |
| 6 | </HEAD> |
| 7 | <BODY BGCOLOR="#FFFFFF" text="#000000"> |
| 8 | |
| 9 | |
| 10 | <table align=center border=0 cellspacing=0 cellpadding=0> |
| 11 | <tr><td valign=top> |
| 12 | <A HREF="/" ONMOUSEOVER="self.status='Go to the EMBOSS home page';return true"><img border=0 src="/images/emboss_icon.jpg" alt="" width=150 height=48></a> |
| 13 | </td> |
| 14 | <td align=left valign=middle> |
| 15 | <b><font size="+6"> |
| 16 | cons |
| 17 | </font></b> |
| 18 | </td></tr> |
| 19 | </table> |
| 20 | <br> |
| 21 | <p> |
| 22 | |
| 23 | |
| 24 | <H2> |
| 25 | Wiki |
| 26 | </H2> |
| 27 | |
| 28 | The master copies of EMBOSS documentation are available |
| 29 | at <a href="http://emboss.open-bio.org/wiki/Appdocs"> |
| 30 | http://emboss.open-bio.org/wiki/Appdocs</a> |
| 31 | on the EMBOSS Wiki. |
| 32 | |
| 33 | <p> |
| 34 | Please help by correcting and extending the Wiki pages. |
| 35 | |
| 36 | <H2> |
| 37 | Function |
| 38 | </H2> |
| 39 | Create a consensus sequence from a multiple alignment |
| 40 | <H2> |
| 41 | Description |
| 42 | </H2> |
| 43 | |
| 44 | <p><b>cons</b> calculates a consensus sequence from a multiple |
| 45 | sequence alignment. To obtain the consensus, the sequence weights and |
| 46 | a scoring matrix are used to calculate a score for each amino acid |
| 47 | residue or nucleotide at each position in the alignment. The highest |
| 48 | scoring residue goes into the consensus sequence if the score is |
| 49 | higher than a user-specified "plurality" value, otherwise, there is no |
| 50 | consensus at that position.</p> |
| 51 | |
| 52 | |
| 53 | <H2> |
| 54 | Algorithm |
| 55 | </H2> |
| 56 | <p>To obtain the consensus, the sequence weights and a scoring matrix |
| 57 | are used to calculate a score at each position in the alignment as |
| 58 | follows. The residue (or nucleotide) i in an alignment column, is |
| 59 | compared to all other residues (j) in the same column. The score for i |
| 60 | is the sum over all residues j (not i=j) of the score(ij)*weight(j), |
| 61 | where score(ij) is taken from a nucleotide or protein scoring matrix |
| 62 | (see -datafile qualifier) and the "weight(j)" is the weighting given |
| 63 | to the sequence j, which is given in the alignment file.</p> |
| 64 | |
| 65 | q<p>The highest scoring type of residue is then found in the column. If |
| 66 | the number of "positive matches" (see below) for this residue is |
| 67 | greater than the "plurality value" (see below), then this residue is |
| 68 | the consensus residue. Otherwise there is no consensus for that |
| 69 | position and an 'n' (nucleotide sequence alignment) or an 'x' (protein |
| 70 | sequence alignment) character is written to the consensus |
| 71 | sequence.</p> |
| 72 | |
| 73 | <p>The positive matches for a residue i are calculated as being the |
| 74 | sum of the corresponding sequence weights for all the residues that |
| 75 | increase the score of residue i (i.e. that have a positive score). The |
| 76 | "plurality" qualifier sets the cut-off for the number of positive |
| 77 | matches (weighted) below which there is no consensus.</p> |
| 78 | |
| 79 | |
| 80 | |
| 81 | <H2> |
| 82 | Usage |
| 83 | </H2> |
| 84 | Here is a sample session with <b>cons</b> |
| 85 | <p> |
| 86 | |
| 87 | <p> |
| 88 | <table width="90%"><tr><td bgcolor="#CCFFFF"><pre> |
| 89 | |
| 90 | % <b>cons </b> |
| 91 | Create a consensus sequence from a multiple alignment |
| 92 | Input (aligned) sequence set: <b>dna.msf</b> |
| 93 | output sequence [dna.fasta]: <b>aligned.cons</b> |
| 94 | |
| 95 | </pre></td></tr></table><p> |
| 96 | <p> |
| 97 | <a href="#input.1">Go to the input files for this example</a><br><a href="#output.1">Go to the output files for this example</a><p><p> |
| 98 | |
| 99 | |
| 100 | <H2> |
| 101 | Command line arguments |
| 102 | </H2> |
| 103 | |
| 104 | <table CELLSPACING=0 CELLPADDING=3 BGCOLOR="#f5f5ff" ><tr><td> |
| 105 | <pre> |
| 106 | Create a consensus sequence from a multiple alignment |
| 107 | Version: EMBOSS:6.6.0.0 |
| 108 | |
| 109 | Standard (Mandatory) qualifiers: |
| 110 | [-sequence] seqset File containing a sequence alignment. |
| 111 | [-outseq] seqout [<sequence>.<format>] Sequence filename and |
| 112 | optional format (output USA) |
| 113 | |
| 114 | Additional (Optional) qualifiers: |
| 115 | -datafile matrix [EBLOSUM62 for protein, EDNAFULL for DNA] |
| 116 | This is the scoring matrix file used when |
| 117 | comparing sequences. By default it is the |
| 118 | file 'EBLOSUM62' (for proteins) or the file |
| 119 | 'EDNAFULL' (for nucleic sequences). These |
| 120 | files are found in the 'data' directory of |
| 121 | the EMBOSS installation. |
| 122 | -plurality float [Half the total sequence weighting] Set a |
| 123 | cut-off for the number of positive matches |
| 124 | below which there is no consensus. The |
| 125 | default plurality is taken as half the total |
| 126 | weight of all the sequences in the |
| 127 | alignment. (Any numeric value) |
| 128 | -identity integer [0] Provides the facility of setting the |
| 129 | required number of identities at a site for |
| 130 | it to give a consensus at that position. |
| 131 | Therefore, if this is set to the number of |
| 132 | sequences in the alignment only columns of |
| 133 | identities contribute to the consensus. |
| 134 | (Integer 0 or more) |
| 135 | -setcase float [@( $(sequence.totweight) / 2)] Sets the |
| 136 | threshold for the positive matches above |
| 137 | which the consensus is is upper-case and |
| 138 | below which the consensus is in lower-case. |
| 139 | (Any numeric value) |
| 140 | -name string Name of the consensus sequence (Any string) |
| 141 | |
| 142 | Advanced (Unprompted) qualifiers: (none) |
| 143 | Associated qualifiers: |
| 144 | |
| 145 | "-sequence" associated qualifiers |
| 146 | -sbegin1 integer Start of each sequence to be used |
| 147 | -send1 integer End of each sequence to be used |
| 148 | -sreverse1 boolean Reverse (if DNA) |
| 149 | -sask1 boolean Ask for begin/end/reverse |
| 150 | -snucleotide1 boolean Sequence is nucleotide |
| 151 | -sprotein1 boolean Sequence is protein |
| 152 | -slower1 boolean Make lower case |
| 153 | -supper1 boolean Make upper case |
| 154 | -scircular1 boolean Sequence is circular |
| 155 | -squick1 boolean Read id and sequence only |
| 156 | -sformat1 string Input sequence format |
| 157 | -iquery1 string Input query fields or ID list |
| 158 | -ioffset1 integer Input start position offset |
| 159 | -sdbname1 string Database name |
| 160 | -sid1 string Entryname |
| 161 | -ufo1 string UFO features |
| 162 | -fformat1 string Features format |
| 163 | -fopenfile1 string Features file name |
| 164 | |
| 165 | "-outseq" associated qualifiers |
| 166 | -osformat2 string Output seq format |
| 167 | -osextension2 string File name extension |
| 168 | -osname2 string Base file name |
| 169 | -osdirectory2 string Output directory |
| 170 | -osdbname2 string Database name to add |
| 171 | -ossingle2 boolean Separate file for each entry |
| 172 | -oufo2 string UFO features |
| 173 | -offormat2 string Features format |
| 174 | -ofname2 string Features file name |
| 175 | -ofdirectory2 string Output directory |
| 176 | |
| 177 | General qualifiers: |
| 178 | -auto boolean Turn off prompts |
| 179 | -stdout boolean Write first file to standard output |
| 180 | -filter boolean Read first file from standard input, write |
| 181 | first file to standard output |
| 182 | -options boolean Prompt for standard and additional values |
| 183 | -debug boolean Write debug output to program.dbg |
| 184 | -verbose boolean Report some/full command line options |
| 185 | -help boolean Report command line options and exit. More |
| 186 | information on associated and general |
| 187 | qualifiers can be found with -help -verbose |
| 188 | -warning boolean Report warnings |
| 189 | -error boolean Report errors |
| 190 | -fatal boolean Report fatal errors |
| 191 | -die boolean Report dying program messages |
| 192 | -version boolean Report version number and exit |
| 193 | |
| 194 | </pre> |
| 195 | </td></tr></table> |
| 196 | <P> |
| 197 | <table border cellspacing=0 cellpadding=3 bgcolor="#ccccff"> |
| 198 | <tr bgcolor="#FFFFCC"> |
| 199 | <th align="left">Qualifier</th> |
| 200 | <th align="left">Type</th> |
| 201 | <th align="left">Description</th> |
| 202 | <th align="left">Allowed values</th> |
| 203 | <th align="left">Default</th> |
| 204 | </tr> |
| 205 | |
| 206 | <tr bgcolor="#FFFFCC"> |
| 207 | <th align="left" colspan=5>Standard (Mandatory) qualifiers</th> |
| 208 | </tr> |
| 209 | |
| 210 | <tr bgcolor="#FFFFCC"> |
| 211 | <td>[-sequence]<br>(Parameter 1)</td> |
| 212 | <td>seqset</td> |
| 213 | <td>File containing a sequence alignment.</td> |
| 214 | <td>Readable set of sequences</td> |
| 215 | <td><b>Required</b></td> |
| 216 | </tr> |
| 217 | |
| 218 | <tr bgcolor="#FFFFCC"> |
| 219 | <td>[-outseq]<br>(Parameter 2)</td> |
| 220 | <td>seqout</td> |
| 221 | <td>Sequence filename and optional format (output USA)</td> |
| 222 | <td>Writeable sequence</td> |
| 223 | <td><i><*></i>.<i>format</i></td> |
| 224 | </tr> |
| 225 | |
| 226 | <tr bgcolor="#FFFFCC"> |
| 227 | <th align="left" colspan=5>Additional (Optional) qualifiers</th> |
| 228 | </tr> |
| 229 | |
| 230 | <tr bgcolor="#FFFFCC"> |
| 231 | <td>-datafile</td> |
| 232 | <td>matrix</td> |
| 233 | <td>This is the scoring matrix file used when comparing sequences. By default it is the file 'EBLOSUM62' (for proteins) or the file 'EDNAFULL' (for nucleic sequences). These files are found in the 'data' directory of the EMBOSS installation.</td> |
| 234 | <td>Comparison matrix file in EMBOSS data path</td> |
| 235 | <td>EBLOSUM62 for protein<br>EDNAFULL for DNA</td> |
| 236 | </tr> |
| 237 | |
| 238 | <tr bgcolor="#FFFFCC"> |
| 239 | <td>-plurality</td> |
| 240 | <td>float</td> |
| 241 | <td>Set a cut-off for the number of positive matches below which there is no consensus. The default plurality is taken as half the total weight of all the sequences in the alignment.</td> |
| 242 | <td>Any numeric value</td> |
| 243 | <td>Half the total sequence weighting</td> |
| 244 | </tr> |
| 245 | |
| 246 | <tr bgcolor="#FFFFCC"> |
| 247 | <td>-identity</td> |
| 248 | <td>integer</td> |
| 249 | <td>Provides the facility of setting the required number of identities at a site for it to give a consensus at that position. Therefore, if this is set to the number of sequences in the alignment only columns of identities contribute to the consensus.</td> |
| 250 | <td>Integer 0 or more</td> |
| 251 | <td>0</td> |
| 252 | </tr> |
| 253 | |
| 254 | <tr bgcolor="#FFFFCC"> |
| 255 | <td>-setcase</td> |
| 256 | <td>float</td> |
| 257 | <td>Sets the threshold for the positive matches above which the consensus is is upper-case and below which the consensus is in lower-case.</td> |
| 258 | <td>Any numeric value</td> |
| 259 | <td>@( $(sequence.totweight) / 2)</td> |
| 260 | </tr> |
| 261 | |
| 262 | <tr bgcolor="#FFFFCC"> |
| 263 | <td>-name</td> |
| 264 | <td>string</td> |
| 265 | <td>Name of the consensus sequence</td> |
| 266 | <td>Any string</td> |
| 267 | <td> </td> |
| 268 | </tr> |
| 269 | |
| 270 | <tr bgcolor="#FFFFCC"> |
| 271 | <th align="left" colspan=5>Advanced (Unprompted) qualifiers</th> |
| 272 | </tr> |
| 273 | |
| 274 | <tr> |
| 275 | <td colspan=5>(none)</td> |
| 276 | </tr> |
| 277 | |
| 278 | <tr bgcolor="#FFFFCC"> |
| 279 | <th align="left" colspan=5>Associated qualifiers</th> |
| 280 | </tr> |
| 281 | |
| 282 | <tr bgcolor="#FFFFCC"> |
| 283 | <td align="left" colspan=5>"-sequence" associated seqset qualifiers |
| 284 | </td> |
| 285 | </tr> |
| 286 | |
| 287 | <tr bgcolor="#FFFFCC"> |
| 288 | <td> -sbegin1<br>-sbegin_sequence</td> |
| 289 | <td>integer</td> |
| 290 | <td>Start of each sequence to be used</td> |
| 291 | <td>Any integer value</td> |
| 292 | <td>0</td> |
| 293 | </tr> |
| 294 | |
| 295 | <tr bgcolor="#FFFFCC"> |
| 296 | <td> -send1<br>-send_sequence</td> |
| 297 | <td>integer</td> |
| 298 | <td>End of each sequence to be used</td> |
| 299 | <td>Any integer value</td> |
| 300 | <td>0</td> |
| 301 | </tr> |
| 302 | |
| 303 | <tr bgcolor="#FFFFCC"> |
| 304 | <td> -sreverse1<br>-sreverse_sequence</td> |
| 305 | <td>boolean</td> |
| 306 | <td>Reverse (if DNA)</td> |
| 307 | <td>Boolean value Yes/No</td> |
| 308 | <td>N</td> |
| 309 | </tr> |
| 310 | |
| 311 | <tr bgcolor="#FFFFCC"> |
| 312 | <td> -sask1<br>-sask_sequence</td> |
| 313 | <td>boolean</td> |
| 314 | <td>Ask for begin/end/reverse</td> |
| 315 | <td>Boolean value Yes/No</td> |
| 316 | <td>N</td> |
| 317 | </tr> |
| 318 | |
| 319 | <tr bgcolor="#FFFFCC"> |
| 320 | <td> -snucleotide1<br>-snucleotide_sequence</td> |
| 321 | <td>boolean</td> |
| 322 | <td>Sequence is nucleotide</td> |
| 323 | <td>Boolean value Yes/No</td> |
| 324 | <td>N</td> |
| 325 | </tr> |
| 326 | |
| 327 | <tr bgcolor="#FFFFCC"> |
| 328 | <td> -sprotein1<br>-sprotein_sequence</td> |
| 329 | <td>boolean</td> |
| 330 | <td>Sequence is protein</td> |
| 331 | <td>Boolean value Yes/No</td> |
| 332 | <td>N</td> |
| 333 | </tr> |
| 334 | |
| 335 | <tr bgcolor="#FFFFCC"> |
| 336 | <td> -slower1<br>-slower_sequence</td> |
| 337 | <td>boolean</td> |
| 338 | <td>Make lower case</td> |
| 339 | <td>Boolean value Yes/No</td> |
| 340 | <td>N</td> |
| 341 | </tr> |
| 342 | |
| 343 | <tr bgcolor="#FFFFCC"> |
| 344 | <td> -supper1<br>-supper_sequence</td> |
| 345 | <td>boolean</td> |
| 346 | <td>Make upper case</td> |
| 347 | <td>Boolean value Yes/No</td> |
| 348 | <td>N</td> |
| 349 | </tr> |
| 350 | |
| 351 | <tr bgcolor="#FFFFCC"> |
| 352 | <td> -scircular1<br>-scircular_sequence</td> |
| 353 | <td>boolean</td> |
| 354 | <td>Sequence is circular</td> |
| 355 | <td>Boolean value Yes/No</td> |
| 356 | <td>N</td> |
| 357 | </tr> |
| 358 | |
| 359 | <tr bgcolor="#FFFFCC"> |
| 360 | <td> -squick1<br>-squick_sequence</td> |
| 361 | <td>boolean</td> |
| 362 | <td>Read id and sequence only</td> |
| 363 | <td>Boolean value Yes/No</td> |
| 364 | <td>N</td> |
| 365 | </tr> |
| 366 | |
| 367 | <tr bgcolor="#FFFFCC"> |
| 368 | <td> -sformat1<br>-sformat_sequence</td> |
| 369 | <td>string</td> |
| 370 | <td>Input sequence format</td> |
| 371 | <td>Any string</td> |
| 372 | <td> </td> |
| 373 | </tr> |
| 374 | |
| 375 | <tr bgcolor="#FFFFCC"> |
| 376 | <td> -iquery1<br>-iquery_sequence</td> |
| 377 | <td>string</td> |
| 378 | <td>Input query fields or ID list</td> |
| 379 | <td>Any string</td> |
| 380 | <td> </td> |
| 381 | </tr> |
| 382 | |
| 383 | <tr bgcolor="#FFFFCC"> |
| 384 | <td> -ioffset1<br>-ioffset_sequence</td> |
| 385 | <td>integer</td> |
| 386 | <td>Input start position offset</td> |
| 387 | <td>Any integer value</td> |
| 388 | <td>0</td> |
| 389 | </tr> |
| 390 | |
| 391 | <tr bgcolor="#FFFFCC"> |
| 392 | <td> -sdbname1<br>-sdbname_sequence</td> |
| 393 | <td>string</td> |
| 394 | <td>Database name</td> |
| 395 | <td>Any string</td> |
| 396 | <td> </td> |
| 397 | </tr> |
| 398 | |
| 399 | <tr bgcolor="#FFFFCC"> |
| 400 | <td> -sid1<br>-sid_sequence</td> |
| 401 | <td>string</td> |
| 402 | <td>Entryname</td> |
| 403 | <td>Any string</td> |
| 404 | <td> </td> |
| 405 | </tr> |
| 406 | |
| 407 | <tr bgcolor="#FFFFCC"> |
| 408 | <td> -ufo1<br>-ufo_sequence</td> |
| 409 | <td>string</td> |
| 410 | <td>UFO features</td> |
| 411 | <td>Any string</td> |
| 412 | <td> </td> |
| 413 | </tr> |
| 414 | |
| 415 | <tr bgcolor="#FFFFCC"> |
| 416 | <td> -fformat1<br>-fformat_sequence</td> |
| 417 | <td>string</td> |
| 418 | <td>Features format</td> |
| 419 | <td>Any string</td> |
| 420 | <td> </td> |
| 421 | </tr> |
| 422 | |
| 423 | <tr bgcolor="#FFFFCC"> |
| 424 | <td> -fopenfile1<br>-fopenfile_sequence</td> |
| 425 | <td>string</td> |
| 426 | <td>Features file name</td> |
| 427 | <td>Any string</td> |
| 428 | <td> </td> |
| 429 | </tr> |
| 430 | |
| 431 | <tr bgcolor="#FFFFCC"> |
| 432 | <td align="left" colspan=5>"-outseq" associated seqout qualifiers |
| 433 | </td> |
| 434 | </tr> |
| 435 | |
| 436 | <tr bgcolor="#FFFFCC"> |
| 437 | <td> -osformat2<br>-osformat_outseq</td> |
| 438 | <td>string</td> |
| 439 | <td>Output seq format</td> |
| 440 | <td>Any string</td> |
| 441 | <td> </td> |
| 442 | </tr> |
| 443 | |
| 444 | <tr bgcolor="#FFFFCC"> |
| 445 | <td> -osextension2<br>-osextension_outseq</td> |
| 446 | <td>string</td> |
| 447 | <td>File name extension</td> |
| 448 | <td>Any string</td> |
| 449 | <td> </td> |
| 450 | </tr> |
| 451 | |
| 452 | <tr bgcolor="#FFFFCC"> |
| 453 | <td> -osname2<br>-osname_outseq</td> |
| 454 | <td>string</td> |
| 455 | <td>Base file name</td> |
| 456 | <td>Any string</td> |
| 457 | <td> </td> |
| 458 | </tr> |
| 459 | |
| 460 | <tr bgcolor="#FFFFCC"> |
| 461 | <td> -osdirectory2<br>-osdirectory_outseq</td> |
| 462 | <td>string</td> |
| 463 | <td>Output directory</td> |
| 464 | <td>Any string</td> |
| 465 | <td> </td> |
| 466 | </tr> |
| 467 | |
| 468 | <tr bgcolor="#FFFFCC"> |
| 469 | <td> -osdbname2<br>-osdbname_outseq</td> |
| 470 | <td>string</td> |
| 471 | <td>Database name to add</td> |
| 472 | <td>Any string</td> |
| 473 | <td> </td> |
| 474 | </tr> |
| 475 | |
| 476 | <tr bgcolor="#FFFFCC"> |
| 477 | <td> -ossingle2<br>-ossingle_outseq</td> |
| 478 | <td>boolean</td> |
| 479 | <td>Separate file for each entry</td> |
| 480 | <td>Boolean value Yes/No</td> |
| 481 | <td>N</td> |
| 482 | </tr> |
| 483 | |
| 484 | <tr bgcolor="#FFFFCC"> |
| 485 | <td> -oufo2<br>-oufo_outseq</td> |
| 486 | <td>string</td> |
| 487 | <td>UFO features</td> |
| 488 | <td>Any string</td> |
| 489 | <td> </td> |
| 490 | </tr> |
| 491 | |
| 492 | <tr bgcolor="#FFFFCC"> |
| 493 | <td> -offormat2<br>-offormat_outseq</td> |
| 494 | <td>string</td> |
| 495 | <td>Features format</td> |
| 496 | <td>Any string</td> |
| 497 | <td> </td> |
| 498 | </tr> |
| 499 | |
| 500 | <tr bgcolor="#FFFFCC"> |
| 501 | <td> -ofname2<br>-ofname_outseq</td> |
| 502 | <td>string</td> |
| 503 | <td>Features file name</td> |
| 504 | <td>Any string</td> |
| 505 | <td> </td> |
| 506 | </tr> |
| 507 | |
| 508 | <tr bgcolor="#FFFFCC"> |
| 509 | <td> -ofdirectory2<br>-ofdirectory_outseq</td> |
| 510 | <td>string</td> |
| 511 | <td>Output directory</td> |
| 512 | <td>Any string</td> |
| 513 | <td> </td> |
| 514 | </tr> |
| 515 | |
| 516 | <tr bgcolor="#FFFFCC"> |
| 517 | <th align="left" colspan=5>General qualifiers</th> |
| 518 | </tr> |
| 519 | |
| 520 | <tr bgcolor="#FFFFCC"> |
| 521 | <td> -auto</td> |
| 522 | <td>boolean</td> |
| 523 | <td>Turn off prompts</td> |
| 524 | <td>Boolean value Yes/No</td> |
| 525 | <td>N</td> |
| 526 | </tr> |
| 527 | |
| 528 | <tr bgcolor="#FFFFCC"> |
| 529 | <td> -stdout</td> |
| 530 | <td>boolean</td> |
| 531 | <td>Write first file to standard output</td> |
| 532 | <td>Boolean value Yes/No</td> |
| 533 | <td>N</td> |
| 534 | </tr> |
| 535 | |
| 536 | <tr bgcolor="#FFFFCC"> |
| 537 | <td> -filter</td> |
| 538 | <td>boolean</td> |
| 539 | <td>Read first file from standard input, write first file to standard output</td> |
| 540 | <td>Boolean value Yes/No</td> |
| 541 | <td>N</td> |
| 542 | </tr> |
| 543 | |
| 544 | <tr bgcolor="#FFFFCC"> |
| 545 | <td> -options</td> |
| 546 | <td>boolean</td> |
| 547 | <td>Prompt for standard and additional values</td> |
| 548 | <td>Boolean value Yes/No</td> |
| 549 | <td>N</td> |
| 550 | </tr> |
| 551 | |
| 552 | <tr bgcolor="#FFFFCC"> |
| 553 | <td> -debug</td> |
| 554 | <td>boolean</td> |
| 555 | <td>Write debug output to program.dbg</td> |
| 556 | <td>Boolean value Yes/No</td> |
| 557 | <td>N</td> |
| 558 | </tr> |
| 559 | |
| 560 | <tr bgcolor="#FFFFCC"> |
| 561 | <td> -verbose</td> |
| 562 | <td>boolean</td> |
| 563 | <td>Report some/full command line options</td> |
| 564 | <td>Boolean value Yes/No</td> |
| 565 | <td>Y</td> |
| 566 | </tr> |
| 567 | |
| 568 | <tr bgcolor="#FFFFCC"> |
| 569 | <td> -help</td> |
| 570 | <td>boolean</td> |
| 571 | <td>Report command line options and exit. More information on associated and general qualifiers can be found with -help -verbose</td> |
| 572 | <td>Boolean value Yes/No</td> |
| 573 | <td>N</td> |
| 574 | </tr> |
| 575 | |
| 576 | <tr bgcolor="#FFFFCC"> |
| 577 | <td> -warning</td> |
| 578 | <td>boolean</td> |
| 579 | <td>Report warnings</td> |
| 580 | <td>Boolean value Yes/No</td> |
| 581 | <td>Y</td> |
| 582 | </tr> |
| 583 | |
| 584 | <tr bgcolor="#FFFFCC"> |
| 585 | <td> -error</td> |
| 586 | <td>boolean</td> |
| 587 | <td>Report errors</td> |
| 588 | <td>Boolean value Yes/No</td> |
| 589 | <td>Y</td> |
| 590 | </tr> |
| 591 | |
| 592 | <tr bgcolor="#FFFFCC"> |
| 593 | <td> -fatal</td> |
| 594 | <td>boolean</td> |
| 595 | <td>Report fatal errors</td> |
| 596 | <td>Boolean value Yes/No</td> |
| 597 | <td>Y</td> |
| 598 | </tr> |
| 599 | |
| 600 | <tr bgcolor="#FFFFCC"> |
| 601 | <td> -die</td> |
| 602 | <td>boolean</td> |
| 603 | <td>Report dying program messages</td> |
| 604 | <td>Boolean value Yes/No</td> |
| 605 | <td>Y</td> |
| 606 | </tr> |
| 607 | |
| 608 | <tr bgcolor="#FFFFCC"> |
| 609 | <td> -version</td> |
| 610 | <td>boolean</td> |
| 611 | <td>Report version number and exit</td> |
| 612 | <td>Boolean value Yes/No</td> |
| 613 | <td>N</td> |
| 614 | </tr> |
| 615 | |
| 616 | </table> |
| 617 | |
| 618 | |
| 619 | <H2> |
| 620 | Input file format |
| 621 | </H2> |
| 622 | |
| 623 | The USA of a set of aligned sequences. |
| 624 | |
| 625 | <p> |
| 626 | |
| 627 | <a name="input.1"></a> |
| 628 | <h3>Input files for usage example </h3> |
| 629 | <p><h3>File: dna.msf</h3> |
| 630 | <table width="90%"><tr><td bgcolor="#FFCCFF"> |
| 631 | <pre> |
| 632 | !!NA_MULTIPLE_ALIGNMENT |
| 633 | |
| 634 | dna.msf MSF: 120 Type: N January 01, 1776 12:00 Check: 3196 .. |
| 635 | |
| 636 | Name: MSFM1 Len: 120 Check: 8587 Weight: 1.00 |
| 637 | Name: MSFM2 Len: 120 Check: 6178 Weight: 1.00 |
| 638 | Name: MSFM3 Len: 120 Check: 8431 Weight: 1.00 |
| 639 | |
| 640 | // |
| 641 | |
| 642 | MSFM1 ACGTACGTAC GTACGTACGT ACGTACGTAC GTACGTACGT ACGTACGTAC |
| 643 | MSFM2 ACGTACGTAC GTACGTACGT ....ACGTAC GTACGTACGT ACGTACGTAC |
| 644 | MSFM3 ACGTACGTAC GTACGTACGT ACGTACGTAC GTACGTACGT CGTACGTACG |
| 645 | |
| 646 | MSFM1 GTACGTACGT ACGTACGTAC GTACGTACGT ACGTACGTAC GTACGTACGT |
| 647 | MSFM2 GTACGTACGT ACGTACGTAC GTACGTACGT ACGTACGTAC GTACGTACGT |
| 648 | MSFM3 TACGTACGTA CGTACGTACG TACGTACGTA ACGTACGTAC GTACGTACGT |
| 649 | |
| 650 | MSFM1 ACGTACGTAC GTACGTACGT |
| 651 | MSFM2 ACGTACGTTG CAACGTACGT |
| 652 | MSFM3 ACGTACGTAC GTACGTACGT |
| 653 | |
| 654 | </pre> |
| 655 | </td></tr></table><p> |
| 656 | |
| 657 | <H2> |
| 658 | Output file format |
| 659 | </H2> |
| 660 | The output consists of a sequence file holding the consensus sequence. |
| 661 | |
| 662 | <p> |
| 663 | |
| 664 | <a name="output.1"></a> |
| 665 | <h3>Output files for usage example </h3> |
| 666 | <p><h3>File: aligned.cons</h3> |
| 667 | <table width="90%"><tr><td bgcolor="#CCFFCC"> |
| 668 | <pre> |
| 669 | >EMBOSS_001 |
| 670 | ACGTACGTACGTACGTACGTACGTACGTACGTACGTACGTACGTACGTACGTACGTACGT |
| 671 | ACGTACGTACGTACGTACGTACGTACGTACGTACGTACGTACGTACGTACGTACGTACGT |
| 672 | </pre> |
| 673 | </td></tr></table><p> |
| 674 | |
| 675 | |
| 676 | |
| 677 | <H2> |
| 678 | Data files |
| 679 | </H2> |
| 680 | |
| 681 | <p><b>cons</b> uses the standard set of scoring matrix data files in |
| 682 | the EMBOSS data directory.</p> |
| 683 | |
| 684 | |
| 685 | <P> |
| 686 | <p> |
| 687 | EMBOSS data files are distributed with the application and stored |
| 688 | in the standard EMBOSS data directory, which is defined |
| 689 | by the EMBOSS environment variable EMBOSS_DATA. |
| 690 | |
| 691 | <p> |
| 692 | |
| 693 | To see the available EMBOSS data files, run: |
| 694 | <p> |
| 695 | <pre> |
| 696 | % embossdata -showall |
| 697 | </pre> |
| 698 | <p> |
| 699 | To fetch one of the data files (for example 'Exxx.dat') into your |
| 700 | current directory for you to inspect or modify, run: |
| 701 | |
| 702 | <pre> |
| 703 | |
| 704 | % embossdata -fetch -file Exxx.dat |
| 705 | |
| 706 | </pre> |
| 707 | <p> |
| 708 | |
| 709 | Users can provide their own data files in their own directories. |
| 710 | Project specific files can be put in the current directory, or for |
| 711 | tidier directory listings in a subdirectory called |
| 712 | ".embossdata". Files for all EMBOSS runs can be put in the user's home |
| 713 | directory, or again in a subdirectory called ".embossdata". |
| 714 | |
| 715 | <p> |
| 716 | The directories are searched in the following order: |
| 717 | |
| 718 | <ul> |
| 719 | <li> . (your current directory) |
| 720 | <li> .embossdata (under your current directory) |
| 721 | <li> ~/ (your home directory) |
| 722 | <li> ~/.embossdata |
| 723 | </ul> |
| 724 | <p> |
| 725 | |
| 726 | |
| 727 | <H2> |
| 728 | Notes |
| 729 | </H2> |
| 730 | |
| 731 | <p>The "identity" qualifier provides an additional constrain to |
| 732 | "plurality" when determining a consensus residue at an alignment |
| 733 | site. "identity" sets the required number of identities at a site for |
| 734 | it to be included in the consensus. If for example this is set to the |
| 735 | number of sequences in the alignment, then only a site with the same |
| 736 | residue in all sequences would be included in the consensus.</p> |
| 737 | |
| 738 | <p>The "setcase" qualifier sets the threshold for the positive matches |
| 739 | above which the consensus residue is given is upper-case and below |
| 740 | which it is in lower-case.</p> |
| 741 | |
| 742 | |
| 743 | <H2> |
| 744 | References |
| 745 | </H2> |
| 746 | |
| 747 | None. |
| 748 | |
| 749 | <H2> |
| 750 | Warnings |
| 751 | </H2> |
| 752 | |
| 753 | None. |
| 754 | |
| 755 | <H2> |
| 756 | Diagnostic Error Messages |
| 757 | </H2> |
| 758 | |
| 759 | None. |
| 760 | |
| 761 | <H2> |
| 762 | Exit status |
| 763 | </H2> |
| 764 | |
| 765 | It always exits with status 0. |
| 766 | |
| 767 | <H2> |
| 768 | Known bugs |
| 769 | </H2> |
| 770 | |
| 771 | None. |
| 772 | |
| 773 | |
| 774 | <h2><a name="See also">See also</a></h2> |
| 775 | <table border cellpadding=4 bgcolor="#FFFFF0"> |
| 776 | <tr><th>Program name</th> |
| 777 | <th>Description</th></tr> |
| 778 | <tr> |
| 779 | <td><a href="consambig.html">consambig</a></td> |
| 780 | <td>Create an ambiguous consensus sequence from a multiple alignment</td> |
| 781 | </tr> |
| 782 | |
| 783 | <tr> |
| 784 | <td><a href="megamerger.html">megamerger</a></td> |
| 785 | <td>Merge two large overlapping DNA sequences</td> |
| 786 | </tr> |
| 787 | |
| 788 | <tr> |
| 789 | <td><a href="merger.html">merger</a></td> |
| 790 | <td>Merge two overlapping sequences</td> |
| 791 | </tr> |
| 792 | |
| 793 | </table> |
| 794 | |
| 795 | <H2> |
| 796 | Author(s) |
| 797 | </H2> |
| 798 | Tim Carver formerly at: |
| 799 | <br> |
| 800 | MRC Rosalind Franklin Centre for Genomics Research |
| 801 | Wellcome Trust Genome Campus, Hinxton, Cambridge, CB10 1SB, UK |
| 802 | |
| 803 | <p> |
| 804 | Please report all bugs to the EMBOSS bug team (emboss-bug © emboss.open-bio.org) not to the original author. |
| 805 | <H2> |
| 806 | History |
| 807 | </H2> |
| 808 | |
| 809 | |
| 810 | <H2> |
| 811 | Target users |
| 812 | </H2> |
| 813 | This program is intended to be used by everyone and everything, from naive users to embedded scripts. |
| 814 | |
| 815 | <H2> |
| 816 | Comments |
| 817 | </H2> |
| 818 | None |
| 819 | |
| 820 | |
| 821 | </BODY> |
| 822 | </HTML> |
| 823 |