Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: relabel aminoacids when attaching node #1540

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions packages/nextclade/src/tree/tree_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -390,11 +390,15 @@ pub fn knit_into_graph(
let target_node = graph.get_node_mut(target_key)?;
if let Some(target_labels) = &mut target_node.payload_mut().branch_attrs.labels {
target_labels.clade = None;
new_internal_node
let aa = target_labels.aa.take();

let labels = new_internal_node
.branch_attrs
.labels
.get_or_insert(TreeBranchAttrsLabels::default())
.clade = clade;
.get_or_insert(TreeBranchAttrsLabels::default());

labels.clade = clade;
labels.aa = aa;
}
}

Expand Down