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