Add annotations to the DAG object
add_annotation(dag, annotation)
An ontology_DAG
object.
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.
An ontology_DAG
object.