get_ancestors_chars: Get ancestal ontology terms for a set of characters

Description Usage Arguments Value Examples

View source: R/Viz_manipul_main.R

Description

Returns all ontology terms which are ancestors of a given character set

Usage

1
get_ancestors_chars(ontology, char_id, annotations = "auto")

Arguments

ontology

ontology_index object with character annatotions included (ontology$annot_characters).

char_id

IDs of character.

annotations

which annotations to use: "auto" means automatic annotations, "manual" means manual ones. Alternatively, any othe list element containing annotations can be specified.

Value

The vector of ontology terms IDs.

Examples

1
2
3
4
data(HAO)
ontology<-HAO
ontology$terms_selected_id<-list(`CHAR:1`=c("HAO:0000653"), `CHAR:2`=c("HAO:0000653"))
get_ancestors_chars(ontology, c("CHAR:1","CHAR:2"), annotations="manual")

ontoFAST documentation built on April 29, 2021, 9:06 a.m.