Functions to add extra metadata to an ontology or data.table object.
An ontology of class ontology_DAG.
A vector of ontology term IDs.
tbl_graph object.
Add the data again even if the associated column already exists.
Depth of the ancestor terms to add. Will get the closest ancestor to this level if none have this exact level.
Add ancestors for each term.
Add the number of edges (connections) for each term.
Add the ontology level for each term.
Added data.