When querying for ontology terms, Gemma propagates these terms to include any datasets with their child terms in the results. This function returns these children for any number of terms, including all children and the terms itself in the output vector

get_child_terms(terms)

Arguments

terms

An array of terms

Value

An array containing descendends of the annotation terms, including the terms themselves

Examples

get_child_terms("http://purl.obolibrary.org/obo/MONDO_0000408")
#> [1] "http://purl.obolibrary.org/obo/MONDO_0000393"
#> [2] "http://purl.obolibrary.org/obo/MONDO_0000395"
#> [3] "http://purl.obolibrary.org/obo/MONDO_0000408"
#> [4] "http://purl.obolibrary.org/obo/MONDO_0016011"
#> [5] "http://purl.obolibrary.org/obo/MONDO_0850461"