Debian Codegraph @

doc/programs/html/oddcomp.html

raw symbols SCIP
1 <HTML>
2
3 <HEAD>
4 <TITLE>
5 EMBOSS: oddcomp
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 oddcomp
17 </font></b>
18 </td></tr>
19 </table>
20 <br>&nbsp;
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 Identify proteins with specified sequence word composition
40
41 <H2>
42 Description
43 </H2>
44
45 <p><b>oddcomp</b> reads one or more protein sequences, identifies proteins containing regions with a specific sequence word composition, then writes a list of sequence identifiers of those proteins to an output file. The word composition is read from an input file which gives the minimum word occurence for any number of sequence words. For an input sequence to be listed in the output file, each word must be found at least the stated number of times in any window over the input sequence. The window size may be set to any value or the length of the current protein (<tt>-fullwindow</tt> option).</p>
46
47
48 <H2>
49 Algorithm
50 </H2>
51
52 <p>The input file of sequence word composition data is in the same format as the output from <b>compseq</b>. Only one word size (of any length) can be used and is specified at the top of the file. The search for words is a boolean AND meaning all words given in the file must be found in a sequence for it to be reported. </p>
53
54 <p>Each word must occur at least the stated number of times in a window over an input sequence for the sequence to be reported. The word size given in the input data file must be less than the specified window size; you will not get any hits otherwise.</p>
55
56
57
58 <H2>
59 Usage
60 </H2>
61 Here is a sample session with <b>oddcomp</b>
62 <p>
63 To search for entries in swissprot with at least 1 SR AND at least 2 RS:
64 <p>
65
66 <p>
67 <table width="90%"><tr><td bgcolor="#CCFFFF"><pre>
68
69 % <b>oddcomp </b>
70 Identify proteins with specified sequence word composition
71 Input protein sequence(s): <b>tsw:*</b>
72 Program compseq output file: <b>oddcomp.comp</b>
73 Window size to consider (e.g. 30 aa) [30]: <b></b>
74 Output file [cru4_arath.oddcomp]: <b>out.odd</b>
75
76 </pre></td></tr></table><p>
77 <p>
78 <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>
79
80
81 <H2>
82 Command line arguments
83 </H2>
84 <table CELLSPACING=0 CELLPADDING=3 BGCOLOR="#f5f5ff" ><tr><td>
85 <pre>
86 Identify proteins with specified sequence word composition
87 Version: EMBOSS:6.6.0.0
88
89 Standard (Mandatory) qualifiers (* if not always prompted):
90 [-sequence] seqall Protein sequence(s) filename and optional
91 format, or reference (input USA)
92 [-infile] infile This is a file in the format of the output
93 produced by 'compseq' that is used to set
94 the minimum frequencies of words in this
95 analysis.
96 * -window integer [30] This is the size of window in which to
97 count.
98 Thus if you want to count frequencies in a
99 40 aa stretch you should enter 40 here.
100 (Integer 10 or more)
101 [-outfile] outfile [*.oddcomp] This is the results file.
102
103 Additional (Optional) qualifiers: (none)
104 Advanced (Unprompted) qualifiers:
105 -fullwindow toggle [N] Set this option on (Y) if you want the
106 window size to be set to the length of the
107 current protein. Otherwise, leave this
108 option unset, in which case you'll be
109 prompted for a window size to use.
110 -[no]ignorebz boolean [Y] The amino acid code B represents
111 Asparagine or Aspartic acid and the code Z
112 represents Glutamine or Glutamic acid.
113 These are not commonly used codes and you
114 may wish not to count words containing them,
115 just noting them in the count of 'Other'
116 words.
117
118 Associated qualifiers:
119
120 "-sequence" associated qualifiers
121 -sbegin1 integer Start of each sequence to be used
122 -send1 integer End of each sequence to be used
123 -sreverse1 boolean Reverse (if DNA)
124 -sask1 boolean Ask for begin/end/reverse
125 -snucleotide1 boolean Sequence is nucleotide
126 -sprotein1 boolean Sequence is protein
127 -slower1 boolean Make lower case
128 -supper1 boolean Make upper case
129 -scircular1 boolean Sequence is circular
130 -squick1 boolean Read id and sequence only
131 -sformat1 string Input sequence format
132 -iquery1 string Input query fields or ID list
133 -ioffset1 integer Input start position offset
134 -sdbname1 string Database name
135 -sid1 string Entryname
136 -ufo1 string UFO features
137 -fformat1 string Features format
138 -fopenfile1 string Features file name
139
140 "-outfile" associated qualifiers
141 -odirectory3 string Output directory
142
143 General qualifiers:
144 -auto boolean Turn off prompts
145 -stdout boolean Write first file to standard output
146 -filter boolean Read first file from standard input, write
147 first file to standard output
148 -options boolean Prompt for standard and additional values
149 -debug boolean Write debug output to program.dbg
150 -verbose boolean Report some/full command line options
151 -help boolean Report command line options and exit. More
152 information on associated and general
153 qualifiers can be found with -help -verbose
154 -warning boolean Report warnings
155 -error boolean Report errors
156 -fatal boolean Report fatal errors
157 -die boolean Report dying program messages
158 -version boolean Report version number and exit
159
160 </pre>
161 </td></tr></table>
162 <P>
163
164 <table border cellspacing=0 cellpadding=3 bgcolor="#ccccff">
165 <tr bgcolor="#FFFFCC">
166 <th align="left">Qualifier</th>
167 <th align="left">Type</th>
168 <th align="left">Description</th>
169 <th align="left">Allowed values</th>
170 <th align="left">Default</th>
171 </tr>
172
173 <tr bgcolor="#FFFFCC">
174 <th align="left" colspan=5>Standard (Mandatory) qualifiers</th>
175 </tr>
176
177 <tr bgcolor="#FFFFCC">
178 <td>[-sequence]<br>(Parameter 1)</td>
179 <td>seqall</td>
180 <td>Protein sequence(s) filename and optional format, or reference (input USA)</td>
181 <td>Readable sequence(s)</td>
182 <td><b>Required</b></td>
183 </tr>
184
185 <tr bgcolor="#FFFFCC">
186 <td>[-infile]<br>(Parameter 2)</td>
187 <td>infile</td>
188 <td>This is a file in the format of the output produced by 'compseq' that is used to set the minimum frequencies of words in this analysis.</td>
189 <td>Input file</td>
190 <td><b>Required</b></td>
191 </tr>
192
193 <tr bgcolor="#FFFFCC">
194 <td>-window</td>
195 <td>integer</td>
196 <td>This is the size of window in which to count.
197 Thus if you want to count frequencies in a 40 aa stretch you should enter 40 here.</td>
198 <td>Integer 10 or more</td>
199 <td>30</td>
200 </tr>
201
202 <tr bgcolor="#FFFFCC">
203 <td>[-outfile]<br>(Parameter 3)</td>
204 <td>outfile</td>
205 <td>This is the results file.</td>
206 <td>Output file</td>
207 <td><i>&lt;*&gt;</i>.oddcomp</td>
208 </tr>
209
210 <tr bgcolor="#FFFFCC">
211 <th align="left" colspan=5>Additional (Optional) qualifiers</th>
212 </tr>
213
214 <tr>
215 <td colspan=5>(none)</td>
216 </tr>
217
218 <tr bgcolor="#FFFFCC">
219 <th align="left" colspan=5>Advanced (Unprompted) qualifiers</th>
220 </tr>
221
222 <tr bgcolor="#FFFFCC">
223 <td>-fullwindow</td>
224 <td>toggle</td>
225 <td>Set this option on (Y) if you want the window size to be set to the length of the current protein. Otherwise, leave this option unset, in which case you'll be prompted for a window size to use.</td>
226 <td>Toggle value Yes/No</td>
227 <td>No</td>
228 </tr>
229
230 <tr bgcolor="#FFFFCC">
231 <td>-[no]ignorebz</td>
232 <td>boolean</td>
233 <td>The amino acid code B represents Asparagine or Aspartic acid and the code Z represents Glutamine or Glutamic acid.
234 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>
235 <td>Boolean value Yes/No</td>
236 <td>Yes</td>
237 </tr>
238
239 <tr bgcolor="#FFFFCC">
240 <th align="left" colspan=5>Associated qualifiers</th>
241 </tr>
242
243 <tr bgcolor="#FFFFCC">
244 <td align="left" colspan=5>"-sequence" associated seqall qualifiers
245 </td>
246 </tr>
247
248 <tr bgcolor="#FFFFCC">
249 <td> -sbegin1<br>-sbegin_sequence</td>
250 <td>integer</td>
251 <td>Start of each sequence to be used</td>
252 <td>Any integer value</td>
253 <td>0</td>
254 </tr>
255
256 <tr bgcolor="#FFFFCC">
257 <td> -send1<br>-send_sequence</td>
258 <td>integer</td>
259 <td>End of each sequence to be used</td>
260 <td>Any integer value</td>
261 <td>0</td>
262 </tr>
263
264 <tr bgcolor="#FFFFCC">
265 <td> -sreverse1<br>-sreverse_sequence</td>
266 <td>boolean</td>
267 <td>Reverse (if DNA)</td>
268 <td>Boolean value Yes/No</td>
269 <td>N</td>
270 </tr>
271
272 <tr bgcolor="#FFFFCC">
273 <td> -sask1<br>-sask_sequence</td>
274 <td>boolean</td>
275 <td>Ask for begin/end/reverse</td>
276 <td>Boolean value Yes/No</td>
277 <td>N</td>
278 </tr>
279
280 <tr bgcolor="#FFFFCC">
281 <td> -snucleotide1<br>-snucleotide_sequence</td>
282 <td>boolean</td>
283 <td>Sequence is nucleotide</td>
284 <td>Boolean value Yes/No</td>
285 <td>N</td>
286 </tr>
287
288 <tr bgcolor="#FFFFCC">
289 <td> -sprotein1<br>-sprotein_sequence</td>
290 <td>boolean</td>
291 <td>Sequence is protein</td>
292 <td>Boolean value Yes/No</td>
293 <td>N</td>
294 </tr>
295
296 <tr bgcolor="#FFFFCC">
297 <td> -slower1<br>-slower_sequence</td>
298 <td>boolean</td>
299 <td>Make lower case</td>
300 <td>Boolean value Yes/No</td>
301 <td>N</td>
302 </tr>
303
304 <tr bgcolor="#FFFFCC">
305 <td> -supper1<br>-supper_sequence</td>
306 <td>boolean</td>
307 <td>Make upper case</td>
308 <td>Boolean value Yes/No</td>
309 <td>N</td>
310 </tr>
311
312 <tr bgcolor="#FFFFCC">
313 <td> -scircular1<br>-scircular_sequence</td>
314 <td>boolean</td>
315 <td>Sequence is circular</td>
316 <td>Boolean value Yes/No</td>
317 <td>N</td>
318 </tr>
319
320 <tr bgcolor="#FFFFCC">
321 <td> -squick1<br>-squick_sequence</td>
322 <td>boolean</td>
323 <td>Read id and sequence only</td>
324 <td>Boolean value Yes/No</td>
325 <td>N</td>
326 </tr>
327
328 <tr bgcolor="#FFFFCC">
329 <td> -sformat1<br>-sformat_sequence</td>
330 <td>string</td>
331 <td>Input sequence format</td>
332 <td>Any string</td>
333 <td>&nbsp;</td>
334 </tr>
335
336 <tr bgcolor="#FFFFCC">
337 <td> -iquery1<br>-iquery_sequence</td>
338 <td>string</td>
339 <td>Input query fields or ID list</td>
340 <td>Any string</td>
341 <td>&nbsp;</td>
342 </tr>
343
344 <tr bgcolor="#FFFFCC">
345 <td> -ioffset1<br>-ioffset_sequence</td>
346 <td>integer</td>
347 <td>Input start position offset</td>
348 <td>Any integer value</td>
349 <td>0</td>
350 </tr>
351
352 <tr bgcolor="#FFFFCC">
353 <td> -sdbname1<br>-sdbname_sequence</td>
354 <td>string</td>
355 <td>Database name</td>
356 <td>Any string</td>
357 <td>&nbsp;</td>
358 </tr>
359
360 <tr bgcolor="#FFFFCC">
361 <td> -sid1<br>-sid_sequence</td>
362 <td>string</td>
363 <td>Entryname</td>
364 <td>Any string</td>
365 <td>&nbsp;</td>
366 </tr>
367
368 <tr bgcolor="#FFFFCC">
369 <td> -ufo1<br>-ufo_sequence</td>
370 <td>string</td>
371 <td>UFO features</td>
372 <td>Any string</td>
373 <td>&nbsp;</td>
374 </tr>
375
376 <tr bgcolor="#FFFFCC">
377 <td> -fformat1<br>-fformat_sequence</td>
378 <td>string</td>
379 <td>Features format</td>
380 <td>Any string</td>
381 <td>&nbsp;</td>
382 </tr>
383
384 <tr bgcolor="#FFFFCC">
385 <td> -fopenfile1<br>-fopenfile_sequence</td>
386 <td>string</td>
387 <td>Features file name</td>
388 <td>Any string</td>
389 <td>&nbsp;</td>
390 </tr>
391
392 <tr bgcolor="#FFFFCC">
393 <td align="left" colspan=5>"-outfile" associated outfile qualifiers
394 </td>
395 </tr>
396
397 <tr bgcolor="#FFFFCC">
398 <td> -odirectory3<br>-odirectory_outfile</td>
399 <td>string</td>
400 <td>Output directory</td>
401 <td>Any string</td>
402 <td>&nbsp;</td>
403 </tr>
404
405 <tr bgcolor="#FFFFCC">
406 <th align="left" colspan=5>General qualifiers</th>
407 </tr>
408
409 <tr bgcolor="#FFFFCC">
410 <td> -auto</td>
411 <td>boolean</td>
412 <td>Turn off prompts</td>
413 <td>Boolean value Yes/No</td>
414 <td>N</td>
415 </tr>
416
417 <tr bgcolor="#FFFFCC">
418 <td> -stdout</td>
419 <td>boolean</td>
420 <td>Write first file to standard output</td>
421 <td>Boolean value Yes/No</td>
422 <td>N</td>
423 </tr>
424
425 <tr bgcolor="#FFFFCC">
426 <td> -filter</td>
427 <td>boolean</td>
428 <td>Read first file from standard input, write first file to standard output</td>
429 <td>Boolean value Yes/No</td>
430 <td>N</td>
431 </tr>
432
433 <tr bgcolor="#FFFFCC">
434 <td> -options</td>
435 <td>boolean</td>
436 <td>Prompt for standard and additional values</td>
437 <td>Boolean value Yes/No</td>
438 <td>N</td>
439 </tr>
440
441 <tr bgcolor="#FFFFCC">
442 <td> -debug</td>
443 <td>boolean</td>
444 <td>Write debug output to program.dbg</td>
445 <td>Boolean value Yes/No</td>
446 <td>N</td>
447 </tr>
448
449 <tr bgcolor="#FFFFCC">
450 <td> -verbose</td>
451 <td>boolean</td>
452 <td>Report some/full command line options</td>
453 <td>Boolean value Yes/No</td>
454 <td>Y</td>
455 </tr>
456
457 <tr bgcolor="#FFFFCC">
458 <td> -help</td>
459 <td>boolean</td>
460 <td>Report command line options and exit. More information on associated and general qualifiers can be found with -help -verbose</td>
461 <td>Boolean value Yes/No</td>
462 <td>N</td>
463 </tr>
464
465 <tr bgcolor="#FFFFCC">
466 <td> -warning</td>
467 <td>boolean</td>
468 <td>Report warnings</td>
469 <td>Boolean value Yes/No</td>
470 <td>Y</td>
471 </tr>
472
473 <tr bgcolor="#FFFFCC">
474 <td> -error</td>
475 <td>boolean</td>
476 <td>Report errors</td>
477 <td>Boolean value Yes/No</td>
478 <td>Y</td>
479 </tr>
480
481 <tr bgcolor="#FFFFCC">
482 <td> -fatal</td>
483 <td>boolean</td>
484 <td>Report fatal errors</td>
485 <td>Boolean value Yes/No</td>
486 <td>Y</td>
487 </tr>
488
489 <tr bgcolor="#FFFFCC">
490 <td> -die</td>
491 <td>boolean</td>
492 <td>Report dying program messages</td>
493 <td>Boolean value Yes/No</td>
494 <td>Y</td>
495 </tr>
496
497 <tr bgcolor="#FFFFCC">
498 <td> -version</td>
499 <td>boolean</td>
500 <td>Report version number and exit</td>
501 <td>Boolean value Yes/No</td>
502 <td>N</td>
503 </tr>
504
505 </table>
506
507
508 <H2>
509 Input file format
510 </H2>
511
512
513 <a name="input.1"></a>
514 <h3>Input files for usage example </h3>
515
516 'tsw:*' is a sequence entry in the example protein database 'tsw'
517 <p>
518 <p><h3>File: oddcomp.comp</h3>
519 <table width="90%"><tr><td bgcolor="#FFCCFF">
520 <pre>
521 # Example input file for oddcomp
522 Word size 2
523 Total count 0
524
525 #
526 # Word Obs Count Obs Frequency Exp Frequency Obs/Exp Frequency
527 #
528 RS 2 0 0 0
529 SR 1 0 0 0
530
531 Other 0 0 0 0
532 </pre>
533 </td></tr></table><p>
534
535 <p>
536
537 The columns "Obs Frequency", "Exp Frequency" and "Obs/Exp Frequency" are
538 not required - they were simply included in this example to show the
539 similarity between this input file format and the output of the program
540 <A HREF="compseq.html">compseq</A>. A compseq output file can be used as the
541 input to <b>oddcomp</b> - the extra columns are ignored by
542 <b>oddcomp</b>.
543
544 <p>
545
546 A minimal composition input data file would look like this:
547
548 <hr>
549 <pre>
550 Word size 2
551 Total count 0
552 RS 2
553 SR 1
554 </pre>
555 <hr>
556
557 <p>
558
559 Blank lines and lines starting with '#' are ignored.
560
561 <p>
562
563 The first non-comment line should start with 'Word size' and will
564 specify the word size to use.
565
566 <p>
567
568 A line starting with the word 'Total' is required.
569
570 <p>
571
572 Anything after the line starting with the word 'Total' will be read as
573 word count data.
574
575 <p>
576
577 Word count data consists of a word to search for and the count of that
578 word to search for within the sliding window. The columns are separated
579 by one or more spaces or TAB characters. Anything after these two columns
580 will be ignored.
581
582 <H2>
583 Output file format
584 </H2>
585
586
587 <b>oddcomp</b> writes a list of sequence name identifiers.
588
589 <p>
590
591
592 <a name="output.1"></a>
593 <h3>Output files for usage example </h3>
594 <p><h3>File: out.odd</h3>
595 <table width="90%"><tr><td bgcolor="#CCFFCC">
596 <pre>
597 #
598 # Output from 'oddcomp'
599 #
600 # The Expected frequencies are taken from the file: ../../data/oddcomp.comp
601 #
602 # Word size: 2
603 CNR1B_TAKRU
604 CO9_TAKRU
605 FOS_TAKRU
606 RS7_TAKRU
607 UBR5_RAT
608
609 # END #
610 </pre>
611 </td></tr></table><p>
612
613
614 <H2>
615 Data files
616 </H2>
617
618 None.
619
620 <H2>
621 Notes
622 </H2>
623
624 <p><b>oddcomp</b> was originally written to identify proteins with <tt>SR</tt>/<tt>RS</tt> dimers, for example, windows of forty amino acids containing at least 3 <tt>SR</tt> and 4 <tt>RS</tt> words. More generally, it will help answer questions of the type 'which proteins contain at least x occurrences of word X and y occurences of word Y in regions of n residues'. For example, one could search for serine rich or polyglutamine rich, collagen helix, or similar proteins using this program.</p>
625
626 <p><b>oddcomp</b> does not report the location of the word matches in the sequence, merely the sequence ID. To search for a specific set of words in a sequence, you should edit the input file of sequence word composition data.</p>
627
628 <H2>
629 References
630 </H2>
631
632 None.
633
634 <H2>
635 Warnings
636 </H2>
637
638 None.
639
640 <H2>
641 Diagnostic Error Messages
642 </H2>
643
644 None.
645
646 <H2>
647 Exit status
648 </H2>
649
650 It always exits with a status of 0.
651
652 <H2>
653 Known bugs
654 </H2>
655
656 None.
657
658 <h2><a name="See also">See also</a></h2>
659 <table border cellpadding=4 bgcolor="#FFFFF0">
660 <tr><th>Program name</th>
661 <th>Description</th></tr>
662 <tr>
663 <td><a href="backtranambig.html">backtranambig</a></td>
664 <td>Back-translate a protein sequence to ambiguous nucleotide sequence</td>
665 </tr>
666
667 <tr>
668 <td><a href="backtranseq.html">backtranseq</a></td>
669 <td>Back-translate a protein sequence to a nucleotide sequence</td>
670 </tr>
671
672 <tr>
673 <td><a href="compseq.html">compseq</a></td>
674 <td>Calculate the composition of unique words in sequences</td>
675 </tr>
676
677 <tr>
678 <td><a href="emowse.html">emowse</a></td>
679 <td>Search protein sequences by digest fragment molecular weight</td>
680 </tr>
681
682 <tr>
683 <td><a href="freak.html">freak</a></td>
684 <td>Generate residue/base frequency table or plot</td>
685 </tr>
686
687 <tr>
688 <td><a href="mwcontam.html">mwcontam</a></td>
689 <td>Find weights common to multiple molecular weights files</td>
690 </tr>
691
692 <tr>
693 <td><a href="mwfilter.html">mwfilter</a></td>
694 <td>Filter noisy data from molecular weights file</td>
695 </tr>
696
697 <tr>
698 <td><a href="pepdigest.html">pepdigest</a></td>
699 <td>Report on protein proteolytic enzyme or reagent cleavage sites</td>
700 </tr>
701
702 <tr>
703 <td><a href="pepinfo.html">pepinfo</a></td>
704 <td>Plot amino acid properties of a protein sequence in parallel</td>
705 </tr>
706
707 <tr>
708 <td><a href="pepstats.html">pepstats</a></td>
709 <td>Calculate statistics of protein properties</td>
710 </tr>
711
712 <tr>
713 <td><a href="wordcount.html">wordcount</a></td>
714 <td>Count and extract unique words in molecular sequence(s)</td>
715 </tr>
716
717 </table>
718
719 <H2>
720 Author(s)
721 </H2>
722
723
724 David Martin
725
726 <p>
727 Please report all bugs to the EMBOSS bug team (emboss-bug&nbsp;&copy;&nbsp;emboss.open-bio.org) not to the original author.
728
729 <H2>
730 History
731 </H2>
732
733 Written (1999) - David Martin
734
735 <H2>
736 Target users
737 </H2>
738 This program is intended to be used by everyone and everything, from naive users to embedded scripts.
739
740
741 <H2>
742 Comments
743 </H2>
744 None
745
746 </BODY>
747 </HTML>
748