Skip to content

Commit

Permalink
Fixed error
Browse files Browse the repository at this point in the history
  • Loading branch information
valearna committed Jan 3, 2024
1 parent 60285de commit 481262c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion genedescriptions/data_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ def set_ontology(self, ontology_type: DataType, ontology: Ontology, config: Gene
if terms_replacement_regex:
self.rename_ontology_terms(ontology=ontology, terms_replacement_regex=terms_replacement_regex)
root_nodes = [n for n in ontology.nodes() if len(
list(g.predecessors(n))) == 0 and len(list(ontology.successors(n))) > 0]
list(ontology.predecessors(n))) == 0 and len(list(ontology.successors(n))) > 0]
set_all_depths(ontology=ontology, root_node_ids=root_nodes, relations=self.get_relations(ontology_type))
if config.get_module_property(module=module,
prop=ConfigModuleProperty.TRIMMING_ALGORITHM) == "ic":
Expand Down

0 comments on commit 481262c

Please sign in to comment.