| 1 | <HTML> |
| 2 | |
| 3 | <HEAD> |
| 4 | <TITLE> |
| 5 | EMBOSS: ontogetroot |
| 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 | ontogetroot |
| 17 | </font></b> |
| 18 | </td></tr> |
| 19 | </table> |
| 20 | <br> |
| 21 | <p> |
| 22 | |
| 23 | |
| 24 | <H2> |
| 25 | Wiki |
| 26 | </H2> |
| 27 | |
| 28 | The master copies of EMBOSS documentation are available |
| 29 | at <a href="http://emboss.open-bio.org/wiki/Appdocs"> |
| 30 | http://emboss.open-bio.org/wiki/Appdocs</a> |
| 31 | on the EMBOSS Wiki. |
| 32 | |
| 33 | <p> |
| 34 | Please help by correcting and extending the Wiki pages. |
| 35 | |
| 36 | <H2> |
| 37 | Function |
| 38 | </H2> |
| 39 | Get ontology root terms by child identifier |
| 40 | <H2> |
| 41 | Description |
| 42 | </H2> |
| 43 | |
| 44 | <p><b>ontogetroot</b> displays on-screen for a named ontology the root term statement(s). The information may be written to an output file in various formats.</p> |
| 45 | |
| 46 | <p>Ontologies from the EMBOSS data directory are used.</p> |
| 47 | |
| 48 | <H2> |
| 49 | Usage |
| 50 | </H2> |
| 51 | Here is a sample session with <b>ontogetroot</b> |
| 52 | <p> |
| 53 | |
| 54 | <p> |
| 55 | <table width="90%"><tr><td bgcolor="#CCFFFF"><pre> |
| 56 | |
| 57 | % <b>ontogetroot edam:1234 </b> |
| 58 | Get ontology root terms by child identifier |
| 59 | Obo output file [1234.obo]: <b></b> |
| 60 | |
| 61 | </pre></td></tr></table><p> |
| 62 | <p> |
| 63 | <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> |
| 64 | |
| 65 | <H2> |
| 66 | Command line arguments |
| 67 | </H2> |
| 68 | <table CELLSPACING=0 CELLPADDING=3 BGCOLOR="#f5f5ff" ><tr><td> |
| 69 | <pre> |
| 70 | Get ontology root terms by child identifier |
| 71 | Version: EMBOSS:6.6.0.0 |
| 72 | |
| 73 | Standard (Mandatory) qualifiers: |
| 74 | [-oboterms] obo Obo term filename and optional format, or |
| 75 | reference (input query) |
| 76 | [-outfile] outobo [*.ontogetroot] Output ontology term file |
| 77 | name |
| 78 | |
| 79 | Additional (Optional) qualifiers: |
| 80 | -obsolete boolean [N] The default behaviour is to not use or |
| 81 | return obsolete terms. This option if set |
| 82 | will include all terms. |
| 83 | |
| 84 | Advanced (Unprompted) qualifiers: (none) |
| 85 | Associated qualifiers: |
| 86 | |
| 87 | "-oboterms" associated qualifiers |
| 88 | -iformat1 string Input obo format |
| 89 | -iquery1 string Input query fields or ID list |
| 90 | -ioffset1 integer Input start position offset |
| 91 | -idbname1 string User-provided database name |
| 92 | |
| 93 | "-outfile" associated qualifiers |
| 94 | -odirectory2 string Output directory |
| 95 | -oformat2 string Ontology term output format |
| 96 | |
| 97 | General qualifiers: |
| 98 | -auto boolean Turn off prompts |
| 99 | -stdout boolean Write first file to standard output |
| 100 | -filter boolean Read first file from standard input, write |
| 101 | first file to standard output |
| 102 | -options boolean Prompt for standard and additional values |
| 103 | -debug boolean Write debug output to program.dbg |
| 104 | -verbose boolean Report some/full command line options |
| 105 | -help boolean Report command line options and exit. More |
| 106 | information on associated and general |
| 107 | qualifiers can be found with -help -verbose |
| 108 | -warning boolean Report warnings |
| 109 | -error boolean Report errors |
| 110 | -fatal boolean Report fatal errors |
| 111 | -die boolean Report dying program messages |
| 112 | -version boolean Report version number and exit |
| 113 | |
| 114 | </pre> |
| 115 | </td></tr></table> |
| 116 | <P> |
| 117 | <table border cellspacing=0 cellpadding=3 bgcolor="#ccccff"> |
| 118 | <tr bgcolor="#FFFFCC"> |
| 119 | <th align="left">Qualifier</th> |
| 120 | <th align="left">Type</th> |
| 121 | <th align="left">Description</th> |
| 122 | <th align="left">Allowed values</th> |
| 123 | <th align="left">Default</th> |
| 124 | </tr> |
| 125 | |
| 126 | <tr bgcolor="#FFFFCC"> |
| 127 | <th align="left" colspan=5>Standard (Mandatory) qualifiers</th> |
| 128 | </tr> |
| 129 | |
| 130 | <tr bgcolor="#FFFFCC"> |
| 131 | <td>[-oboterms]<br>(Parameter 1)</td> |
| 132 | <td>obo</td> |
| 133 | <td>Obo term filename and optional format, or reference (input query)</td> |
| 134 | <td>OBO bio-ontology term(s)</td> |
| 135 | <td> </td> |
| 136 | </tr> |
| 137 | |
| 138 | <tr bgcolor="#FFFFCC"> |
| 139 | <td>[-outfile]<br>(Parameter 2)</td> |
| 140 | <td>outobo</td> |
| 141 | <td>Output ontology term file name</td> |
| 142 | <td>OBO ontology term(s)</td> |
| 143 | <td><i><*></i>.ontogetroot</td> |
| 144 | </tr> |
| 145 | |
| 146 | <tr bgcolor="#FFFFCC"> |
| 147 | <th align="left" colspan=5>Additional (Optional) qualifiers</th> |
| 148 | </tr> |
| 149 | |
| 150 | <tr bgcolor="#FFFFCC"> |
| 151 | <td>-obsolete</td> |
| 152 | <td>boolean</td> |
| 153 | <td>The default behaviour is to not use or return obsolete terms. This option if set will include all terms.</td> |
| 154 | <td>Boolean value Yes/No</td> |
| 155 | <td>No</td> |
| 156 | </tr> |
| 157 | |
| 158 | <tr bgcolor="#FFFFCC"> |
| 159 | <th align="left" colspan=5>Advanced (Unprompted) qualifiers</th> |
| 160 | </tr> |
| 161 | |
| 162 | <tr> |
| 163 | <td colspan=5>(none)</td> |
| 164 | </tr> |
| 165 | |
| 166 | <tr bgcolor="#FFFFCC"> |
| 167 | <th align="left" colspan=5>Associated qualifiers</th> |
| 168 | </tr> |
| 169 | |
| 170 | <tr bgcolor="#FFFFCC"> |
| 171 | <td align="left" colspan=5>"-oboterms" associated obo qualifiers |
| 172 | </td> |
| 173 | </tr> |
| 174 | |
| 175 | <tr bgcolor="#FFFFCC"> |
| 176 | <td> -iformat1<br>-iformat_oboterms</td> |
| 177 | <td>string</td> |
| 178 | <td>Input obo format</td> |
| 179 | <td>Any string</td> |
| 180 | <td> </td> |
| 181 | </tr> |
| 182 | |
| 183 | <tr bgcolor="#FFFFCC"> |
| 184 | <td> -iquery1<br>-iquery_oboterms</td> |
| 185 | <td>string</td> |
| 186 | <td>Input query fields or ID list</td> |
| 187 | <td>Any string</td> |
| 188 | <td> </td> |
| 189 | </tr> |
| 190 | |
| 191 | <tr bgcolor="#FFFFCC"> |
| 192 | <td> -ioffset1<br>-ioffset_oboterms</td> |
| 193 | <td>integer</td> |
| 194 | <td>Input start position offset</td> |
| 195 | <td>Any integer value</td> |
| 196 | <td>0</td> |
| 197 | </tr> |
| 198 | |
| 199 | <tr bgcolor="#FFFFCC"> |
| 200 | <td> -idbname1<br>-idbname_oboterms</td> |
| 201 | <td>string</td> |
| 202 | <td>User-provided database name</td> |
| 203 | <td>Any string</td> |
| 204 | <td> </td> |
| 205 | </tr> |
| 206 | |
| 207 | <tr bgcolor="#FFFFCC"> |
| 208 | <td align="left" colspan=5>"-outfile" associated outobo qualifiers |
| 209 | </td> |
| 210 | </tr> |
| 211 | |
| 212 | <tr bgcolor="#FFFFCC"> |
| 213 | <td> -odirectory2<br>-odirectory_outfile</td> |
| 214 | <td>string</td> |
| 215 | <td>Output directory</td> |
| 216 | <td>Any string</td> |
| 217 | <td> </td> |
| 218 | </tr> |
| 219 | |
| 220 | <tr bgcolor="#FFFFCC"> |
| 221 | <td> -oformat2<br>-oformat_outfile</td> |
| 222 | <td>string</td> |
| 223 | <td>Ontology term output format</td> |
| 224 | <td>Any string</td> |
| 225 | <td> </td> |
| 226 | </tr> |
| 227 | |
| 228 | <tr bgcolor="#FFFFCC"> |
| 229 | <th align="left" colspan=5>General qualifiers</th> |
| 230 | </tr> |
| 231 | |
| 232 | <tr bgcolor="#FFFFCC"> |
| 233 | <td> -auto</td> |
| 234 | <td>boolean</td> |
| 235 | <td>Turn off prompts</td> |
| 236 | <td>Boolean value Yes/No</td> |
| 237 | <td>N</td> |
| 238 | </tr> |
| 239 | |
| 240 | <tr bgcolor="#FFFFCC"> |
| 241 | <td> -stdout</td> |
| 242 | <td>boolean</td> |
| 243 | <td>Write first file to standard output</td> |
| 244 | <td>Boolean value Yes/No</td> |
| 245 | <td>N</td> |
| 246 | </tr> |
| 247 | |
| 248 | <tr bgcolor="#FFFFCC"> |
| 249 | <td> -filter</td> |
| 250 | <td>boolean</td> |
| 251 | <td>Read first file from standard input, write first file to standard output</td> |
| 252 | <td>Boolean value Yes/No</td> |
| 253 | <td>N</td> |
| 254 | </tr> |
| 255 | |
| 256 | <tr bgcolor="#FFFFCC"> |
| 257 | <td> -options</td> |
| 258 | <td>boolean</td> |
| 259 | <td>Prompt for standard and additional values</td> |
| 260 | <td>Boolean value Yes/No</td> |
| 261 | <td>N</td> |
| 262 | </tr> |
| 263 | |
| 264 | <tr bgcolor="#FFFFCC"> |
| 265 | <td> -debug</td> |
| 266 | <td>boolean</td> |
| 267 | <td>Write debug output to program.dbg</td> |
| 268 | <td>Boolean value Yes/No</td> |
| 269 | <td>N</td> |
| 270 | </tr> |
| 271 | |
| 272 | <tr bgcolor="#FFFFCC"> |
| 273 | <td> -verbose</td> |
| 274 | <td>boolean</td> |
| 275 | <td>Report some/full command line options</td> |
| 276 | <td>Boolean value Yes/No</td> |
| 277 | <td>Y</td> |
| 278 | </tr> |
| 279 | |
| 280 | <tr bgcolor="#FFFFCC"> |
| 281 | <td> -help</td> |
| 282 | <td>boolean</td> |
| 283 | <td>Report command line options and exit. More information on associated and general qualifiers can be found with -help -verbose</td> |
| 284 | <td>Boolean value Yes/No</td> |
| 285 | <td>N</td> |
| 286 | </tr> |
| 287 | |
| 288 | <tr bgcolor="#FFFFCC"> |
| 289 | <td> -warning</td> |
| 290 | <td>boolean</td> |
| 291 | <td>Report warnings</td> |
| 292 | <td>Boolean value Yes/No</td> |
| 293 | <td>Y</td> |
| 294 | </tr> |
| 295 | |
| 296 | <tr bgcolor="#FFFFCC"> |
| 297 | <td> -error</td> |
| 298 | <td>boolean</td> |
| 299 | <td>Report errors</td> |
| 300 | <td>Boolean value Yes/No</td> |
| 301 | <td>Y</td> |
| 302 | </tr> |
| 303 | |
| 304 | <tr bgcolor="#FFFFCC"> |
| 305 | <td> -fatal</td> |
| 306 | <td>boolean</td> |
| 307 | <td>Report fatal errors</td> |
| 308 | <td>Boolean value Yes/No</td> |
| 309 | <td>Y</td> |
| 310 | </tr> |
| 311 | |
| 312 | <tr bgcolor="#FFFFCC"> |
| 313 | <td> -die</td> |
| 314 | <td>boolean</td> |
| 315 | <td>Report dying program messages</td> |
| 316 | <td>Boolean value Yes/No</td> |
| 317 | <td>Y</td> |
| 318 | </tr> |
| 319 | |
| 320 | <tr bgcolor="#FFFFCC"> |
| 321 | <td> -version</td> |
| 322 | <td>boolean</td> |
| 323 | <td>Report version number and exit</td> |
| 324 | <td>Boolean value Yes/No</td> |
| 325 | <td>N</td> |
| 326 | </tr> |
| 327 | |
| 328 | </table> |
| 329 | |
| 330 | <H2> |
| 331 | Input file format |
| 332 | </H2> |
| 333 | |
| 334 | <p> |
| 335 | |
| 336 | <a name="input.1"></a> |
| 337 | <h3>Input files for usage example </h3> |
| 338 | <p><h3>Database entry: edam:1234</h3> |
| 339 | <table width="90%"><tr><td bgcolor="#FFCCFF"> |
| 340 | <pre> |
| 341 | [Term] |
| 342 | id: EDAM_data:1234 |
| 343 | name: Sequence set (nucleic acid) |
| 344 | namespace: data |
| 345 | def: Any collection of multiple nucleotide sequences and associated metadata that do not (typically) correspond to common sequence database records or database entries. |
| 346 | subset: bioinformatics |
| 347 | subset: data |
| 348 | subset: edam |
| 349 | created_in: "beta12orEarlier" |
| 350 | is_a: EDAM_data:0850 ! Sequence set |
| 351 | is_a: EDAM_data:2977 ! Nucleic acid sequence |
| 352 | |
| 353 | </pre> |
| 354 | </td></tr></table><p> |
| 355 | |
| 356 | |
| 357 | <H2> |
| 358 | Output file format |
| 359 | </H2> |
| 360 | <p>The default behaviour is to report the entire OBO term statement from the ontology. Optionally, then only the the term id, name and namespace, or just the term id will be reported.</p> |
| 361 | |
| 362 | <p>The output file by default is in OBO plain text format as used by the ontologies in the EMBOSS data directory and explained at http://www.geneontology.org/GO.format.obo-1_2.shtml.</p> |
| 363 | |
| 364 | <p>Optionally, the output can be in HTML, OBO-XML or JSON format.</p> |
| 365 | |
| 366 | |
| 367 | <p> |
| 368 | |
| 369 | <a name="output.1"></a> |
| 370 | <h3>Output files for usage example </h3> |
| 371 | <p><h3>File: 1234.obo</h3> |
| 372 | <table width="90%"><tr><td bgcolor="#CCFFCC"> |
| 373 | <pre> |
| 374 | [Term] |
| 375 | id: EDAM_data:0006 |
| 376 | name: Data |
| 377 | namespace: data |
| 378 | def: Information, represented in an information artefact (data record) that is 'understandable' by dedicated computational tools that can use the data as input or produce it as output. |
| 379 | subset: bioinformatics |
| 380 | subset: data |
| 381 | subset: edam |
| 382 | synonym: "Continuant" BROAD [] |
| 383 | synonym: "Data record" EXACT [] |
| 384 | synonym: "Data set" NARROW [] |
| 385 | synonym: "WSIO_data:002" EXACT [] |
| 386 | synonym: "Datum" NARROW [] |
| 387 | synonym: "DigitalEntity" RELATED [] |
| 388 | synonym: "IAO:0000027" RELATED [] |
| 389 | synonym: "IAO:0000030" RELATED [] |
| 390 | synonym: "Perpetuant" RELATED [] |
| 391 | synonym: "SIO:000069" RELATED [] |
| 392 | synonym: "SIO:000088" RELATED [] |
| 393 | created_in: "beta12orEarlier" |
| 394 | disjoint_from: EDAM_format:1915 ! Format |
| 395 | disjoint_from: EDAM_operation:0004 ! Operation |
| 396 | disjoint_from: EDAM_topic:0003 ! Topic |
| 397 | |
| 398 | </pre> |
| 399 | </td></tr></table><p> |
| 400 | |
| 401 | <H2> |
| 402 | Data files |
| 403 | </H2> |
| 404 | <p>OBO-format ontologies must be installed in the EMBOSS data directory and indexed. This is done automatically for typical installations.</p> |
| 405 | |
| 406 | <H2> |
| 407 | Notes |
| 408 | </H2> |
| 409 | |
| 410 | |
| 411 | |
| 412 | <H2> |
| 413 | References |
| 414 | </H2> |
| 415 | |
| 416 | |
| 417 | |
| 418 | <H2> |
| 419 | Warnings |
| 420 | </H2> |
| 421 | |
| 422 | None. |
| 423 | |
| 424 | <H2> |
| 425 | Diagnostic Error Messages |
| 426 | </H2> |
| 427 | |
| 428 | None. |
| 429 | |
| 430 | |
| 431 | <H2> |
| 432 | Exit status |
| 433 | </H2> |
| 434 | |
| 435 | It exits with a status of 0. |
| 436 | |
| 437 | <H2> |
| 438 | Known bugs |
| 439 | </H2> |
| 440 | |
| 441 | None. |
| 442 | |
| 443 | <h2><a name="See also">See also</a></h2> |
| 444 | <table border cellpadding=4 bgcolor="#FFFFF0"> |
| 445 | <tr><th>Program name</th> |
| 446 | <th>Description</th></tr> |
| 447 | <tr> |
| 448 | <td><a href="edamdef.html">edamdef</a></td> |
| 449 | <td>Find EDAM ontology terms by definition</td> |
| 450 | </tr> |
| 451 | |
| 452 | <tr> |
| 453 | <td><a href="edamhasinput.html">edamhasinput</a></td> |
| 454 | <td>Find EDAM ontology terms by has_input relation</td> |
| 455 | </tr> |
| 456 | |
| 457 | <tr> |
| 458 | <td><a href="edamhasoutput.html">edamhasoutput</a></td> |
| 459 | <td>Find EDAM ontology terms by has_output relation</td> |
| 460 | </tr> |
| 461 | |
| 462 | <tr> |
| 463 | <td><a href="edamisformat.html">edamisformat</a></td> |
| 464 | <td>Find EDAM ontology terms by is_format_of relation</td> |
| 465 | </tr> |
| 466 | |
| 467 | <tr> |
| 468 | <td><a href="edamisid.html">edamisid</a></td> |
| 469 | <td>Find EDAM ontology terms by is_identifier_of relation</td> |
| 470 | </tr> |
| 471 | |
| 472 | <tr> |
| 473 | <td><a href="edamname.html">edamname</a></td> |
| 474 | <td>Find EDAM ontology terms by name</td> |
| 475 | </tr> |
| 476 | |
| 477 | <tr> |
| 478 | <td><a href="godef.html">godef</a></td> |
| 479 | <td>Find GO ontology terms by definition</td> |
| 480 | </tr> |
| 481 | |
| 482 | <tr> |
| 483 | <td><a href="goname.html">goname</a></td> |
| 484 | <td>Find GO ontology terms by name</td> |
| 485 | </tr> |
| 486 | |
| 487 | <tr> |
| 488 | <td><a href="ontocount.html">ontocount</a></td> |
| 489 | <td>Count ontology term(s)</td> |
| 490 | </tr> |
| 491 | |
| 492 | <tr> |
| 493 | <td><a href="ontoget.html">ontoget</a></td> |
| 494 | <td>Get ontology term(s)</td> |
| 495 | </tr> |
| 496 | |
| 497 | <tr> |
| 498 | <td><a href="ontogetcommon.html">ontogetcommon</a></td> |
| 499 | <td>Get common ancestor for terms</td> |
| 500 | </tr> |
| 501 | |
| 502 | <tr> |
| 503 | <td><a href="ontogetdown.html">ontogetdown</a></td> |
| 504 | <td>Get ontology term(s) by parent id</td> |
| 505 | </tr> |
| 506 | |
| 507 | <tr> |
| 508 | <td><a href="ontogetobsolete.html">ontogetobsolete</a></td> |
| 509 | <td>Get ontology ontology terms</td> |
| 510 | </tr> |
| 511 | |
| 512 | <tr> |
| 513 | <td><a href="ontogetsibs.html">ontogetsibs</a></td> |
| 514 | <td>Get ontology term(s) by id with common parent</td> |
| 515 | </tr> |
| 516 | |
| 517 | <tr> |
| 518 | <td><a href="ontogetup.html">ontogetup</a></td> |
| 519 | <td>Get ontology term(s) by id of child</td> |
| 520 | </tr> |
| 521 | |
| 522 | <tr> |
| 523 | <td><a href="ontoisobsolete.html">ontoisobsolete</a></td> |
| 524 | <td>Report whether an ontology term id is obsolete</td> |
| 525 | </tr> |
| 526 | |
| 527 | <tr> |
| 528 | <td><a href="ontotext.html">ontotext</a></td> |
| 529 | <td>Get ontology term(s) original full text</td> |
| 530 | </tr> |
| 531 | |
| 532 | </table> |
| 533 | |
| 534 | <H2> |
| 535 | Author(s) |
| 536 | </H2> |
| 537 | |
| 538 | Jon Ison |
| 539 | <br> |
| 540 | European Bioinformatics Institute, Wellcome Trust Genome Campus, Hinxton, Cambridge CB10 1SD, UK |
| 541 | |
| 542 | <p> |
| 543 | Please report all bugs to the EMBOSS bug team (emboss-bug © emboss.open-bio.org) not to the original author. |
| 544 | |
| 545 | |
| 546 | |
| 547 | <p> |
| 548 | |
| 549 | This application was modified by |
| 550 | Jon Ison |
| 551 | <br> |
| 552 | European Bioinformatics Institute, Wellcome Trust Genome Campus, Hinxton, Cambridge CB10 1SD, UK |
| 553 | |
| 554 | <p> |
| 555 | Please report all bugs to the EMBOSS bug team (emboss-bug © emboss.open-bio.org) not to the original author. |
| 556 | |
| 557 | <H2> |
| 558 | History |
| 559 | </H2> |
| 560 | |
| 561 | |
| 562 | |
| 563 | <H2> |
| 564 | Target users |
| 565 | </H2> |
| 566 | This program is intended to be used by everyone and everything, from naive users to embedded scripts. |
| 567 | |
| 568 | <H2> |
| 569 | Comments |
| 570 | </H2> |
| 571 | None |
| 572 | |
| 573 | </BODY> |
| 574 | </HTML> |
| 575 |