| 1 | <HTML> |
| 2 | |
| 3 | <HEAD> |
| 4 | <TITLE> |
| 5 | EMBOSS: compseq |
| 6 | </TITLE> |
| 7 | </HEAD> |
| 8 | <BODY BGCOLOR="#FFFFFF" text="#000000"> |
| 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 | compseq |
| 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 | Calculate the composition of unique words in sequences |
| 40 | <H2> |
| 41 | Description |
| 42 | </H2> |
| 43 | |
| 44 | <p><b>compseq</b> calculates the composition of words of a specified |
| 45 | length (dimer, trimer etc) in the input sequence(s). The word length |
| 46 | is user-specified. The unique sequences (words), their observed |
| 47 | count, observed frequency, expected frequency and (observed / |
| 48 | expected) frequency are written to the output file. The (observed / |
| 49 | expected) frequency highlights any words with unusually high (or low) |
| 50 | occurence in the input sequences.</p> |
| 51 | |
| 52 | |
| 53 | <H2> |
| 54 | Algorithm |
| 55 | </H2> |
| 56 | <p>By default, <b>compseq</b> makes the (false) assumption that each |
| 57 | word is equally likely. The expected frequency therefore of any dimer |
| 58 | is 1/16 - this is simply the inverse of the number of possible dimers |
| 59 | (<tt>AA</tt>, <tt>AC</tt>, <tt>AG</tt>, <tt>AT</tt>, <tt>CA</tt>, |
| 60 | <tt>CC</tt>, <tt>CG</tt>, <tt>CT</tt>, <tt>GA</tt>, <tt>GC</tt>, |
| 61 | <tt>GG</tt>, <tt>GT</tt>, <tt>TA</tt>, <tt>TC</tt>, <tt>TG</tt>, <tt>TT</tt>). |
| 62 | Similarly, the expected frequency of any trimer is 1/64, etc. Clearly |
| 63 | this is not the case in real sequences where there will be bias in |
| 64 | favour of some monomers and words. There are ways around this (see |
| 65 | "Notes").</p> |
| 66 | |
| 67 | <p>The normal behaviour of <b>compseq</b> is to count the frequencies |
| 68 | of all words that occur by moving a window of length 'word' up by one |
| 69 | each time. The '-frame' option allows you to move the window up by |
| 70 | the length of the word each time, skipping over the intervening words. |
| 71 | You can count only those words that occur in a single frame of the |
| 72 | word by setting this value to a number other than zero. If you set it |
| 73 | to 1 it will only count the words in frame 1, 2 will only count the |
| 74 | words in frame 2 and so on.</p> |
| 75 | |
| 76 | |
| 77 | <H2> |
| 78 | Usage |
| 79 | </H2> |
| 80 | Here is a sample session with <b>compseq</b> |
| 81 | <p> |
| 82 | To count the frequencies of dinucleotides in a file: |
| 83 | <p> |
| 84 | |
| 85 | <p> |
| 86 | <table width="90%"><tr><td bgcolor="#CCFFFF"><pre> |
| 87 | |
| 88 | % <b>compseq tembl:x65923 -word 2 result3.comp </b> |
| 89 | Calculate the composition of unique words in sequences |
| 90 | |
| 91 | </pre></td></tr></table><p> |
| 92 | <p> |
| 93 | <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> |
| 94 | <p> |
| 95 | <b>Example 2</b> |
| 96 | <p> |
| 97 | To count the frequencies of hexanucleotides, without outputting the results of hexanucleotides that do not occur in the sequence: |
| 98 | <p> |
| 99 | |
| 100 | <p> |
| 101 | <table width="90%"><tr><td bgcolor="#CCFFFF"><pre> |
| 102 | |
| 103 | % <b>compseq tembl:x65923 -word 6 result6.comp -nozero </b> |
| 104 | Calculate the composition of unique words in sequences |
| 105 | |
| 106 | </pre></td></tr></table><p> |
| 107 | <p> |
| 108 | <a href="#output.2">Go to the output files for this example</a><p><p> |
| 109 | <p> |
| 110 | <b>Example 3</b> |
| 111 | <p> |
| 112 | To count the frequencies of trinucleotides in frame 2 of a sequence and use a previously prepared compseq output to show the expected frequencies: |
| 113 | <p> |
| 114 | |
| 115 | <p> |
| 116 | <table width="90%"><tr><td bgcolor="#CCFFFF"><pre> |
| 117 | |
| 118 | % <b>compseq tembl:x65923 -word 3 result3.comp -frame 2 -in prev.comp </b> |
| 119 | Calculate the composition of unique words in sequences |
| 120 | |
| 121 | </pre></td></tr></table><p> |
| 122 | <p> |
| 123 | <a href="#input.3">Go to the input files for this example</a><br><a href="#output.3">Go to the output files for this example</a><p><p> |
| 124 | |
| 125 | <H2> |
| 126 | Command line arguments |
| 127 | </H2> |
| 128 | |
| 129 | <table CELLSPACING=0 CELLPADDING=3 BGCOLOR="#f5f5ff" ><tr><td> |
| 130 | <pre> |
| 131 | Calculate the composition of unique words in sequences |
| 132 | Version: EMBOSS:6.6.0.0 |
| 133 | |
| 134 | Standard (Mandatory) qualifiers: |
| 135 | [-sequence] seqall Sequence(s) filename and optional format, or |
| 136 | reference (input USA) |
| 137 | -word integer [2] This is the size of word (n-mer) to |
| 138 | count. |
| 139 | Thus if you want to count codon frequencies |
| 140 | for a nucleotide sequence, you should enter |
| 141 | 3 here. (Integer 1 or more) |
| 142 | [-outfile] outfile [*.compseq] This is the results file. |
| 143 | |
| 144 | Additional (Optional) qualifiers (* if not always prompted): |
| 145 | -infile infile This is a file previously produced by |
| 146 | 'compseq' that can be used to set the |
| 147 | expected frequencies of words in this |
| 148 | analysis. |
| 149 | The word size in the current run must be the |
| 150 | same as the one in this results file. |
| 151 | Obviously, you should use a file produced |
| 152 | from protein sequences if you are counting |
| 153 | protein sequence word frequencies, and you |
| 154 | must use one made from nucleotide |
| 155 | frequencies if you are analysing a |
| 156 | nucleotide sequence. |
| 157 | -frame integer [0] The normal behaviour of 'compseq' is to |
| 158 | count the frequencies of all words that |
| 159 | occur by moving a window of length 'word' up |
| 160 | by one each time. |
| 161 | This option allows you to move the window up |
| 162 | by the length of the word each time, |
| 163 | skipping over the intervening words. |
| 164 | You can count only those words that occur in |
| 165 | a single frame of the word by setting this |
| 166 | value to a number other than zero. |
| 167 | If you set it to 1 it will only count the |
| 168 | words in frame 1, 2 will only count the |
| 169 | words in frame 2 and so on. (Integer 0 or |
| 170 | more) |
| 171 | * -[no]ignorebz boolean [Y] The amino acid code B represents |
| 172 | Asparagine or Aspartic acid and the code Z |
| 173 | represents Glutamine or Glutamic acid. |
| 174 | These are not commonly used codes and you |
| 175 | may wish not to count words containing them, |
| 176 | just noting them in the count of 'Other' |
| 177 | words. |
| 178 | * -reverse boolean [N] Set this to be true if you also wish to |
| 179 | also count words in the reverse complement |
| 180 | of a nucleic sequence. |
| 181 | -calcfreq boolean [N] If this is set true then the expected |
| 182 | frequencies of words are calculated from the |
| 183 | observed frequency of single bases or |
| 184 | residues in the sequences. |
| 185 | If you are reporting a word size of 1 |
| 186 | (single bases or residues) then there is no |
| 187 | point in using this option because the |
| 188 | calculated expected frequency will be equal |
| 189 | to the observed frequency. |
| 190 | Calculating the expected frequencies like |
| 191 | this will give an approximation of the |
| 192 | expected frequencies that you might get by |
| 193 | using an input file of frequencies produced |
| 194 | by a previous run of this program. If an |
| 195 | input file of expected word frequencies has |
| 196 | been specified then the values from that |
| 197 | file will be used instead of this |
| 198 | calculation of expected frequency from the |
| 199 | sequence, even if 'calcfreq' is set to be |
| 200 | true. |
| 201 | -[no]zerocount boolean [Y] You can make the output results file |
| 202 | much smaller if you do not display the words |
| 203 | with a zero count. |
| 204 | |
| 205 | Advanced (Unprompted) qualifiers: (none) |
| 206 | Associated qualifiers: |
| 207 | |
| 208 | "-sequence" associated qualifiers |
| 209 | -sbegin1 integer Start of each sequence to be used |
| 210 | -send1 integer End of each sequence to be used |
| 211 | -sreverse1 boolean Reverse (if DNA) |
| 212 | -sask1 boolean Ask for begin/end/reverse |
| 213 | -snucleotide1 boolean Sequence is nucleotide |
| 214 | -sprotein1 boolean Sequence is protein |
| 215 | -slower1 boolean Make lower case |
| 216 | -supper1 boolean Make upper case |
| 217 | -scircular1 boolean Sequence is circular |
| 218 | -squick1 boolean Read id and sequence only |
| 219 | -sformat1 string Input sequence format |
| 220 | -iquery1 string Input query fields or ID list |
| 221 | -ioffset1 integer Input start position offset |
| 222 | -sdbname1 string Database name |
| 223 | -sid1 string Entryname |
| 224 | -ufo1 string UFO features |
| 225 | -fformat1 string Features format |
| 226 | -fopenfile1 string Features file name |
| 227 | |
| 228 | "-outfile" associated qualifiers |
| 229 | -odirectory2 string Output directory |
| 230 | |
| 231 | General qualifiers: |
| 232 | -auto boolean Turn off prompts |
| 233 | -stdout boolean Write first file to standard output |
| 234 | -filter boolean Read first file from standard input, write |
| 235 | first file to standard output |
| 236 | -options boolean Prompt for standard and additional values |
| 237 | -debug boolean Write debug output to program.dbg |
| 238 | -verbose boolean Report some/full command line options |
| 239 | -help boolean Report command line options and exit. More |
| 240 | information on associated and general |
| 241 | qualifiers can be found with -help -verbose |
| 242 | -warning boolean Report warnings |
| 243 | -error boolean Report errors |
| 244 | -fatal boolean Report fatal errors |
| 245 | -die boolean Report dying program messages |
| 246 | -version boolean Report version number and exit |
| 247 | |
| 248 | </pre> |
| 249 | </td></tr></table> |
| 250 | <P> |
| 251 | <table border cellspacing=0 cellpadding=3 bgcolor="#ccccff"> |
| 252 | <tr bgcolor="#FFFFCC"> |
| 253 | <th align="left">Qualifier</th> |
| 254 | <th align="left">Type</th> |
| 255 | <th align="left">Description</th> |
| 256 | <th align="left">Allowed values</th> |
| 257 | <th align="left">Default</th> |
| 258 | </tr> |
| 259 | |
| 260 | <tr bgcolor="#FFFFCC"> |
| 261 | <th align="left" colspan=5>Standard (Mandatory) qualifiers</th> |
| 262 | </tr> |
| 263 | |
| 264 | <tr bgcolor="#FFFFCC"> |
| 265 | <td>[-sequence]<br>(Parameter 1)</td> |
| 266 | <td>seqall</td> |
| 267 | <td>Sequence(s) filename and optional format, or reference (input USA)</td> |
| 268 | <td>Readable sequence(s)</td> |
| 269 | <td><b>Required</b></td> |
| 270 | </tr> |
| 271 | |
| 272 | <tr bgcolor="#FFFFCC"> |
| 273 | <td>-word</td> |
| 274 | <td>integer</td> |
| 275 | <td>This is the size of word (n-mer) to count. |
| 276 | Thus if you want to count codon frequencies for a nucleotide sequence, you should enter 3 here.</td> |
| 277 | <td>Integer 1 or more</td> |
| 278 | <td>2</td> |
| 279 | </tr> |
| 280 | |
| 281 | <tr bgcolor="#FFFFCC"> |
| 282 | <td>[-outfile]<br>(Parameter 2)</td> |
| 283 | <td>outfile</td> |
| 284 | <td>This is the results file.</td> |
| 285 | <td>Output file</td> |
| 286 | <td><i><*></i>.compseq</td> |
| 287 | </tr> |
| 288 | |
| 289 | <tr bgcolor="#FFFFCC"> |
| 290 | <th align="left" colspan=5>Additional (Optional) qualifiers</th> |
| 291 | </tr> |
| 292 | |
| 293 | <tr bgcolor="#FFFFCC"> |
| 294 | <td>-infile</td> |
| 295 | <td>infile</td> |
| 296 | <td>This is a file previously produced by 'compseq' that can be used to set the expected frequencies of words in this analysis. |
| 297 | The word size in the current run must be the same as the one in this results file. Obviously, you should use a file produced from protein sequences if you are counting protein sequence word frequencies, and you must use one made from nucleotide frequencies if you are analysing a nucleotide sequence.</td> |
| 298 | <td>Input file</td> |
| 299 | <td><b>Required</b></td> |
| 300 | </tr> |
| 301 | |
| 302 | <tr bgcolor="#FFFFCC"> |
| 303 | <td>-frame</td> |
| 304 | <td>integer</td> |
| 305 | <td>The normal behaviour of 'compseq' is to count the frequencies of all words that occur by moving a window of length 'word' up by one each time. |
| 306 | This option allows you to move the window up by the length of the word each time, skipping over the intervening words. |
| 307 | You can count only those words that occur in a single frame of the word by setting this value to a number other than zero. |
| 308 | If you set it to 1 it will only count the words in frame 1, 2 will only count the words in frame 2 and so on.</td> |
| 309 | <td>Integer 0 or more</td> |
| 310 | <td>0</td> |
| 311 | </tr> |
| 312 | |
| 313 | <tr bgcolor="#FFFFCC"> |
| 314 | <td>-[no]ignorebz</td> |
| 315 | <td>boolean</td> |
| 316 | <td>The amino acid code B represents Asparagine or Aspartic acid and the code Z represents Glutamine or Glutamic acid. |
| 317 | These are not commonly used codes and you may wish not to count words containing them, just noting them in the count of 'Other' words.</td> |
| 318 | <td>Boolean value Yes/No</td> |
| 319 | <td>Yes</td> |
| 320 | </tr> |
| 321 | |
| 322 | <tr bgcolor="#FFFFCC"> |
| 323 | <td>-reverse</td> |
| 324 | <td>boolean</td> |
| 325 | <td>Set this to be true if you also wish to also count words in the reverse complement of a nucleic sequence.</td> |
| 326 | <td>Boolean value Yes/No</td> |
| 327 | <td>No</td> |
| 328 | </tr> |
| 329 | |
| 330 | <tr bgcolor="#FFFFCC"> |
| 331 | <td>-calcfreq</td> |
| 332 | <td>boolean</td> |
| 333 | <td>If this is set true then the expected frequencies of words are calculated from the observed frequency of single bases or residues in the sequences. |
| 334 | If you are reporting a word size of 1 (single bases or residues) then there is no point in using this option because the calculated expected frequency will be equal to the observed frequency. |
| 335 | Calculating the expected frequencies like this will give an approximation of the expected frequencies that you might get by using an input file of frequencies produced by a previous run of this program. If an input file of expected word frequencies has been specified then the values from that file will be used instead of this calculation of expected frequency from the sequence, even if 'calcfreq' is set to be true.</td> |
| 336 | <td>Boolean value Yes/No</td> |
| 337 | <td>No</td> |
| 338 | </tr> |
| 339 | |
| 340 | <tr bgcolor="#FFFFCC"> |
| 341 | <td>-[no]zerocount</td> |
| 342 | <td>boolean</td> |
| 343 | <td>You can make the output results file much smaller if you do not display the words with a zero count.</td> |
| 344 | <td>Boolean value Yes/No</td> |
| 345 | <td>Yes</td> |
| 346 | </tr> |
| 347 | |
| 348 | <tr bgcolor="#FFFFCC"> |
| 349 | <th align="left" colspan=5>Advanced (Unprompted) qualifiers</th> |
| 350 | </tr> |
| 351 | |
| 352 | <tr> |
| 353 | <td colspan=5>(none)</td> |
| 354 | </tr> |
| 355 | |
| 356 | <tr bgcolor="#FFFFCC"> |
| 357 | <th align="left" colspan=5>Associated qualifiers</th> |
| 358 | </tr> |
| 359 | |
| 360 | <tr bgcolor="#FFFFCC"> |
| 361 | <td align="left" colspan=5>"-sequence" associated seqall qualifiers |
| 362 | </td> |
| 363 | </tr> |
| 364 | |
| 365 | <tr bgcolor="#FFFFCC"> |
| 366 | <td> -sbegin1<br>-sbegin_sequence</td> |
| 367 | <td>integer</td> |
| 368 | <td>Start of each sequence to be used</td> |
| 369 | <td>Any integer value</td> |
| 370 | <td>0</td> |
| 371 | </tr> |
| 372 | |
| 373 | <tr bgcolor="#FFFFCC"> |
| 374 | <td> -send1<br>-send_sequence</td> |
| 375 | <td>integer</td> |
| 376 | <td>End of each sequence to be used</td> |
| 377 | <td>Any integer value</td> |
| 378 | <td>0</td> |
| 379 | </tr> |
| 380 | |
| 381 | <tr bgcolor="#FFFFCC"> |
| 382 | <td> -sreverse1<br>-sreverse_sequence</td> |
| 383 | <td>boolean</td> |
| 384 | <td>Reverse (if DNA)</td> |
| 385 | <td>Boolean value Yes/No</td> |
| 386 | <td>N</td> |
| 387 | </tr> |
| 388 | |
| 389 | <tr bgcolor="#FFFFCC"> |
| 390 | <td> -sask1<br>-sask_sequence</td> |
| 391 | <td>boolean</td> |
| 392 | <td>Ask for begin/end/reverse</td> |
| 393 | <td>Boolean value Yes/No</td> |
| 394 | <td>N</td> |
| 395 | </tr> |
| 396 | |
| 397 | <tr bgcolor="#FFFFCC"> |
| 398 | <td> -snucleotide1<br>-snucleotide_sequence</td> |
| 399 | <td>boolean</td> |
| 400 | <td>Sequence is nucleotide</td> |
| 401 | <td>Boolean value Yes/No</td> |
| 402 | <td>N</td> |
| 403 | </tr> |
| 404 | |
| 405 | <tr bgcolor="#FFFFCC"> |
| 406 | <td> -sprotein1<br>-sprotein_sequence</td> |
| 407 | <td>boolean</td> |
| 408 | <td>Sequence is protein</td> |
| 409 | <td>Boolean value Yes/No</td> |
| 410 | <td>N</td> |
| 411 | </tr> |
| 412 | |
| 413 | <tr bgcolor="#FFFFCC"> |
| 414 | <td> -slower1<br>-slower_sequence</td> |
| 415 | <td>boolean</td> |
| 416 | <td>Make lower case</td> |
| 417 | <td>Boolean value Yes/No</td> |
| 418 | <td>N</td> |
| 419 | </tr> |
| 420 | |
| 421 | <tr bgcolor="#FFFFCC"> |
| 422 | <td> -supper1<br>-supper_sequence</td> |
| 423 | <td>boolean</td> |
| 424 | <td>Make upper case</td> |
| 425 | <td>Boolean value Yes/No</td> |
| 426 | <td>N</td> |
| 427 | </tr> |
| 428 | |
| 429 | <tr bgcolor="#FFFFCC"> |
| 430 | <td> -scircular1<br>-scircular_sequence</td> |
| 431 | <td>boolean</td> |
| 432 | <td>Sequence is circular</td> |
| 433 | <td>Boolean value Yes/No</td> |
| 434 | <td>N</td> |
| 435 | </tr> |
| 436 | |
| 437 | <tr bgcolor="#FFFFCC"> |
| 438 | <td> -squick1<br>-squick_sequence</td> |
| 439 | <td>boolean</td> |
| 440 | <td>Read id and sequence only</td> |
| 441 | <td>Boolean value Yes/No</td> |
| 442 | <td>N</td> |
| 443 | </tr> |
| 444 | |
| 445 | <tr bgcolor="#FFFFCC"> |
| 446 | <td> -sformat1<br>-sformat_sequence</td> |
| 447 | <td>string</td> |
| 448 | <td>Input sequence format</td> |
| 449 | <td>Any string</td> |
| 450 | <td> </td> |
| 451 | </tr> |
| 452 | |
| 453 | <tr bgcolor="#FFFFCC"> |
| 454 | <td> -iquery1<br>-iquery_sequence</td> |
| 455 | <td>string</td> |
| 456 | <td>Input query fields or ID list</td> |
| 457 | <td>Any string</td> |
| 458 | <td> </td> |
| 459 | </tr> |
| 460 | |
| 461 | <tr bgcolor="#FFFFCC"> |
| 462 | <td> -ioffset1<br>-ioffset_sequence</td> |
| 463 | <td>integer</td> |
| 464 | <td>Input start position offset</td> |
| 465 | <td>Any integer value</td> |
| 466 | <td>0</td> |
| 467 | </tr> |
| 468 | |
| 469 | <tr bgcolor="#FFFFCC"> |
| 470 | <td> -sdbname1<br>-sdbname_sequence</td> |
| 471 | <td>string</td> |
| 472 | <td>Database name</td> |
| 473 | <td>Any string</td> |
| 474 | <td> </td> |
| 475 | </tr> |
| 476 | |
| 477 | <tr bgcolor="#FFFFCC"> |
| 478 | <td> -sid1<br>-sid_sequence</td> |
| 479 | <td>string</td> |
| 480 | <td>Entryname</td> |
| 481 | <td>Any string</td> |
| 482 | <td> </td> |
| 483 | </tr> |
| 484 | |
| 485 | <tr bgcolor="#FFFFCC"> |
| 486 | <td> -ufo1<br>-ufo_sequence</td> |
| 487 | <td>string</td> |
| 488 | <td>UFO features</td> |
| 489 | <td>Any string</td> |
| 490 | <td> </td> |
| 491 | </tr> |
| 492 | |
| 493 | <tr bgcolor="#FFFFCC"> |
| 494 | <td> -fformat1<br>-fformat_sequence</td> |
| 495 | <td>string</td> |
| 496 | <td>Features format</td> |
| 497 | <td>Any string</td> |
| 498 | <td> </td> |
| 499 | </tr> |
| 500 | |
| 501 | <tr bgcolor="#FFFFCC"> |
| 502 | <td> -fopenfile1<br>-fopenfile_sequence</td> |
| 503 | <td>string</td> |
| 504 | <td>Features file name</td> |
| 505 | <td>Any string</td> |
| 506 | <td> </td> |
| 507 | </tr> |
| 508 | |
| 509 | <tr bgcolor="#FFFFCC"> |
| 510 | <td align="left" colspan=5>"-outfile" associated outfile qualifiers |
| 511 | </td> |
| 512 | </tr> |
| 513 | |
| 514 | <tr bgcolor="#FFFFCC"> |
| 515 | <td> -odirectory2<br>-odirectory_outfile</td> |
| 516 | <td>string</td> |
| 517 | <td>Output directory</td> |
| 518 | <td>Any string</td> |
| 519 | <td> </td> |
| 520 | </tr> |
| 521 | |
| 522 | <tr bgcolor="#FFFFCC"> |
| 523 | <th align="left" colspan=5>General qualifiers</th> |
| 524 | </tr> |
| 525 | |
| 526 | <tr bgcolor="#FFFFCC"> |
| 527 | <td> -auto</td> |
| 528 | <td>boolean</td> |
| 529 | <td>Turn off prompts</td> |
| 530 | <td>Boolean value Yes/No</td> |
| 531 | <td>N</td> |
| 532 | </tr> |
| 533 | |
| 534 | <tr bgcolor="#FFFFCC"> |
| 535 | <td> -stdout</td> |
| 536 | <td>boolean</td> |
| 537 | <td>Write first file to standard output</td> |
| 538 | <td>Boolean value Yes/No</td> |
| 539 | <td>N</td> |
| 540 | </tr> |
| 541 | |
| 542 | <tr bgcolor="#FFFFCC"> |
| 543 | <td> -filter</td> |
| 544 | <td>boolean</td> |
| 545 | <td>Read first file from standard input, write first file to standard output</td> |
| 546 | <td>Boolean value Yes/No</td> |
| 547 | <td>N</td> |
| 548 | </tr> |
| 549 | |
| 550 | <tr bgcolor="#FFFFCC"> |
| 551 | <td> -options</td> |
| 552 | <td>boolean</td> |
| 553 | <td>Prompt for standard and additional values</td> |
| 554 | <td>Boolean value Yes/No</td> |
| 555 | <td>N</td> |
| 556 | </tr> |
| 557 | |
| 558 | <tr bgcolor="#FFFFCC"> |
| 559 | <td> -debug</td> |
| 560 | <td>boolean</td> |
| 561 | <td>Write debug output to program.dbg</td> |
| 562 | <td>Boolean value Yes/No</td> |
| 563 | <td>N</td> |
| 564 | </tr> |
| 565 | |
| 566 | <tr bgcolor="#FFFFCC"> |
| 567 | <td> -verbose</td> |
| 568 | <td>boolean</td> |
| 569 | <td>Report some/full command line options</td> |
| 570 | <td>Boolean value Yes/No</td> |
| 571 | <td>Y</td> |
| 572 | </tr> |
| 573 | |
| 574 | <tr bgcolor="#FFFFCC"> |
| 575 | <td> -help</td> |
| 576 | <td>boolean</td> |
| 577 | <td>Report command line options and exit. More information on associated and general qualifiers can be found with -help -verbose</td> |
| 578 | <td>Boolean value Yes/No</td> |
| 579 | <td>N</td> |
| 580 | </tr> |
| 581 | |
| 582 | <tr bgcolor="#FFFFCC"> |
| 583 | <td> -warning</td> |
| 584 | <td>boolean</td> |
| 585 | <td>Report warnings</td> |
| 586 | <td>Boolean value Yes/No</td> |
| 587 | <td>Y</td> |
| 588 | </tr> |
| 589 | |
| 590 | <tr bgcolor="#FFFFCC"> |
| 591 | <td> -error</td> |
| 592 | <td>boolean</td> |
| 593 | <td>Report errors</td> |
| 594 | <td>Boolean value Yes/No</td> |
| 595 | <td>Y</td> |
| 596 | </tr> |
| 597 | |
| 598 | <tr bgcolor="#FFFFCC"> |
| 599 | <td> -fatal</td> |
| 600 | <td>boolean</td> |
| 601 | <td>Report fatal errors</td> |
| 602 | <td>Boolean value Yes/No</td> |
| 603 | <td>Y</td> |
| 604 | </tr> |
| 605 | |
| 606 | <tr bgcolor="#FFFFCC"> |
| 607 | <td> -die</td> |
| 608 | <td>boolean</td> |
| 609 | <td>Report dying program messages</td> |
| 610 | <td>Boolean value Yes/No</td> |
| 611 | <td>Y</td> |
| 612 | </tr> |
| 613 | |
| 614 | <tr bgcolor="#FFFFCC"> |
| 615 | <td> -version</td> |
| 616 | <td>boolean</td> |
| 617 | <td>Report version number and exit</td> |
| 618 | <td>Boolean value Yes/No</td> |
| 619 | <td>N</td> |
| 620 | </tr> |
| 621 | |
| 622 | </table> |
| 623 | |
| 624 | <H2> |
| 625 | Input file format |
| 626 | </H2> |
| 627 | |
| 628 | <b>compseq</b> reads a normal sequence(s) USA. |
| 629 | |
| 630 | <p> |
| 631 | An optional second input file is the output from a previous compseq |
| 632 | run used to set the expected word frequencies. |
| 633 | |
| 634 | <p> |
| 635 | The optional second input data file format is exactly the same as the output |
| 636 | file format. |
| 637 | <p> |
| 638 | It expects to read in a previous output file of this program. |
| 639 | An error is produced if the word size of the current compseq job |
| 640 | and that of the output file being read in are different. |
| 641 | |
| 642 | |
| 643 | |
| 644 | <a name="input.1"></a> |
| 645 | <h3>Input files for usage example </h3> |
| 646 | |
| 647 | 'tembl:x65923' is a sequence entry in the example nucleic acid database 'tembl' |
| 648 | <p> |
| 649 | <p><h3>Database entry: tembl:x65923</h3> |
| 650 | <table width="90%"><tr><td bgcolor="#FFCCFF"> |
| 651 | <pre> |
| 652 | ID X65923; SV 1; linear; mRNA; STD; HUM; 518 BP. |
| 653 | XX |
| 654 | AC X65923; |
| 655 | XX |
| 656 | DT 13-MAY-1992 (Rel. 31, Created) |
| 657 | DT 18-APR-2005 (Rel. 83, Last updated, Version 11) |
| 658 | XX |
| 659 | DE H.sapiens fau mRNA |
| 660 | XX |
| 661 | KW fau gene. |
| 662 | XX |
| 663 | OS Homo sapiens (human) |
| 664 | OC Eukaryota; Metazoa; Chordata; Craniata; Vertebrata; Euteleostomi; Mammalia; |
| 665 | OC Eutheria; Euarchontoglires; Primates; Haplorrhini; Catarrhini; Hominidae; |
| 666 | OC Homo. |
| 667 | XX |
| 668 | RN [1] |
| 669 | RP 1-518 |
| 670 | RA Michiels L.M.R.; |
| 671 | RT ; |
| 672 | RL Submitted (29-APR-1992) to the INSDC. |
| 673 | RL L.M.R. Michiels, University of Antwerp, Dept of Biochemistry, |
| 674 | RL Universiteisplein 1, 2610 Wilrijk, BELGIUM |
| 675 | XX |
| 676 | RN [2] |
| 677 | RP 1-518 |
| 678 | RX PUBMED; 8395683. |
| 679 | RA Michiels L., Van der Rauwelaert E., Van Hasselt F., Kas K., Merregaert J.; |
| 680 | RT "fau cDNA encodes a ubiquitin-like-S30 fusion protein and is expressed as |
| 681 | RT an antisense sequence in the Finkel-Biskis-Reilly murine sarcoma virus"; |
| 682 | RL Oncogene 8(9):2537-2546(1993). |
| 683 | XX |
| 684 | DR Ensembl-Gn; ENSG00000149806; Homo_sapiens. |
| 685 | DR Ensembl-Tr; ENST00000279259; Homo_sapiens. |
| 686 | DR Ensembl-Tr; ENST00000434372; Homo_sapiens. |
| 687 | DR Ensembl-Tr; ENST00000525297; Homo_sapiens. |
| 688 | DR Ensembl-Tr; ENST00000526555; Homo_sapiens. |
| 689 | DR Ensembl-Tr; ENST00000527548; Homo_sapiens. |
| 690 | DR Ensembl-Tr; ENST00000529259; Homo_sapiens. |
| 691 | DR Ensembl-Tr; ENST00000529639; Homo_sapiens. |
| 692 | DR Ensembl-Tr; ENST00000531743; Homo_sapiens. |
| 693 | XX |
| 694 | FH Key Location/Qualifiers |
| 695 | FH |
| 696 | FT source 1..518 |
| 697 | FT /organism="Homo sapiens" |
| 698 | FT /chromosome="11q" |
| 699 | FT /map="13" |
| 700 | FT /mol_type="mRNA" |
| 701 | FT /clone_lib="cDNA" |
| 702 | FT /clone="pUIA 631" |
| 703 | FT /tissue_type="placenta" |
| 704 | FT /db_xref="taxon:9606" |
| 705 | FT misc_feature 57..278 |
| 706 | FT /note="ubiquitin like part" |
| 707 | FT CDS 57..458 |
| 708 | FT /gene="fau" |
| 709 | FT /db_xref="GDB:135476" |
| 710 | FT /db_xref="GOA:P35544" |
| 711 | FT /db_xref="GOA:P62861" |
| 712 | FT /db_xref="H-InvDB:HIT000322806.14" |
| 713 | FT /db_xref="HGNC:3597" |
| 714 | FT /db_xref="InterPro:IPR000626" |
| 715 | FT /db_xref="InterPro:IPR006846" |
| 716 | FT /db_xref="InterPro:IPR019954" |
| 717 | FT /db_xref="InterPro:IPR019955" |
| 718 | FT /db_xref="InterPro:IPR019956" |
| 719 | FT /db_xref="PDB:2L7R" |
| 720 | FT /db_xref="UniProtKB/Swiss-Prot:P35544" |
| 721 | FT /db_xref="UniProtKB/Swiss-Prot:P62861" |
| 722 | FT /protein_id="CAA46716.1" |
| 723 | FT /translation="MQLFVRAQELHTFEVTGQETVAQIKAHVASLEGIAPEDQVVLLAG |
| 724 | FT APLEDEATLGQCGVEALTTLEVAGRMLGGKVHGSLARAGKVRGQTPKVAKQEKKKKKTG |
| 725 | FT RAKRRMQYNRRFVNVVPTFGKKKGPNANS" |
| 726 | FT misc_feature 98..102 |
| 727 | FT /note="nucleolar localization signal" |
| 728 | FT misc_feature 279..458 |
| 729 | FT /note="S30 part" |
| 730 | FT polyA_signal 484..489 |
| 731 | FT polyA_site 509 |
| 732 | XX |
| 733 | SQ Sequence 518 BP; 125 A; 139 C; 148 G; 106 T; 0 other; |
| 734 | ttcctctttc tcgactccat cttcgcggta gctgggaccg ccgttcagtc gccaatatgc 60 |
| 735 | agctctttgt ccgcgcccag gagctacaca ccttcgaggt gaccggccag gaaacggtcg 120 |
| 736 | cccagatcaa ggctcatgta gcctcactgg agggcattgc cccggaagat caagtcgtgc 180 |
| 737 | tcctggcagg cgcgcccctg gaggatgagg ccactctggg ccagtgcggg gtggaggccc 240 |
| 738 | tgactaccct ggaagtagca ggccgcatgc ttggaggtaa agttcatggt tccctggccc 300 |
| 739 | gtgctggaaa agtgagaggt cagactccta aggtggccaa acaggagaag aagaagaaga 360 |
| 740 | agacaggtcg ggctaagcgg cggatgcagt acaaccggcg ctttgtcaac gttgtgccca 420 |
| 741 | cctttggcaa gaagaagggc cccaatgcca actcttaagt cttttgtaat tctggctttc 480 |
| 742 | tctaataaaa aagccactta gttcagtcaa aaaaaaaa 518 |
| 743 | // |
| 744 | </pre> |
| 745 | </td></tr></table><p> |
| 746 | |
| 747 | <a name="input.3"></a> |
| 748 | <h3>Input files for usage example 3</h3> |
| 749 | <p><h3>File: prev.comp</h3> |
| 750 | <table width="90%"><tr><td bgcolor="#FFCCFF"> |
| 751 | <pre> |
| 752 | # |
| 753 | # Output from 'compseq' |
| 754 | # |
| 755 | # The Expected frequencies are calculated on the (false) assumption that every |
| 756 | # word has equal frequency. |
| 757 | # |
| 758 | # The input sequences are: |
| 759 | # HSFAU |
| 760 | |
| 761 | |
| 762 | Word size 3 |
| 763 | Total count 516 |
| 764 | |
| 765 | # |
| 766 | # Word Obs Count Obs Frequency Exp Frequency Obs/Exp Frequency |
| 767 | # |
| 768 | AAA 17 0.0329457 0.0156250 2.1085271 |
| 769 | AAC 5 0.0096899 0.0156250 0.6201550 |
| 770 | AAG 18 0.0348837 0.0156250 2.2325581 |
| 771 | AAT 4 0.0077519 0.0156250 0.4961240 |
| 772 | ACA 5 0.0096899 0.0156250 0.6201550 |
| 773 | ACC 6 0.0116279 0.0156250 0.7441860 |
| 774 | ACG 2 0.0038760 0.0156250 0.2480620 |
| 775 | ACT 7 0.0135659 0.0156250 0.8682171 |
| 776 | AGA 12 0.0232558 0.0156250 1.4883721 |
| 777 | AGC 7 0.0135659 0.0156250 0.8682171 |
| 778 | AGG 16 0.0310078 0.0156250 1.9844961 |
| 779 | AGT 10 0.0193798 0.0156250 1.2403101 |
| 780 | ATA 2 0.0038760 0.0156250 0.2480620 |
| 781 | ATC 3 0.0058140 0.0156250 0.3720930 |
| 782 | ATG 7 0.0135659 0.0156250 0.8682171 |
| 783 | ATT 2 0.0038760 0.0156250 0.2480620 |
| 784 | CAA 10 0.0193798 0.0156250 1.2403101 |
| 785 | CAC 6 0.0116279 0.0156250 0.7441860 |
| 786 | CAG 13 0.0251938 0.0156250 1.6124031 |
| 787 | CAT 5 0.0096899 0.0156250 0.6201550 |
| 788 | CCA 12 0.0232558 0.0156250 1.4883721 |
| 789 | CCC 13 0.0251938 0.0156250 1.6124031 |
| 790 | CCG 8 0.0155039 0.0156250 0.9922481 |
| 791 | CCT 10 0.0193798 0.0156250 1.2403101 |
| 792 | CGA 2 0.0038760 0.0156250 0.2480620 |
| 793 | CGC 10 0.0193798 0.0156250 1.2403101 |
| 794 | CGG 9 0.0174419 0.0156250 1.1162791 |
| 795 | CGT 4 0.0077519 0.0156250 0.4961240 |
| 796 | CTA 5 0.0096899 0.0156250 0.6201550 |
| 797 | CTC 11 0.0213178 0.0156250 1.3643411 |
| 798 | CTG 10 0.0193798 0.0156250 1.2403101 |
| 799 | CTT 11 0.0213178 0.0156250 1.3643411 |
| 800 | GAA 11 0.0213178 0.0156250 1.3643411 |
| 801 | GAC 6 0.0116279 0.0156250 0.7441860 |
| 802 | GAG 10 0.0193798 0.0156250 1.2403101 |
| 803 | GAT 4 0.0077519 0.0156250 0.4961240 |
| 804 | GCA 7 0.0135659 0.0156250 0.8682171 |
| 805 | GCC 18 0.0348837 0.0156250 2.2325581 |
| 806 | GCG 8 0.0155039 0.0156250 0.9922481 |
| 807 | GCT 10 0.0193798 0.0156250 1.2403101 |
| 808 | GGA 13 0.0251938 0.0156250 1.6124031 |
| 809 | GGC 17 0.0329457 0.0156250 2.1085271 |
| 810 | GGG 7 0.0135659 0.0156250 0.8682171 |
| 811 | GGT 9 0.0174419 0.0156250 1.1162791 |
| 812 | GTA 6 0.0116279 0.0156250 0.7441860 |
| 813 | GTC 9 0.0174419 0.0156250 1.1162791 |
| 814 | GTG 8 0.0155039 0.0156250 0.9922481 |
| 815 | GTT 5 0.0096899 0.0156250 0.6201550 |
| 816 | TAA 7 0.0135659 0.0156250 0.8682171 |
| 817 | TAC 3 0.0058140 0.0156250 0.3720930 |
| 818 | TAG 4 0.0077519 0.0156250 0.4961240 |
| 819 | TAT 1 0.0019380 0.0156250 0.1240310 |
| 820 | TCA 10 0.0193798 0.0156250 1.2403101 |
| 821 | TCC 6 0.0116279 0.0156250 0.7441860 |
| 822 | TCG 7 0.0135659 0.0156250 0.8682171 |
| 823 | TCT 10 0.0193798 0.0156250 1.2403101 |
| 824 | TGA 4 0.0077519 0.0156250 0.4961240 |
| 825 | TGC 9 0.0174419 0.0156250 1.1162791 |
| 826 | TGG 14 0.0271318 0.0156250 1.7364341 |
| 827 | TGT 5 0.0096899 0.0156250 0.6201550 |
| 828 | TTA 2 0.0038760 0.0156250 0.2480620 |
| 829 | TTC 10 0.0193798 0.0156250 1.2403101 |
| 830 | TTG 7 0.0135659 0.0156250 0.8682171 |
| 831 | TTT 7 0.0135659 0.0156250 0.8682171 |
| 832 | |
| 833 | Other 0 0.0000000 0.0000000 10000000000.0000000 |
| 834 | </pre> |
| 835 | </td></tr></table><p> |
| 836 | |
| 837 | |
| 838 | <H2> |
| 839 | Output file format |
| 840 | </H2> |
| 841 | |
| 842 | The output format consists of: |
| 843 | <p> |
| 844 | Header information and comments are preceeded by a '#' character |
| 845 | at the start of the line. |
| 846 | <p> |
| 847 | The Word size and the Total count are then given on separate lines, |
| 848 | <p> |
| 849 | The headers of the columns of results are preceeded by a '#' |
| 850 | <p> |
| 851 | The results columns are: the sub-sequence word, the observed |
| 852 | frequency, the expected frequency (which will be read from the input |
| 853 | file if one is given, else it is a simple inverse of the number of words |
| 854 | of the size specified that can be constructed), the ratio of the |
| 855 | observed to expected frequency. |
| 856 | <p> |
| 857 | After a blank line at the end, the results of 'Other' words is |
| 858 | given - this is the number of words with a sequence which has |
| 859 | IUPAC ambiguity codes or other unusual characters in. |
| 860 | |
| 861 | <p> |
| 862 | |
| 863 | <a name="output.1"></a> |
| 864 | <h3>Output files for usage example </h3> |
| 865 | <p><h3>File: result3.comp</h3> |
| 866 | <table width="90%"><tr><td bgcolor="#CCFFCC"> |
| 867 | <pre> |
| 868 | # |
| 869 | # Output from 'compseq' |
| 870 | # |
| 871 | # The Expected frequencies are calculated on the (false) assumption that every |
| 872 | # word has equal frequency. |
| 873 | # |
| 874 | # The input sequences are: |
| 875 | # X65923 |
| 876 | |
| 877 | |
| 878 | Word size 2 |
| 879 | Total count 517 |
| 880 | |
| 881 | # |
| 882 | # Word Obs Count Obs Frequency Exp Frequency Obs/Exp Frequency |
| 883 | # |
| 884 | AA 45 0.0870406 0.0625000 1.3926499 |
| 885 | AC 20 0.0386847 0.0625000 0.6189555 |
| 886 | AG 45 0.0870406 0.0625000 1.3926499 |
| 887 | AT 14 0.0270793 0.0625000 0.4332689 |
| 888 | CA 34 0.0657640 0.0625000 1.0522244 |
| 889 | CC 43 0.0831721 0.0625000 1.3307544 |
| 890 | CG 25 0.0483559 0.0625000 0.7736944 |
| 891 | CT 37 0.0715667 0.0625000 1.1450677 |
| 892 | GA 31 0.0599613 0.0625000 0.9593810 |
| 893 | GC 43 0.0831721 0.0625000 1.3307544 |
| 894 | GG 46 0.0889749 0.0625000 1.4235977 |
| 895 | GT 28 0.0541586 0.0625000 0.8665377 |
| 896 | TA 15 0.0290135 0.0625000 0.4642166 |
| 897 | TC 33 0.0638298 0.0625000 1.0212766 |
| 898 | TG 32 0.0618956 0.0625000 0.9903288 |
| 899 | TT 26 0.0502901 0.0625000 0.8046422 |
| 900 | |
| 901 | Other 0 0.0000000 0.0000000 10000000000.0000000 |
| 902 | </pre> |
| 903 | </td></tr></table><p> |
| 904 | |
| 905 | <a name="output.2"></a> |
| 906 | <h3>Output files for usage example 2</h3> |
| 907 | <p><h3>File: result6.comp</h3> |
| 908 | <table width="90%"><tr><td bgcolor="#CCFFCC"> |
| 909 | <pre> |
| 910 | # |
| 911 | # Output from 'compseq' |
| 912 | # |
| 913 | # Words with a frequency of zero are not reported. |
| 914 | # The Expected frequencies are calculated on the (false) assumption that every |
| 915 | # word has equal frequency. |
| 916 | # |
| 917 | # The input sequences are: |
| 918 | # X65923 |
| 919 | |
| 920 | |
| 921 | Word size 6 |
| 922 | Total count 513 |
| 923 | |
| 924 | # |
| 925 | # Word Obs Count Obs Frequency Exp Frequency Obs/Exp Frequency |
| 926 | # |
| 927 | AAAAAA 6 0.0116959 0.0002441 47.9064327 |
| 928 | AAAAAG 1 0.0019493 0.0002441 7.9844055 |
| 929 | AAAAGC 1 0.0019493 0.0002441 7.9844055 |
| 930 | AAAAGT 1 0.0019493 0.0002441 7.9844055 |
| 931 | AAACAG 1 0.0019493 0.0002441 7.9844055 |
| 932 | AAACGG 1 0.0019493 0.0002441 7.9844055 |
| 933 | AAAGCC 1 0.0019493 0.0002441 7.9844055 |
| 934 | AAAGTG 1 0.0019493 0.0002441 7.9844055 |
| 935 | AAAGTT 1 0.0019493 0.0002441 7.9844055 |
| 936 | AACAGG 1 0.0019493 0.0002441 7.9844055 |
| 937 | AACCGG 1 0.0019493 0.0002441 7.9844055 |
| 938 | AACGGT 1 0.0019493 0.0002441 7.9844055 |
| 939 | AACGTT 1 0.0019493 0.0002441 7.9844055 |
| 940 | AACTCT 1 0.0019493 0.0002441 7.9844055 |
| 941 | AAGAAG 6 0.0116959 0.0002441 47.9064327 |
| 942 | AAGACA 1 0.0019493 0.0002441 7.9844055 |
| 943 | AAGATC 1 0.0019493 0.0002441 7.9844055 |
| 944 | AAGCCA 1 0.0019493 0.0002441 7.9844055 |
| 945 | AAGCGG 1 0.0019493 0.0002441 7.9844055 |
| 946 | AAGGCT 1 0.0019493 0.0002441 7.9844055 |
| 947 | AAGGGC 1 0.0019493 0.0002441 7.9844055 |
| 948 | AAGGTG 1 0.0019493 0.0002441 7.9844055 |
| 949 | AAGTAG 1 0.0019493 0.0002441 7.9844055 |
| 950 | AAGTCG 1 0.0019493 0.0002441 7.9844055 |
| 951 | AAGTCT 1 0.0019493 0.0002441 7.9844055 |
| 952 | AAGTGA 1 0.0019493 0.0002441 7.9844055 |
| 953 | AAGTTC 1 0.0019493 0.0002441 7.9844055 |
| 954 | AATAAA 1 0.0019493 0.0002441 7.9844055 |
| 955 | AATATG 1 0.0019493 0.0002441 7.9844055 |
| 956 | AATGCC 1 0.0019493 0.0002441 7.9844055 |
| 957 | AATTCT 1 0.0019493 0.0002441 7.9844055 |
| 958 | ACAACC 1 0.0019493 0.0002441 7.9844055 |
| 959 | ACACAC 1 0.0019493 0.0002441 7.9844055 |
| 960 | |
| 961 | |
| 962 | <font color=red> [Part of this file has been deleted for brevity]</font> |
| 963 | |
| 964 | TGAGGC 1 0.0019493 0.0002441 7.9844055 |
| 965 | TGCAGC 1 0.0019493 0.0002441 7.9844055 |
| 966 | TGCAGT 1 0.0019493 0.0002441 7.9844055 |
| 967 | TGCCAA 1 0.0019493 0.0002441 7.9844055 |
| 968 | TGCCCA 1 0.0019493 0.0002441 7.9844055 |
| 969 | TGCCCC 1 0.0019493 0.0002441 7.9844055 |
| 970 | TGCGGG 1 0.0019493 0.0002441 7.9844055 |
| 971 | TGCTCC 1 0.0019493 0.0002441 7.9844055 |
| 972 | TGCTGG 1 0.0019493 0.0002441 7.9844055 |
| 973 | TGCTTG 1 0.0019493 0.0002441 7.9844055 |
| 974 | TGGAAA 1 0.0019493 0.0002441 7.9844055 |
| 975 | TGGAAG 1 0.0019493 0.0002441 7.9844055 |
| 976 | TGGAGG 4 0.0077973 0.0002441 31.9376218 |
| 977 | TGGCAA 1 0.0019493 0.0002441 7.9844055 |
| 978 | TGGCAG 1 0.0019493 0.0002441 7.9844055 |
| 979 | TGGCCA 1 0.0019493 0.0002441 7.9844055 |
| 980 | TGGCCC 1 0.0019493 0.0002441 7.9844055 |
| 981 | TGGCTT 1 0.0019493 0.0002441 7.9844055 |
| 982 | TGGGAC 1 0.0019493 0.0002441 7.9844055 |
| 983 | TGGGCC 1 0.0019493 0.0002441 7.9844055 |
| 984 | TGGTTC 1 0.0019493 0.0002441 7.9844055 |
| 985 | TGTAAT 1 0.0019493 0.0002441 7.9844055 |
| 986 | TGTAGC 1 0.0019493 0.0002441 7.9844055 |
| 987 | TGTCAA 1 0.0019493 0.0002441 7.9844055 |
| 988 | TGTCCG 1 0.0019493 0.0002441 7.9844055 |
| 989 | TGTGCC 1 0.0019493 0.0002441 7.9844055 |
| 990 | TTAAGT 1 0.0019493 0.0002441 7.9844055 |
| 991 | TTAGTT 1 0.0019493 0.0002441 7.9844055 |
| 992 | TTCAGT 2 0.0038986 0.0002441 15.9688109 |
| 993 | TTCATG 1 0.0019493 0.0002441 7.9844055 |
| 994 | TTCCCT 1 0.0019493 0.0002441 7.9844055 |
| 995 | TTCCTC 1 0.0019493 0.0002441 7.9844055 |
| 996 | TTCGAG 1 0.0019493 0.0002441 7.9844055 |
| 997 | TTCGCG 1 0.0019493 0.0002441 7.9844055 |
| 998 | TTCTCG 1 0.0019493 0.0002441 7.9844055 |
| 999 | TTCTCT 1 0.0019493 0.0002441 7.9844055 |
| 1000 | TTCTGG 1 0.0019493 0.0002441 7.9844055 |
| 1001 | TTGCCC 1 0.0019493 0.0002441 7.9844055 |
| 1002 | TTGGAG 1 0.0019493 0.0002441 7.9844055 |
| 1003 | TTGGCA 1 0.0019493 0.0002441 7.9844055 |
| 1004 | TTGTAA 1 0.0019493 0.0002441 7.9844055 |
| 1005 | TTGTCA 1 0.0019493 0.0002441 7.9844055 |
| 1006 | TTGTCC 1 0.0019493 0.0002441 7.9844055 |
| 1007 | TTGTGC 1 0.0019493 0.0002441 7.9844055 |
| 1008 | TTTCTC 2 0.0038986 0.0002441 15.9688109 |
| 1009 | TTTGGC 1 0.0019493 0.0002441 7.9844055 |
| 1010 | TTTGTA 1 0.0019493 0.0002441 7.9844055 |
| 1011 | TTTGTC 2 0.0038986 0.0002441 15.9688109 |
| 1012 | TTTTGT 1 0.0019493 0.0002441 7.9844055 |
| 1013 | |
| 1014 | Other 0 0.0000000 0.0000000 10000000000.0000000 |
| 1015 | </pre> |
| 1016 | </td></tr></table><p> |
| 1017 | |
| 1018 | <a name="output.3"></a> |
| 1019 | <h3>Output files for usage example 3</h3> |
| 1020 | <p><h3>File: result3.comp</h3> |
| 1021 | <table width="90%"><tr><td bgcolor="#CCFFCC"> |
| 1022 | <pre> |
| 1023 | # |
| 1024 | # Output from 'compseq' |
| 1025 | # |
| 1026 | # Only words in frame 2 will be counted. |
| 1027 | # The Expected frequencies are taken from the file: ../../data/prev.comp |
| 1028 | # |
| 1029 | # The input sequences are: |
| 1030 | # X65923 |
| 1031 | |
| 1032 | |
| 1033 | Word size 3 |
| 1034 | Total count 172 |
| 1035 | |
| 1036 | # |
| 1037 | # Word Obs Count Obs Frequency Exp Frequency Obs/Exp Frequency |
| 1038 | # |
| 1039 | AAA 7 0.0406977 0.0329457 1.2352955 |
| 1040 | AAC 3 0.0174419 0.0096899 1.8000042 |
| 1041 | AAG 11 0.0639535 0.0348837 1.8333344 |
| 1042 | AAT 3 0.0174419 0.0077519 2.2500110 |
| 1043 | ACA 1 0.0058140 0.0096899 0.6000014 |
| 1044 | ACC 4 0.0232558 0.0116279 2.0000012 |
| 1045 | ACG 1 0.0058140 0.0038760 1.4999880 |
| 1046 | ACT 3 0.0174419 0.0135659 1.2857135 |
| 1047 | AGA 1 0.0058140 0.0232558 0.2500002 |
| 1048 | AGC 2 0.0116279 0.0135659 0.8571423 |
| 1049 | AGG 0 0.0000000 0.0310078 0.0000000 |
| 1050 | AGT 0 0.0000000 0.0193798 0.0000000 |
| 1051 | ATA 0 0.0000000 0.0038760 0.0000000 |
| 1052 | ATC 1 0.0058140 0.0058140 0.9999920 |
| 1053 | ATG 3 0.0174419 0.0135659 1.2857135 |
| 1054 | ATT 1 0.0058140 0.0038760 1.4999880 |
| 1055 | CAA 1 0.0058140 0.0193798 0.3000007 |
| 1056 | CAC 2 0.0116279 0.0116279 1.0000006 |
| 1057 | CAG 9 0.0523256 0.0251938 2.0769229 |
| 1058 | CAT 3 0.0174419 0.0096899 1.8000042 |
| 1059 | CCA 0 0.0000000 0.0232558 0.0000000 |
| 1060 | CCC 3 0.0174419 0.0251938 0.6923076 |
| 1061 | CCG 1 0.0058140 0.0155039 0.3749994 |
| 1062 | CCT 2 0.0116279 0.0193798 0.6000014 |
| 1063 | CGA 1 0.0058140 0.0038760 1.4999880 |
| 1064 | CGC 5 0.0290698 0.0193798 1.5000035 |
| 1065 | CGG 4 0.0232558 0.0174419 1.3333303 |
| 1066 | CGT 2 0.0116279 0.0077519 1.5000074 |
| 1067 | CTA 1 0.0058140 0.0096899 0.6000014 |
| 1068 | CTC 4 0.0232558 0.0213178 1.0909106 |
| 1069 | CTG 7 0.0406977 0.0193798 2.1000049 |
| 1070 | CTT 3 0.0174419 0.0213178 0.8181829 |
| 1071 | GAA 3 0.0174419 0.0213178 0.8181829 |
| 1072 | GAC 1 0.0058140 0.0116279 0.5000003 |
| 1073 | GAG 7 0.0406977 0.0193798 2.1000049 |
| 1074 | GAT 2 0.0116279 0.0077519 1.5000074 |
| 1075 | GCA 2 0.0116279 0.0135659 0.8571423 |
| 1076 | GCC 10 0.0581395 0.0348837 1.6666677 |
| 1077 | GCG 1 0.0058140 0.0155039 0.3749994 |
| 1078 | GCT 3 0.0174419 0.0193798 0.9000021 |
| 1079 | GGA 2 0.0116279 0.0251938 0.4615384 |
| 1080 | GGC 8 0.0465116 0.0329457 1.4117663 |
| 1081 | GGG 1 0.0058140 0.0135659 0.4285712 |
| 1082 | GGT 5 0.0290698 0.0174419 1.6666629 |
| 1083 | GTA 2 0.0116279 0.0116279 1.0000006 |
| 1084 | GTC 6 0.0348837 0.0174419 1.9999955 |
| 1085 | GTG 6 0.0348837 0.0155039 2.2499965 |
| 1086 | GTT 3 0.0174419 0.0096899 1.8000042 |
| 1087 | TAA 3 0.0174419 0.0135659 1.2857135 |
| 1088 | TAC 1 0.0058140 0.0058140 0.9999920 |
| 1089 | TAG 0 0.0000000 0.0077519 0.0000000 |
| 1090 | TAT 0 0.0000000 0.0019380 0.0000000 |
| 1091 | TCA 3 0.0174419 0.0193798 0.9000021 |
| 1092 | TCC 1 0.0058140 0.0116279 0.5000003 |
| 1093 | TCG 0 0.0000000 0.0135659 0.0000000 |
| 1094 | TCT 3 0.0174419 0.0193798 0.9000021 |
| 1095 | TGA 0 0.0000000 0.0077519 0.0000000 |
| 1096 | TGC 1 0.0058140 0.0174419 0.3333326 |
| 1097 | TGG 1 0.0058140 0.0271318 0.2142856 |
| 1098 | TGT 1 0.0058140 0.0096899 0.6000014 |
| 1099 | TTA 1 0.0058140 0.0038760 1.4999880 |
| 1100 | TTC 1 0.0058140 0.0193798 0.3000007 |
| 1101 | TTG 0 0.0000000 0.0135659 0.0000000 |
| 1102 | TTT 5 0.0290698 0.0135659 2.1428558 |
| 1103 | |
| 1104 | Other 0 0.0000000 0.0000000 10000000000.0000000 |
| 1105 | </pre> |
| 1106 | </td></tr></table><p> |
| 1107 | |
| 1108 | |
| 1109 | |
| 1110 | <H2> |
| 1111 | Data files |
| 1112 | </H2> |
| 1113 | |
| 1114 | None. |
| 1115 | |
| 1116 | <H2> |
| 1117 | Notes |
| 1118 | </H2> |
| 1119 | <p> |
| 1120 | The maximum word size is limited to 4 for proteins, and 6 for |
| 1121 | nucleotide sequences.</p> |
| 1122 | |
| 1123 | <p> |
| 1124 | Large word sizes are not appropriate for the <b>compseq</b> |
| 1125 | algorithm. All possible words will be stored and reported. The |
| 1126 | algorithm is designed to generate useful information for word sizes |
| 1127 | expected to occur at least once in the input sequence.</p> |
| 1128 | |
| 1129 | <p>The results are held in an array in memory before being written to |
| 1130 | a file. For large values of wordsize (over about 7 for nucleic, 5 for |
| 1131 | protein), you may run out of memory or generate a very large output |
| 1132 | file.</p> |
| 1133 | |
| 1134 | <p>There is no way for <b>compseq</b> to guess what the true expected |
| 1135 | frequency should be for each word. It can however read in the result |
| 1136 | of a previous <b>compseq</b> analysis and use this to set the expected |
| 1137 | frequencies of the subsequences. In this case, the input sequences |
| 1138 | under investigation should be representative of those used for the |
| 1139 | previous <b>compseq</b> analysis. It is down to your biological |
| 1140 | expertise to ensure the sequences are genuinely "representative", for |
| 1141 | instance, you might select a group of sequences belonging to the same |
| 1142 | taxonomic rank such as genus or species.</p> |
| 1143 | |
| 1144 | <p>The file of expected frequencies is specified by name with |
| 1145 | the <tt>-infile</tt> qualifier. The word size in the current run must |
| 1146 | be the same as the one in this results file. Obviously, you should |
| 1147 | use a file produced from protein sequences if you are counting protein |
| 1148 | sequence word frequencies, and you must use one made from nucleotide |
| 1149 | frequencies if you are analysing a nucleotide sequence.</p> |
| 1150 | |
| 1151 | <p>As an alternative to using <tt>-infile</tt>, the expected |
| 1152 | frequencies of words may be calculated from the observed frequency of |
| 1153 | single bases or residues in the sequences. To do this, specify |
| 1154 | the <tt>-calcfreq</tt> qualifier. If you are reporting a word size of |
| 1155 | 1 (single bases or residues) then there is no point in using this |
| 1156 | option because the calculated expected frequency will be equal to the |
| 1157 | observed frequency.</p> |
| 1158 | |
| 1159 | <p>Calculating the expected frequencies like this will give an |
| 1160 | approximation of the expected frequencies that you might get by using |
| 1161 | an input file of frequencies produced by a previous run of this |
| 1162 | program. If an input file of expected word frequencies has been |
| 1163 | specified then the values from that file will be used instead of this |
| 1164 | calculation of expected frequency from the sequence, even if |
| 1165 | 'calcfreq' is set to be true.</p> |
| 1166 | |
| 1167 | <H2> |
| 1168 | References |
| 1169 | </H2> |
| 1170 | |
| 1171 | None. |
| 1172 | |
| 1173 | <H2> |
| 1174 | Warnings |
| 1175 | </H2> |
| 1176 | |
| 1177 | |
| 1178 | <H2> |
| 1179 | Diagnostic Error Messages |
| 1180 | </H2> |
| 1181 | |
| 1182 | |
| 1183 | <dl> |
| 1184 | <dt>"The word size is too large for the data structure available." |
| 1185 | </dt><dd>You chose a word size that cannot be stored by the program. |
| 1186 | |
| 1187 | <dt>"Insufficient memory - aborting." |
| 1188 | </dt><dd>You do not have enough memory - use a machine with more memory. |
| 1189 | |
| 1190 | <dt>"The word size you are counting (n) is different to the word |
| 1191 | size in the file of expected frequencies (n)." |
| 1192 | </dt><dd>You chose different word sizes in the run of compseq that produced |
| 1193 | your results file used to display the expected word frequencies |
| 1194 | to the word size used in this run of compseq. |
| 1195 | |
| 1196 | <dt>"The 'Word size' line was not found, instead found:" |
| 1197 | </dt><dd>You appear to be trying to read a corrupted compseq results file |
| 1198 | </dl> |
| 1199 | |
| 1200 | <H2> |
| 1201 | Exit status |
| 1202 | </H2> |
| 1203 | |
| 1204 | |
| 1205 | It always exits with status 0 unless one of the above error conditions |
| 1206 | is found |
| 1207 | |
| 1208 | <H2> |
| 1209 | Known bugs |
| 1210 | </H2> |
| 1211 | |
| 1212 | |
| 1213 | This program can use a large amount of memory is you were allowed to |
| 1214 | specify a large word size (7 or above). This may impact the behaviour |
| 1215 | of other programs on your machine. |
| 1216 | |
| 1217 | <p> |
| 1218 | If you run out of memory, you may see the program crash with a generic |
| 1219 | error message that will be specific to your machine's operating system, |
| 1220 | but will probably be a warning about writing to memory that the program |
| 1221 | does not own (eg "Segmentation fault" on a Solaris machine) |
| 1222 | |
| 1223 | <p> |
| 1224 | This is not a bug, it is a feature of the way this program grabs large |
| 1225 | amounts of memory. The maximum word size is restricted to avoid this problem. |
| 1226 | |
| 1227 | <h2><a name="See also">See also</a></h2> |
| 1228 | <table border cellpadding=4 bgcolor="#FFFFF0"> |
| 1229 | <tr><th>Program name</th> |
| 1230 | <th>Description</th></tr> |
| 1231 | <tr> |
| 1232 | <td><a href="backtranambig.html">backtranambig</a></td> |
| 1233 | <td>Back-translate a protein sequence to ambiguous nucleotide sequence</td> |
| 1234 | </tr> |
| 1235 | |
| 1236 | <tr> |
| 1237 | <td><a href="backtranseq.html">backtranseq</a></td> |
| 1238 | <td>Back-translate a protein sequence to a nucleotide sequence</td> |
| 1239 | </tr> |
| 1240 | |
| 1241 | <tr> |
| 1242 | <td><a href="banana.html">banana</a></td> |
| 1243 | <td>Plot bending and curvature data for B-DNA</td> |
| 1244 | </tr> |
| 1245 | |
| 1246 | <tr> |
| 1247 | <td><a href="btwisted.html">btwisted</a></td> |
| 1248 | <td>Calculate the twisting in a B-DNA sequence</td> |
| 1249 | </tr> |
| 1250 | |
| 1251 | <tr> |
| 1252 | <td><a href="chaos.html">chaos</a></td> |
| 1253 | <td>Draw a chaos game representation plot for a nucleotide sequence</td> |
| 1254 | </tr> |
| 1255 | |
| 1256 | <tr> |
| 1257 | <td><a href="dan.html">dan</a></td> |
| 1258 | <td>Calculate nucleic acid melting temperature</td> |
| 1259 | </tr> |
| 1260 | |
| 1261 | <tr> |
| 1262 | <td><a href="density.html">density</a></td> |
| 1263 | <td>Draw a nucleic acid density plot</td> |
| 1264 | </tr> |
| 1265 | |
| 1266 | <tr> |
| 1267 | <td><a href="emowse.html">emowse</a></td> |
| 1268 | <td>Search protein sequences by digest fragment molecular weight</td> |
| 1269 | </tr> |
| 1270 | |
| 1271 | <tr> |
| 1272 | <td><a href="freak.html">freak</a></td> |
| 1273 | <td>Generate residue/base frequency table or plot</td> |
| 1274 | </tr> |
| 1275 | |
| 1276 | <tr> |
| 1277 | <td><a href="isochore.html">isochore</a></td> |
| 1278 | <td>Plot isochores in DNA sequences</td> |
| 1279 | </tr> |
| 1280 | |
| 1281 | <tr> |
| 1282 | <td><a href="mwcontam.html">mwcontam</a></td> |
| 1283 | <td>Find weights common to multiple molecular weights files</td> |
| 1284 | </tr> |
| 1285 | |
| 1286 | <tr> |
| 1287 | <td><a href="mwfilter.html">mwfilter</a></td> |
| 1288 | <td>Filter noisy data from molecular weights file</td> |
| 1289 | </tr> |
| 1290 | |
| 1291 | <tr> |
| 1292 | <td><a href="oddcomp.html">oddcomp</a></td> |
| 1293 | <td>Identify proteins with specified sequence word composition</td> |
| 1294 | </tr> |
| 1295 | |
| 1296 | <tr> |
| 1297 | <td><a href="pepdigest.html">pepdigest</a></td> |
| 1298 | <td>Report on protein proteolytic enzyme or reagent cleavage sites</td> |
| 1299 | </tr> |
| 1300 | |
| 1301 | <tr> |
| 1302 | <td><a href="pepinfo.html">pepinfo</a></td> |
| 1303 | <td>Plot amino acid properties of a protein sequence in parallel</td> |
| 1304 | </tr> |
| 1305 | |
| 1306 | <tr> |
| 1307 | <td><a href="pepstats.html">pepstats</a></td> |
| 1308 | <td>Calculate statistics of protein properties</td> |
| 1309 | </tr> |
| 1310 | |
| 1311 | <tr> |
| 1312 | <td><a href="wordcount.html">wordcount</a></td> |
| 1313 | <td>Count and extract unique words in molecular sequence(s)</td> |
| 1314 | </tr> |
| 1315 | |
| 1316 | </table> |
| 1317 | |
| 1318 | <H2> |
| 1319 | Author(s) |
| 1320 | </H2> |
| 1321 | |
| 1322 | Gary Williams formerly at: |
| 1323 | <br> |
| 1324 | MRC Rosalind Franklin Centre for Genomics Research |
| 1325 | Wellcome Trust Genome Campus, Hinxton, Cambridge, CB10 1SB, UK |
| 1326 | |
| 1327 | <p> |
| 1328 | Please report all bugs to the EMBOSS bug team (emboss-bug © emboss.open-bio.org) not to the original author. |
| 1329 | |
| 1330 | |
| 1331 | <H2> |
| 1332 | History |
| 1333 | </H2> |
| 1334 | |
| 1335 | |
| 1336 | Completed 2 March 2000 |
| 1337 | |
| 1338 | <BR> |
| 1339 | |
| 1340 | 5 April 2001 (version 1.12.0) - the operation of the option '-reverse' |
| 1341 | has changed. It is now 'False' by default instead of being 'True' by |
| 1342 | default for nucleic sequences. Too many people were getting confused by |
| 1343 | the counts being done on both senses, so this is now done on only the |
| 1344 | forward sense by default. |
| 1345 | |
| 1346 | <H2> |
| 1347 | Target users |
| 1348 | </H2> |
| 1349 | This program is intended to be used by everyone and everything, from naive users to embedded scripts. |
| 1350 | |
| 1351 | <H2> |
| 1352 | Comments |
| 1353 | </H2> |
| 1354 | None |
| 1355 | |
| 1356 | |
| 1357 | </BODY> |
| 1358 | </HTML> |
| 1359 |