Debian Codegraph @

doc/programs/html/ontogetcommon.html

raw symbols SCIP
1 <HTML>
2 <HEAD>
3 <TITLE>
4 EMBOSS: ontogetcommon
5 </TITLE>
6 </HEAD>
7 <BODY BGCOLOR="#FFFFFF" text="#000000">
8
9 <table align=center border=0 cellspacing=0 cellpadding=0>
10 <tr><td valign=top>
11 <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>
12 </td>
13 <td align=left valign=middle>
14 <b><font size="+6">
15 ontogetcommon
16 </font></b>
17 </td></tr>
18 </table>
19 <br>&nbsp;
20 <p>
21
22
23 <H2>
24 Wiki
25 </H2>
26
27 The master copies of EMBOSS documentation are available
28 at <a href="http://emboss.open-bio.org/wiki/Appdocs">
29 http://emboss.open-bio.org/wiki/Appdocs</a>
30 on the EMBOSS Wiki.
31
32 <p>
33 Please help by correcting and extending the Wiki pages.
34
35 <H2>
36 Function
37 </H2>
38 Get common ancestor for terms
39 <!--
40 DON'T WRITE ANYTHING HERE.
41 IT IS DONE FOR YOU.
42 -->
43
44
45
46
47 <H2>
48 Description
49 </H2>
50
51 <b>ontogetcommon</b> reads two or more terms from an ontology and
52 traces their closest common ancestor.
53
54 <H2>
55 Algorithm
56 </H2>
57
58 <b>ontogetcommon</b> traces up through the hierarchy of terms for the
59 first term it reads. Successive terms are similarly traced, saving any
60 ancestral terms that are already in the saved list.
61
62 <p>
63 The search fails if any term has no common ancestor with all previous terms.
64
65 <p>
66 The match reported is the first match found when tracing back.
67
68 <p>
69 There is no test for common ancestors in multiple paths.
70
71
72
73 <H2>
74 Usage
75 </H2>
76
77 <!--
78 Example usage, as run from the command-line.
79 Many examples illustrating different behaviours is good.
80 -->
81
82 Here is a sample session with <b>ontogetcommon</b>
83 <p>
84
85 <p>
86 <table width="90%"><tr><td bgcolor="#CCFFFF"><pre>
87
88 % <b>ontogetcommon "edam:{0097,0640}" </b>
89 Get common ancestor for terms
90 Obo output file [ontogetcommon.obo]: <b></b>
91
92 </pre></td></tr></table><p>
93 <p>
94 <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>
95
96
97
98 <H2>
99 Command line arguments
100 </H2>
101
102 <table CELLSPACING=0 CELLPADDING=3 BGCOLOR="#f5f5ff" ><tr><td>
103 <pre>
104 Get common ancestor for terms
105 Version: EMBOSS:6.6.0.0
106
107 Standard (Mandatory) qualifiers:
108 [-oboterms] obo Obo term filename and optional format, or
109 reference (input query)
110 [-outfile] outobo [*.ontogetcommon] Output ontology term file
111 name
112
113 Additional (Optional) qualifiers:
114 -obsolete boolean [N] The default behaviour is to not use or
115 return obsolete terms. This option if set
116 will include all terms.
117
118 Advanced (Unprompted) qualifiers: (none)
119 Associated qualifiers:
120
121 "-oboterms" associated qualifiers
122 -iformat1 string Input obo format
123 -iquery1 string Input query fields or ID list
124 -ioffset1 integer Input start position offset
125 -idbname1 string User-provided database name
126
127 "-outfile" associated qualifiers
128 -odirectory2 string Output directory
129 -oformat2 string Ontology term output format
130
131 General qualifiers:
132 -auto boolean Turn off prompts
133 -stdout boolean Write first file to standard output
134 -filter boolean Read first file from standard input, write
135 first file to standard output
136 -options boolean Prompt for standard and additional values
137 -debug boolean Write debug output to program.dbg
138 -verbose boolean Report some/full command line options
139 -help boolean Report command line options and exit. More
140 information on associated and general
141 qualifiers can be found with -help -verbose
142 -warning boolean Report warnings
143 -error boolean Report errors
144 -fatal boolean Report fatal errors
145 -die boolean Report dying program messages
146 -version boolean Report version number and exit
147
148 </pre>
149 </td></tr></table>
150 <P>
151 <table border cellspacing=0 cellpadding=3 bgcolor="#ccccff">
152 <tr bgcolor="#FFFFCC">
153 <th align="left">Qualifier</th>
154 <th align="left">Type</th>
155 <th align="left">Description</th>
156 <th align="left">Allowed values</th>
157 <th align="left">Default</th>
158 </tr>
159
160 <tr bgcolor="#FFFFCC">
161 <th align="left" colspan=5>Standard (Mandatory) qualifiers</th>
162 </tr>
163
164 <tr bgcolor="#FFFFCC">
165 <td>[-oboterms]<br>(Parameter 1)</td>
166 <td>obo</td>
167 <td>Obo term filename and optional format, or reference (input query)</td>
168 <td>OBO bio-ontology term(s)</td>
169 <td>&nbsp;</td>
170 </tr>
171
172 <tr bgcolor="#FFFFCC">
173 <td>[-outfile]<br>(Parameter 2)</td>
174 <td>outobo</td>
175 <td>Output ontology term file name</td>
176 <td>OBO ontology term(s)</td>
177 <td><i>&lt;*&gt;</i>.ontogetcommon</td>
178 </tr>
179
180 <tr bgcolor="#FFFFCC">
181 <th align="left" colspan=5>Additional (Optional) qualifiers</th>
182 </tr>
183
184 <tr bgcolor="#FFFFCC">
185 <td>-obsolete</td>
186 <td>boolean</td>
187 <td>The default behaviour is to not use or return obsolete terms. This option if set will include all terms.</td>
188 <td>Boolean value Yes/No</td>
189 <td>No</td>
190 </tr>
191
192 <tr bgcolor="#FFFFCC">
193 <th align="left" colspan=5>Advanced (Unprompted) qualifiers</th>
194 </tr>
195
196 <tr>
197 <td colspan=5>(none)</td>
198 </tr>
199
200 <tr bgcolor="#FFFFCC">
201 <th align="left" colspan=5>Associated qualifiers</th>
202 </tr>
203
204 <tr bgcolor="#FFFFCC">
205 <td align="left" colspan=5>"-oboterms" associated obo qualifiers
206 </td>
207 </tr>
208
209 <tr bgcolor="#FFFFCC">
210 <td> -iformat1<br>-iformat_oboterms</td>
211 <td>string</td>
212 <td>Input obo format</td>
213 <td>Any string</td>
214 <td>&nbsp;</td>
215 </tr>
216
217 <tr bgcolor="#FFFFCC">
218 <td> -iquery1<br>-iquery_oboterms</td>
219 <td>string</td>
220 <td>Input query fields or ID list</td>
221 <td>Any string</td>
222 <td>&nbsp;</td>
223 </tr>
224
225 <tr bgcolor="#FFFFCC">
226 <td> -ioffset1<br>-ioffset_oboterms</td>
227 <td>integer</td>
228 <td>Input start position offset</td>
229 <td>Any integer value</td>
230 <td>0</td>
231 </tr>
232
233 <tr bgcolor="#FFFFCC">
234 <td> -idbname1<br>-idbname_oboterms</td>
235 <td>string</td>
236 <td>User-provided database name</td>
237 <td>Any string</td>
238 <td>&nbsp;</td>
239 </tr>
240
241 <tr bgcolor="#FFFFCC">
242 <td align="left" colspan=5>"-outfile" associated outobo qualifiers
243 </td>
244 </tr>
245
246 <tr bgcolor="#FFFFCC">
247 <td> -odirectory2<br>-odirectory_outfile</td>
248 <td>string</td>
249 <td>Output directory</td>
250 <td>Any string</td>
251 <td>&nbsp;</td>
252 </tr>
253
254 <tr bgcolor="#FFFFCC">
255 <td> -oformat2<br>-oformat_outfile</td>
256 <td>string</td>
257 <td>Ontology term output format</td>
258 <td>Any string</td>
259 <td>&nbsp;</td>
260 </tr>
261
262 <tr bgcolor="#FFFFCC">
263 <th align="left" colspan=5>General qualifiers</th>
264 </tr>
265
266 <tr bgcolor="#FFFFCC">
267 <td> -auto</td>
268 <td>boolean</td>
269 <td>Turn off prompts</td>
270 <td>Boolean value Yes/No</td>
271 <td>N</td>
272 </tr>
273
274 <tr bgcolor="#FFFFCC">
275 <td> -stdout</td>
276 <td>boolean</td>
277 <td>Write first file to standard output</td>
278 <td>Boolean value Yes/No</td>
279 <td>N</td>
280 </tr>
281
282 <tr bgcolor="#FFFFCC">
283 <td> -filter</td>
284 <td>boolean</td>
285 <td>Read first file from standard input, write first file to standard output</td>
286 <td>Boolean value Yes/No</td>
287 <td>N</td>
288 </tr>
289
290 <tr bgcolor="#FFFFCC">
291 <td> -options</td>
292 <td>boolean</td>
293 <td>Prompt for standard and additional values</td>
294 <td>Boolean value Yes/No</td>
295 <td>N</td>
296 </tr>
297
298 <tr bgcolor="#FFFFCC">
299 <td> -debug</td>
300 <td>boolean</td>
301 <td>Write debug output to program.dbg</td>
302 <td>Boolean value Yes/No</td>
303 <td>N</td>
304 </tr>
305
306 <tr bgcolor="#FFFFCC">
307 <td> -verbose</td>
308 <td>boolean</td>
309 <td>Report some/full command line options</td>
310 <td>Boolean value Yes/No</td>
311 <td>Y</td>
312 </tr>
313
314 <tr bgcolor="#FFFFCC">
315 <td> -help</td>
316 <td>boolean</td>
317 <td>Report command line options and exit. More information on associated and general qualifiers can be found with -help -verbose</td>
318 <td>Boolean value Yes/No</td>
319 <td>N</td>
320 </tr>
321
322 <tr bgcolor="#FFFFCC">
323 <td> -warning</td>
324 <td>boolean</td>
325 <td>Report warnings</td>
326 <td>Boolean value Yes/No</td>
327 <td>Y</td>
328 </tr>
329
330 <tr bgcolor="#FFFFCC">
331 <td> -error</td>
332 <td>boolean</td>
333 <td>Report errors</td>
334 <td>Boolean value Yes/No</td>
335 <td>Y</td>
336 </tr>
337
338 <tr bgcolor="#FFFFCC">
339 <td> -fatal</td>
340 <td>boolean</td>
341 <td>Report fatal errors</td>
342 <td>Boolean value Yes/No</td>
343 <td>Y</td>
344 </tr>
345
346 <tr bgcolor="#FFFFCC">
347 <td> -die</td>
348 <td>boolean</td>
349 <td>Report dying program messages</td>
350 <td>Boolean value Yes/No</td>
351 <td>Y</td>
352 </tr>
353
354 <tr bgcolor="#FFFFCC">
355 <td> -version</td>
356 <td>boolean</td>
357 <td>Report version number and exit</td>
358 <td>Boolean value Yes/No</td>
359 <td>N</td>
360 </tr>
361
362 </table>
363
364 <!--
365 DON'T WRITE ANYTHING HERE.
366 IT IS DONE FOR YOU.
367 -->
368
369
370
371
372
373
374
375
376 <H2>
377 Input file format
378 </H2>
379
380 <!--
381 This includes example input file formats.
382 This should be a detailed description and example - assume
383 someone will want to parse this file and will want to know what
384 happens in unusual cases - null input, etc.
385 -->
386
387 <b>ontogetcommon</b> reads terms from an ontology database.
388
389
390 <p>
391
392
393 <a name="input.1"></a>
394 <h3>Input files for usage example </h3>
395 <p><h3>Database entry: "edam:{0097,0640}"</h3>
396 <table width="90%"><tr><td bgcolor="#FFCCFF">
397 <pre>
398 [Term]
399 id: EDAM_topic:0640
400 name: Nucleic acid sequence analysis
401 namespace: topic
402 def: Processing and analysis of nucleotide sequences and sequence-based entities such as alignments, motifs and profiles.
403 subset: bioinformatics
404 subset: edam
405 subset: topics
406 xref: BioCatalogue:Nucleotide Sequence Analysis
407 created_in: "beta12orEarlier"
408 is_a: EDAM_topic:0077 ! Nucleic acid analysis
409 is_a: EDAM_topic:0080 ! Sequence analysis
410
411 [Term]
412 id: EDAM_topic:0097
413 name: Nucleic acid structure analysis
414 namespace: topic
415 def: The processing and analysis of nucleic acid (secondary or tertiary) structural data.
416 subset: bioinformatics
417 subset: edam
418 subset: topics
419 created_in: "beta12orEarlier"
420 is_a: EDAM_topic:0077 ! Nucleic acid analysis
421 is_a: EDAM_topic:0081 ! Structure analysis
422
423 </pre>
424 </td></tr></table><p>
425
426
427
428
429
430 <H2>
431 Output file format
432 </H2>
433
434 <p>
435
436 The output is a standard EMBOSS ontology term file.
437
438 <p>
439
440 The results can be output in one of several styles by using the
441 command-line qualifier <tt>-oformat xxx</tt>, where 'xxx' is replaced by
442 the name of the required format. The available format names are: obo,
443 brief, list, html, xml, json, excel.
444 <p>
445
446 See:
447 <A href="http://emboss.sf.net/docs/themes/OntologyFormats.html">
448 http://emboss.sf.net/docs/themes/OntologyFormats.html</A>
449 for further information on ontology formats.
450
451 <p>
452
453 <p>
454
455
456 <a name="output.1"></a>
457 <h3>Output files for usage example </h3>
458 <p><h3>File: ontogetcommon.obo</h3>
459 <table width="90%"><tr><td bgcolor="#CCFFCC">
460 <pre>
461 [Term]
462 id: EDAM_topic:0077
463 name: Nucleic acid analysis
464 namespace: topic
465 def: Processing and analysis of nucleic acid data, typically (but not exclusively) nucleic acid sequence analysis.
466 subset: bioinformatics
467 subset: edam
468 subset: topics
469 synonym: "http://purl.bioontology.org/ontology/MSH/D017422" NARROW []
470 synonym: "http://purl.bioontology.org/ontology/MSH/D017423" NARROW []
471 synonym: "Nucleic acid bioinformatics" EXACT []
472 synonym: "Nucleic acid informatics" EXACT []
473 synonym: "Nucleic acids" EXACT []
474 created_in: "beta12orEarlier"
475 is_a: EDAM_topic:0003 ! Topic
476
477 </pre>
478 </td></tr></table><p>
479
480
481
482
483
484 <H2>
485 Data files
486 </H2>
487
488 None.
489
490
491
492 <H2>
493 Notes
494 </H2>
495
496 <!--
497 Restrictions.
498 Interesting behaviour.
499 Useful things you can do with this program.
500 -->
501
502 None.
503
504
505
506
507
508
509
510 <H2>
511 References
512 </H2>
513
514 <!--
515 Bibliography for methods used.
516 <ol>
517
518 <li>
519
520 </ol>
521
522 -->
523
524 None.
525
526
527
528
529
530
531
532
533 <H2>
534 Warnings
535 </H2>
536
537 <!--
538 Potentially stupid things the program will let you do.
539 -->
540
541 None.
542
543
544
545
546
547
548
549 <H2>
550 Diagnostic Error Messages
551 </H2>
552
553 <!--
554 Error messages specific to this program, eg:
555 "FATAL xxx" - means you have not set up the xxx data using program <b>prog</b>.<p>
556 -->
557
558 None.
559
560
561
562
563
564
565
566 <H2>
567 Exit status
568 </H2>
569
570 <!--
571 Description of the exit status for various error conditions
572 -->
573
574 It always exits with status 0.
575
576
577
578
579
580
581
582
583 <H2>
584 Known bugs
585 </H2>
586
587
588 <!--
589 Bugs noted but not yet fixed.
590 -->
591
592 None.
593
594
595
596
597
598
599
600
601 <!--
602 <H2>
603 See also
604 </H2>
605 -->
606 <h2><a name="See also">See also</a></h2>
607 <table border cellpadding=4 bgcolor="#FFFFF0">
608 <tr><th>Program name</th>
609 <th>Description</th></tr>
610 <tr>
611 <td><a href="edamdef.html">edamdef</a></td>
612 <td>Find EDAM ontology terms by definition</td>
613 </tr>
614
615 <tr>
616 <td><a href="edamhasinput.html">edamhasinput</a></td>
617 <td>Find EDAM ontology terms by has_input relation</td>
618 </tr>
619
620 <tr>
621 <td><a href="edamhasoutput.html">edamhasoutput</a></td>
622 <td>Find EDAM ontology terms by has_output relation</td>
623 </tr>
624
625 <tr>
626 <td><a href="edamisformat.html">edamisformat</a></td>
627 <td>Find EDAM ontology terms by is_format_of relation</td>
628 </tr>
629
630 <tr>
631 <td><a href="edamisid.html">edamisid</a></td>
632 <td>Find EDAM ontology terms by is_identifier_of relation</td>
633 </tr>
634
635 <tr>
636 <td><a href="edamname.html">edamname</a></td>
637 <td>Find EDAM ontology terms by name</td>
638 </tr>
639
640 <tr>
641 <td><a href="godef.html">godef</a></td>
642 <td>Find GO ontology terms by definition</td>
643 </tr>
644
645 <tr>
646 <td><a href="goname.html">goname</a></td>
647 <td>Find GO ontology terms by name</td>
648 </tr>
649
650 <tr>
651 <td><a href="ontocount.html">ontocount</a></td>
652 <td>Count ontology term(s)</td>
653 </tr>
654
655 <tr>
656 <td><a href="ontoget.html">ontoget</a></td>
657 <td>Get ontology term(s)</td>
658 </tr>
659
660 <tr>
661 <td><a href="ontogetdown.html">ontogetdown</a></td>
662 <td>Get ontology term(s) by parent id</td>
663 </tr>
664
665 <tr>
666 <td><a href="ontogetobsolete.html">ontogetobsolete</a></td>
667 <td>Get ontology ontology terms</td>
668 </tr>
669
670 <tr>
671 <td><a href="ontogetroot.html">ontogetroot</a></td>
672 <td>Get ontology root terms by child identifier</td>
673 </tr>
674
675 <tr>
676 <td><a href="ontogetsibs.html">ontogetsibs</a></td>
677 <td>Get ontology term(s) by id with common parent</td>
678 </tr>
679
680 <tr>
681 <td><a href="ontogetup.html">ontogetup</a></td>
682 <td>Get ontology term(s) by id of child</td>
683 </tr>
684
685 <tr>
686 <td><a href="ontoisobsolete.html">ontoisobsolete</a></td>
687 <td>Report whether an ontology term id is obsolete</td>
688 </tr>
689
690 <tr>
691 <td><a href="ontotext.html">ontotext</a></td>
692 <td>Get ontology term(s) original full text</td>
693 </tr>
694
695 </table>
696 <!--
697 Add any comments about other associated programs (to prepare
698 data files?) that seealso doesn't find.
699 -->
700
701
702
703
704
705
706
707
708
709
710 <H2>
711 Author(s)
712 </H2>
713 Peter Rice
714 <br>
715 European Bioinformatics Institute, Wellcome Trust Genome Campus, Hinxton, Cambridge CB10 1SD, UK
716
717 <p>
718 Please report all bugs to the EMBOSS bug team (emboss-bug&nbsp;&copy;&nbsp;emboss.open-bio.org) not to the original author.
719
720
721 <H2>
722 History
723 </H2>
724 <!--
725 Date written and what changes have been made go in this file.
726 -->
727
728
729
730
731 <H2>
732 Target users
733 </H2>
734 <!--
735 For general users, use this text
736 -->
737 This program is intended to be used by everyone and everything, from naive users to embedded scripts.
738
739 <H2>
740 Comments
741 </H2>
742 <!--
743 User/developer/other comments go in this file.
744 -->
745 None
746
747
748 </BODY>
749 </HTML>
750