Returns all characters located (associated) with a given ontology terms

get_descendants_chars(ontology, annotations = "auto", terms, ...)

Arguments

ontology

ontology_index object.

annotations

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

terms

IDs of ontology terms for which descendants are queried.

...

other parameters for ontologyIndex::get_descendants() function

Value

The vector of character IDs.

Examples

ontology<-HAO
#> Error in eval(expr, envir, enclos): object 'HAO' not found
ontology$terms_selected_id<-list(`CHAR:1`=c("HAO:0000653"), `CHAR:2`=c("HAO:0000653"))
#> Error in ontology$terms_selected_id <- list(`CHAR:1` = c("HAO:0000653"),     `CHAR:2` = c("HAO:0000653")): object 'ontology' not found
get_descendants_chars(ontology, annotations="manual", "HAO:0000653")
#> Error in get_descendants_chars(ontology, annotations = "manual", "HAO:0000653"): object 'ontology' not found