get_ancestors_chars: Get ancestal ontology terms for a set of characters

View source: R/Viz_manipul_main.R

get_ancestors_charsR Documentation

Get ancestal ontology terms for a set of characters

Description

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

Usage

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

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")

sergeitarasov/ontoFAST documentation built on Aug. 5, 2022, 4:20 a.m.