Skip to content

Commit

Permalink
Merge pull request #1301 from nextstrain/feat/filter-undeletions
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-aksamentov authored Oct 31, 2023
2 parents 7cae320 + 9afcb46 commit c747ce4
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ pub fn find_private_nuc_mutations(
process_seq_deletions(node_mut_map, deletions, ref_seq, &mut seq_positions_mutated_or_deleted);

// Iterate over node substitutions and deletions and find reversions
let reversion_substitutions = find_reversions(
let reversion_substitutions_and_undeletions = find_reversions(
node_mut_map,
missing,
alignment_range,
Expand All @@ -112,6 +112,9 @@ pub fn find_private_nuc_mutations(
&mut seq_positions_mutated_or_deleted,
);

let (_undeletions, reversion_substitutions) = reversion_substitutions_and_undeletions
.into_iter()
.partition::<Vec<NucSub>, _>(|sub| sub.ref_nuc.is_gap());
let (labeled_substitutions, unlabeled_substitutions) = label_private_mutations(
&non_reversion_substitutions,
&virus_properties.mut_labels.nuc_mut_label_map,
Expand All @@ -132,6 +135,8 @@ pub fn find_private_nuc_mutations(
let total_labeled_substitutions = labeled_substitutions.len();
let total_unlabeled_substitutions = unlabeled_substitutions.len();

// TODO: Do something with the undeletions, they are not returned from this function

PrivateNucMutations {
private_substitutions,
private_deletions,
Expand Down

1 comment on commit c747ce4

@vercel
Copy link

@vercel vercel bot commented on c747ce4 Oct 31, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

nextclade – ./

nextclade-nextstrain.vercel.app
nextclade.vercel.app
nextclade-git-master-nextstrain.vercel.app

Please sign in to comment.