Skip to content

Commit

Permalink
fixed lca bug + fixed tests
Browse files Browse the repository at this point in the history
- Alliance bug AGR 1569 was caused by max num of terms for lca not passed correctly and always set to default value 3
  • Loading branch information
valearna committed May 7, 2019
1 parent 0cfd923 commit de65340
Show file tree
Hide file tree
Showing 4 changed files with 94 additions and 120 deletions.
2 changes: 1 addition & 1 deletion genedescriptions/ontology_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ def get_best_nodes(terms, trimming_algorithm, max_terms, ontology, terms_already
nodeids_blacklist=nodeids_blacklist)
elif trimming_algorithm == "lca":
add_others, merged_terms_coverset = get_best_nodes_lca(
node_ids=list(terms), ontology=ontology, min_distance_from_root=min_dist_from_root,
node_ids=list(terms), ontology=ontology, min_distance_from_root=min_dist_from_root, max_num_nodes=max_terms,
nodeids_blacklist=nodeids_blacklist)
if ancestors_covering_multiple_children is not None:
ancestors_covering_multiple_children.update({ontology.label(term_id, id_if_null=True) for
Expand Down
Loading

0 comments on commit de65340

Please sign in to comment.