Skip to content

Commit

Permalink
fix: zero length branches can still have aa mutations even without nu…
Browse files Browse the repository at this point in the history
…c muts
  • Loading branch information
rneher committed Sep 8, 2023
1 parent 119cd4a commit 6eee1d4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages_rs/nextclade/src/tree/tree_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,12 @@ pub fn finetune_nearest_node(
current_best_node.payload().name
)
})?;
private_mutations = union_of_muts(&private_mutations, &best_split_result.left.invert()).wrap_err_with(|| {
format!(
"When calculating union of mutations between query sequence and the candidate child node '{}'",
graph.get_node(best_node.key()).expect("Node not found").payload().name
)
})?;
current_best_node = graph
.parent_of_by_key(best_node.key())
.ok_or_else(|| make_internal_report!("Parent node is expected, but not found"))?;
Expand Down

0 comments on commit 6eee1d4

Please sign in to comment.