Skip to content

Commit

Permalink
include terms with no 'type'
Browse files Browse the repository at this point in the history
  • Loading branch information
valearna committed Oct 2, 2019
1 parent c4e3482 commit b87e1fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion genedescriptions/ontology_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

def set_all_depths(ontology: Ontology, relations: List[str] = None, comparison_func=max):
for root_id in ontology.get_roots():
if ontology.node_type(root_id) == "CLASS":
if "type" not in ontology.node(root_id) or ontology.node_type(root_id) == "CLASS":
set_all_depths_in_subgraph(ontology=ontology, root_id=root_id, relations=relations,
comparison_func=comparison_func)

Expand Down

0 comments on commit b87e1fa

Please sign in to comment.