Functions to add extra metadata to an ontology or data.table object.

Arguments

ont

An ontology of class ontology_DAG.

terms

A vector of ontology term IDs.

g

tbl_graph object.

force_new

Add the data again even if the associated column already exists.

lvl

Depth of the ancestor terms to add. Will get the closest ancestor to this level if none have this exact level.

add_ancestors

Add ancestors for each term.

add_n_edges

Add the number of edges (connections) for each term.

add_ontology_levels

Add the ontology level for each term.

Value

Added data.