get_ancestors_chars {ontoFAST} | R 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")
[Package ontoFAST version 1.0.0 Index]