get_depth: Get position in tree for a specific term

Description Usage Arguments Value Author(s)

Description

Looks up where in the ontology tree (at which depth) a term is.

Usage

1
get_depth(ontology, id, root = "DOID:4")

Arguments

ontology

A list (of class ontology) in which to look

id

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

root

Identifier of the root.

Value

Outputs a numeric value, corresponding to the depth, where 1 is the root.

Author(s)

Daniel Lindholm


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