get_parents: Get parent nodes of a specific ontology term

Description Usage Arguments Value Author(s)

Description

Will look up in the hierarchy until the root is reached.

Usage

1
get_parents(ontology, id, root = "DOID:4", include_entry = FALSE)

Arguments

ontology

A list (of class ontology) in which to look

id

The identifier of the term to look up (character string)

root

The identifier of the root entry. Defaults to "DOID:4", which is the term "disease" in the disease ontology (http://www.disease-ontology.org/).

include_entry

Should the term to look up be included in the results? Defaults to FALSE

Value

Outputs a dataframe with identifiers, descriptions, and depth.

Author(s)

Daniel Lindholm


dlindholm/oboe documentation built on May 15, 2019, 9:18 a.m.