roots and terms, construct a set of terms containing those in terms which do not descend from any term in roots, and also any terms in roots which are ancestors of any term in terms.
prune_descendants(ontology, roots, terms)ontology_index object.exclude_descendants, intersection_with_descendants