Add annotations to the DAG object

add_annotation(dag, annotation)

Arguments

dag

An ontology_DAG object.

annotation

A list of character vectors which contain items annotated to the terms. Names of the list should be the term names. In the DAG, items annotated to a term will also be annotated to its parents. Such merging is applied automatically in the package.

Value

An ontology_DAG object.