Debian Codegraph @

doc/programs/html/profit.html

raw symbols SCIP
1 <HTML>
2
3 <HEAD>
4 <TITLE>
5 EMBOSS: profit
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 profit
17 </font></b>
18 </td></tr>
19 </table>
20 <br>&nbsp;
21 <p>
22
23
24
25 <H2>
26 Wiki
27 </H2>
28
29 The master copies of EMBOSS documentation are available
30 at <a href="http://emboss.open-bio.org/wiki/Appdocs">
31 http://emboss.open-bio.org/wiki/Appdocs</a>
32 on the EMBOSS Wiki.
33
34 <p>
35 Please help by correcting and extending the Wiki pages.
36
37 <H2>
38 Function
39 </H2>
40 Scan one or more sequences with a simple frequency matrix
41
42 <H2>
43 Description
44 </H2>
45
46 <p>profit scans one or more sequences with a simple frequency matrix and writes an output file with any high-scoring matches. All possible ungapped alignments of each sequence to the matrix are scored and any matches with a score higher than the specified threshold are written to the output file. The output file includes the name of any matching sequence found, the start position in the sequence of the match and the percentage of the maximum possible score.</p>
47
48
49 <H2>
50 Algorithm
51 </H2>
52 <p>All possible ungapped alignments of each sequence to the frequency matrix are scored. The first alignment has the first positions of the sequence and matrix in the same register. If the sequence is larger than the matrix, there will be more than one alignment. Otherwise, there will be just one.</p>
53 <p>The score for a match is simply the sum of scores at each position of the matrix for the corresponding residue from the sequence. The percentage of the maximum possible score reported in the output file is the sum of the highest value at each position in the frequency matrix. Where the match score is above the threshold percentage of the maximum possible score for that matrix, then a hit is reported.</p>
54
55
56
57 <H2>
58 Usage
59 </H2>
60
61
62 Before running the example, we need to make a simple frequency matrix
63 using <b>prophecy</b>
64
65 <p>
66
67 This is the ungapped aligned set of sequences used to make the matrix:
68
69 <p>
70
71 <pre>
72 % more m.seq
73 >one
74 DEVGGEALGRLLVVYPWTQR
75 >two
76 DEVGREALGRLLVVYPWTQR
77 >three
78 DEVGGEALGRILVVYPWTQR
79 >four
80 DEVGGEAAGRVLVVYPWTQR
81
82 <p>
83
84 % prophecy
85 Creates matrices/profiles from multiple alignments
86 Input sequence set: m.seq
87 Profile type
88 F : Frequency
89 G : Gribskov
90 H : Henikoff
91 Select type [F]:
92 Enter a name for the profile [mymatrix]:
93 Enter threshold reporting percentage [75]:
94 Output file [outfile.prophecy]:
95 </pre>
96
97 <p>
98
99 Here is a sample session with <b>profit</b>
100 <p>
101
102 <p>
103 <table width="90%"><tr><td bgcolor="#CCFFFF"><pre>
104
105 % <b>profit </b>
106 Scan one or more sequences with a simple frequency matrix
107 Profile or weight matrix file: <b>outfile.prophecy</b>
108 Input sequence(s): <b>tsw:*</b>
109 Output file [outfile.profit]: <b></b>
110
111 </pre></td></tr></table><p>
112 <p>
113 <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>
114
115
116
117 <H2>
118 Command line arguments
119 </H2>
120 <table CELLSPACING=0 CELLPADDING=3 BGCOLOR="#f5f5ff" ><tr><td>
121 <pre>
122 Scan one or more sequences with a simple frequency matrix
123 Version: EMBOSS:6.6.0.0
124
125 Standard (Mandatory) qualifiers:
126 [-infile] infile Profile or weight matrix file
127 [-sequence] seqall Sequence(s) filename and optional format, or
128 reference (input USA)
129 [-outfile] outfile [*.profit] Output file name
130
131 Additional (Optional) qualifiers: (none)
132 Advanced (Unprompted) qualifiers: (none)
133 Associated qualifiers:
134
135 "-sequence" associated qualifiers
136 -sbegin2 integer Start of each sequence to be used
137 -send2 integer End of each sequence to be used
138 -sreverse2 boolean Reverse (if DNA)
139 -sask2 boolean Ask for begin/end/reverse
140 -snucleotide2 boolean Sequence is nucleotide
141 -sprotein2 boolean Sequence is protein
142 -slower2 boolean Make lower case
143 -supper2 boolean Make upper case
144 -scircular2 boolean Sequence is circular
145 -squick2 boolean Read id and sequence only
146 -sformat2 string Input sequence format
147 -iquery2 string Input query fields or ID list
148 -ioffset2 integer Input start position offset
149 -sdbname2 string Database name
150 -sid2 string Entryname
151 -ufo2 string UFO features
152 -fformat2 string Features format
153 -fopenfile2 string Features file name
154
155 "-outfile" associated qualifiers
156 -odirectory3 string Output directory
157
158 General qualifiers:
159 -auto boolean Turn off prompts
160 -stdout boolean Write first file to standard output
161 -filter boolean Read first file from standard input, write
162 first file to standard output
163 -options boolean Prompt for standard and additional values
164 -debug boolean Write debug output to program.dbg
165 -verbose boolean Report some/full command line options
166 -help boolean Report command line options and exit. More
167 information on associated and general
168 qualifiers can be found with -help -verbose
169 -warning boolean Report warnings
170 -error boolean Report errors
171 -fatal boolean Report fatal errors
172 -die boolean Report dying program messages
173 -version boolean Report version number and exit
174
175 </pre>
176 </td></tr></table>
177 <P>
178
179 <table border cellspacing=0 cellpadding=3 bgcolor="#ccccff">
180 <tr bgcolor="#FFFFCC">
181 <th align="left">Qualifier</th>
182 <th align="left">Type</th>
183 <th align="left">Description</th>
184 <th align="left">Allowed values</th>
185 <th align="left">Default</th>
186 </tr>
187
188 <tr bgcolor="#FFFFCC">
189 <th align="left" colspan=5>Standard (Mandatory) qualifiers</th>
190 </tr>
191
192 <tr bgcolor="#FFFFCC">
193 <td>[-infile]<br>(Parameter 1)</td>
194 <td>infile</td>
195 <td>Profile or weight matrix file</td>
196 <td>Input file</td>
197 <td><b>Required</b></td>
198 </tr>
199
200 <tr bgcolor="#FFFFCC">
201 <td>[-sequence]<br>(Parameter 2)</td>
202 <td>seqall</td>
203 <td>Sequence(s) filename and optional format, or reference (input USA)</td>
204 <td>Readable sequence(s)</td>
205 <td><b>Required</b></td>
206 </tr>
207
208 <tr bgcolor="#FFFFCC">
209 <td>[-outfile]<br>(Parameter 3)</td>
210 <td>outfile</td>
211 <td>Output file name</td>
212 <td>Output file</td>
213 <td><i>&lt;*&gt;</i>.profit</td>
214 </tr>
215
216 <tr bgcolor="#FFFFCC">
217 <th align="left" colspan=5>Additional (Optional) qualifiers</th>
218 </tr>
219
220 <tr>
221 <td colspan=5>(none)</td>
222 </tr>
223
224 <tr bgcolor="#FFFFCC">
225 <th align="left" colspan=5>Advanced (Unprompted) qualifiers</th>
226 </tr>
227
228 <tr>
229 <td colspan=5>(none)</td>
230 </tr>
231
232 <tr bgcolor="#FFFFCC">
233 <th align="left" colspan=5>Associated qualifiers</th>
234 </tr>
235
236 <tr bgcolor="#FFFFCC">
237 <td align="left" colspan=5>"-sequence" associated seqall qualifiers
238 </td>
239 </tr>
240
241 <tr bgcolor="#FFFFCC">
242 <td> -sbegin2<br>-sbegin_sequence</td>
243 <td>integer</td>
244 <td>Start of each sequence to be used</td>
245 <td>Any integer value</td>
246 <td>0</td>
247 </tr>
248
249 <tr bgcolor="#FFFFCC">
250 <td> -send2<br>-send_sequence</td>
251 <td>integer</td>
252 <td>End of each sequence to be used</td>
253 <td>Any integer value</td>
254 <td>0</td>
255 </tr>
256
257 <tr bgcolor="#FFFFCC">
258 <td> -sreverse2<br>-sreverse_sequence</td>
259 <td>boolean</td>
260 <td>Reverse (if DNA)</td>
261 <td>Boolean value Yes/No</td>
262 <td>N</td>
263 </tr>
264
265 <tr bgcolor="#FFFFCC">
266 <td> -sask2<br>-sask_sequence</td>
267 <td>boolean</td>
268 <td>Ask for begin/end/reverse</td>
269 <td>Boolean value Yes/No</td>
270 <td>N</td>
271 </tr>
272
273 <tr bgcolor="#FFFFCC">
274 <td> -snucleotide2<br>-snucleotide_sequence</td>
275 <td>boolean</td>
276 <td>Sequence is nucleotide</td>
277 <td>Boolean value Yes/No</td>
278 <td>N</td>
279 </tr>
280
281 <tr bgcolor="#FFFFCC">
282 <td> -sprotein2<br>-sprotein_sequence</td>
283 <td>boolean</td>
284 <td>Sequence is protein</td>
285 <td>Boolean value Yes/No</td>
286 <td>N</td>
287 </tr>
288
289 <tr bgcolor="#FFFFCC">
290 <td> -slower2<br>-slower_sequence</td>
291 <td>boolean</td>
292 <td>Make lower case</td>
293 <td>Boolean value Yes/No</td>
294 <td>N</td>
295 </tr>
296
297 <tr bgcolor="#FFFFCC">
298 <td> -supper2<br>-supper_sequence</td>
299 <td>boolean</td>
300 <td>Make upper case</td>
301 <td>Boolean value Yes/No</td>
302 <td>N</td>
303 </tr>
304
305 <tr bgcolor="#FFFFCC">
306 <td> -scircular2<br>-scircular_sequence</td>
307 <td>boolean</td>
308 <td>Sequence is circular</td>
309 <td>Boolean value Yes/No</td>
310 <td>N</td>
311 </tr>
312
313 <tr bgcolor="#FFFFCC">
314 <td> -squick2<br>-squick_sequence</td>
315 <td>boolean</td>
316 <td>Read id and sequence only</td>
317 <td>Boolean value Yes/No</td>
318 <td>N</td>
319 </tr>
320
321 <tr bgcolor="#FFFFCC">
322 <td> -sformat2<br>-sformat_sequence</td>
323 <td>string</td>
324 <td>Input sequence format</td>
325 <td>Any string</td>
326 <td>&nbsp;</td>
327 </tr>
328
329 <tr bgcolor="#FFFFCC">
330 <td> -iquery2<br>-iquery_sequence</td>
331 <td>string</td>
332 <td>Input query fields or ID list</td>
333 <td>Any string</td>
334 <td>&nbsp;</td>
335 </tr>
336
337 <tr bgcolor="#FFFFCC">
338 <td> -ioffset2<br>-ioffset_sequence</td>
339 <td>integer</td>
340 <td>Input start position offset</td>
341 <td>Any integer value</td>
342 <td>0</td>
343 </tr>
344
345 <tr bgcolor="#FFFFCC">
346 <td> -sdbname2<br>-sdbname_sequence</td>
347 <td>string</td>
348 <td>Database name</td>
349 <td>Any string</td>
350 <td>&nbsp;</td>
351 </tr>
352
353 <tr bgcolor="#FFFFCC">
354 <td> -sid2<br>-sid_sequence</td>
355 <td>string</td>
356 <td>Entryname</td>
357 <td>Any string</td>
358 <td>&nbsp;</td>
359 </tr>
360
361 <tr bgcolor="#FFFFCC">
362 <td> -ufo2<br>-ufo_sequence</td>
363 <td>string</td>
364 <td>UFO features</td>
365 <td>Any string</td>
366 <td>&nbsp;</td>
367 </tr>
368
369 <tr bgcolor="#FFFFCC">
370 <td> -fformat2<br>-fformat_sequence</td>
371 <td>string</td>
372 <td>Features format</td>
373 <td>Any string</td>
374 <td>&nbsp;</td>
375 </tr>
376
377 <tr bgcolor="#FFFFCC">
378 <td> -fopenfile2<br>-fopenfile_sequence</td>
379 <td>string</td>
380 <td>Features file name</td>
381 <td>Any string</td>
382 <td>&nbsp;</td>
383 </tr>
384
385 <tr bgcolor="#FFFFCC">
386 <td align="left" colspan=5>"-outfile" associated outfile qualifiers
387 </td>
388 </tr>
389
390 <tr bgcolor="#FFFFCC">
391 <td> -odirectory3<br>-odirectory_outfile</td>
392 <td>string</td>
393 <td>Output directory</td>
394 <td>Any string</td>
395 <td>&nbsp;</td>
396 </tr>
397
398 <tr bgcolor="#FFFFCC">
399 <th align="left" colspan=5>General qualifiers</th>
400 </tr>
401
402 <tr bgcolor="#FFFFCC">
403 <td> -auto</td>
404 <td>boolean</td>
405 <td>Turn off prompts</td>
406 <td>Boolean value Yes/No</td>
407 <td>N</td>
408 </tr>
409
410 <tr bgcolor="#FFFFCC">
411 <td> -stdout</td>
412 <td>boolean</td>
413 <td>Write first file to standard output</td>
414 <td>Boolean value Yes/No</td>
415 <td>N</td>
416 </tr>
417
418 <tr bgcolor="#FFFFCC">
419 <td> -filter</td>
420 <td>boolean</td>
421 <td>Read first file from standard input, write first file to standard output</td>
422 <td>Boolean value Yes/No</td>
423 <td>N</td>
424 </tr>
425
426 <tr bgcolor="#FFFFCC">
427 <td> -options</td>
428 <td>boolean</td>
429 <td>Prompt for standard and additional values</td>
430 <td>Boolean value Yes/No</td>
431 <td>N</td>
432 </tr>
433
434 <tr bgcolor="#FFFFCC">
435 <td> -debug</td>
436 <td>boolean</td>
437 <td>Write debug output to program.dbg</td>
438 <td>Boolean value Yes/No</td>
439 <td>N</td>
440 </tr>
441
442 <tr bgcolor="#FFFFCC">
443 <td> -verbose</td>
444 <td>boolean</td>
445 <td>Report some/full command line options</td>
446 <td>Boolean value Yes/No</td>
447 <td>Y</td>
448 </tr>
449
450 <tr bgcolor="#FFFFCC">
451 <td> -help</td>
452 <td>boolean</td>
453 <td>Report command line options and exit. More information on associated and general qualifiers can be found with -help -verbose</td>
454 <td>Boolean value Yes/No</td>
455 <td>N</td>
456 </tr>
457
458 <tr bgcolor="#FFFFCC">
459 <td> -warning</td>
460 <td>boolean</td>
461 <td>Report warnings</td>
462 <td>Boolean value Yes/No</td>
463 <td>Y</td>
464 </tr>
465
466 <tr bgcolor="#FFFFCC">
467 <td> -error</td>
468 <td>boolean</td>
469 <td>Report errors</td>
470 <td>Boolean value Yes/No</td>
471 <td>Y</td>
472 </tr>
473
474 <tr bgcolor="#FFFFCC">
475 <td> -fatal</td>
476 <td>boolean</td>
477 <td>Report fatal errors</td>
478 <td>Boolean value Yes/No</td>
479 <td>Y</td>
480 </tr>
481
482 <tr bgcolor="#FFFFCC">
483 <td> -die</td>
484 <td>boolean</td>
485 <td>Report dying program messages</td>
486 <td>Boolean value Yes/No</td>
487 <td>Y</td>
488 </tr>
489
490 <tr bgcolor="#FFFFCC">
491 <td> -version</td>
492 <td>boolean</td>
493 <td>Report version number and exit</td>
494 <td>Boolean value Yes/No</td>
495 <td>N</td>
496 </tr>
497
498 </table>
499
500
501 <H2>
502 Input file format
503 </H2>
504
505 <b>profit</b> reads a simple frequency matrix produced by
506 <b>prophecy</b> and uses it to search searches one or more protein or
507 nucleic acid sequences.
508 <p>
509 <p>
510
511 The input is a standard EMBOSS sequence query (also known as a 'USA').
512
513 <p>
514 Major sequence database sources defined as standard in EMBOSS
515 installations include srs:embl, srs:uniprot and ensembl
516
517 <p>
518
519 Data can also be read from sequence output in any supported format
520 written by an EMBOSS or third-party application.
521
522 <p>
523 The input format can be specified by using the
524 command-line qualifier <tt>-sformat xxx</tt>, where 'xxx' is replaced
525 by the name of the required format. The available format names are:
526 gff (gff3), gff2, embl (em), genbank (gb, refseq), ddbj, refseqp, pir
527 (nbrf), swissprot (swiss, sw), dasgff and debug.
528
529 <p>
530
531 See:
532 <A href="http://emboss.sf.net/docs/themes/SequenceFormats.html">
533 http://emboss.sf.net/docs/themes/SequenceFormats.html</A>
534 for further information on sequence formats.
535
536 <p>
537
538
539 <a name="input.1"></a>
540 <h3>Input files for usage example </h3>
541
542 'tsw:*' is a sequence entry in the example protein database 'tsw'
543 <p>
544 <p><h3>File: outfile.prophecy</h3>
545 <table width="90%"><tr><td bgcolor="#FFCCFF">
546 <pre>
547 # Pure Frequency Matrix
548 # Columns are amino acid counts A-&gt;Z
549 # Rows are alignment positions 1-&gt;n
550 Simple
551 Name mymatrix
552 Length 20
553 Maximum score 76
554 Thresh 75
555 Consensus DEVGGEALGRLLVVYPWTQR
556 0 0 0 4 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
557 0 0 0 0 4 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
558 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 4 0 0 0 0 0
559 0 0 0 0 0 0 4 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
560 0 0 0 0 0 0 3 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0
561 0 0 0 0 4 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
562 4 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
563 1 0 0 0 0 0 0 0 0 0 0 3 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
564 0 0 0 0 0 0 4 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
565 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 4 0 0 0 0 0 0 0 0 0
566 0 0 0 0 0 0 0 0 1 0 0 2 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0
567 0 0 0 0 0 0 0 0 0 0 0 4 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
568 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 4 0 0 0 0 0
569 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 4 0 0 0 0 0
570 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 4 0 0
571 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 4 0 0 0 0 0 0 0 0 0 0 0
572 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 4 0 0 0 0
573 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 4 0 0 0 0 0 0 0
574 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 4 0 0 0 0 0 0 0 0 0 0
575 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 4 0 0 0 0 0 0 0 0 0
576 </pre>
577 </td></tr></table><p>
578
579 <H2>
580 Output file format
581 </H2>
582
583
584 <a name="output.1"></a>
585 <h3>Output files for usage example </h3>
586 <p><h3>File: outfile.profit</h3>
587 <table width="90%"><tr><td bgcolor="#CCFFCC">
588 <pre>
589 # PROF scan using simple frequency matrix mymatrix
590 # Scores &gt;= threshold 75 (max score 76)
591 #
592 HBB_HUMAN 22 Percentage: 100
593 HBB_PANPA 22 Percentage: 100
594 HBB_PANTR 22 Percentage: 100
595 </pre>
596 </td></tr></table><p>
597
598 <p>
599
600 The output is a list of three columns.
601
602 <p>
603
604 The first column is the name of the matching sequence found.
605 <br>
606 The second is the start position in the sequence of the match.
607 <br>
608 The third column (after the word 'Percentage:') is the percentage of the
609 maximum possible score (sum of the highest value at each
610 position in the frequency matrix).
611
612
613 <H2>
614 Data files
615 </H2>
616
617 None.
618
619 <H2>
620 Notes
621 </H2>
622
623 <p>A 'simple frequency matrix' is simply a table containing a count of the number of times any particular amino acid occurs at each position in the sequence alignment from which it was derived. Simple frequency matrices are created using the program prophecy with the option <tt>-type F</tt> to create the correct type of matrix. The input alignment should not have gaps in it.</p>
624
625 <H2>
626 References
627 </H2>
628
629 None.
630
631 <H2>
632 Warnings
633 </H2>
634
635 The aligned set of sequences used to make the simple frquency matrix
636 should not have gaps in it. <b>profit</b> will let you use a matrix
637 made from a gapped alignment, but the results will probably not be
638 sensible.
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="prophecy.html">prophecy</a></td>
664 <td>Create frequency matrix or profile from a multiple alignment</td>
665 </tr>
666
667 <tr>
668 <td><a href="prophet.html">prophet</a></td>
669 <td>Scan one or more sequences with a Gribskov or Henikoff profile</td>
670 </tr>
671
672 </table>
673
674
675 <H2>
676 Author(s)
677 </H2>
678
679
680 Alan Bleasby
681 <br>
682 European Bioinformatics Institute, Wellcome Trust Genome Campus, Hinxton, Cambridge CB10 1SD, UK
683
684 <p>
685 Please report all bugs to the EMBOSS bug team (emboss-bug&nbsp;&copy;&nbsp;emboss.open-bio.org) not to the original author.
686
687
688 <H2>
689 History
690 </H2>
691
692 Written (1999) - Alan Bleasby
693
694 <H2>
695 Target users
696 </H2>
697 This program is intended to be used by everyone and everything, from naive users to embedded scripts.
698
699 <H2>
700 Comments
701 </H2>
702 None
703
704 </BODY>
705 </HTML>
706