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

fix: ensure loss of aa motif detected when it's the only motif #1446

Merged
merged 1 commit into from
May 9, 2024

Conversation

ivan-aksamentov
Copy link
Member

Currently Nextclade fails to detect a lost motif if the motif is the only one in its category. This is due to incorrect iteration of the category keys (names) of motifs.

Here I implemented an iterator to correctly visit both the reference and query motif maps: it will visit the category even if it is entirely missing in one or the other map. Previously, the category missing from one map would not be considered, which caused silent failure to detect the disappearance of a motif.

This was initially reported for the flu h5 datasets - the loss of polybasic_cleavage_site motif would not be detected.

I tested by comparing the outputs of smoke tests from master branch and from this branch. The polybasic_cleavage_site motif loss is now detected in h5 datasets and there are no other changes.

Currently Nextclade fails to detect a lost motif if the motif is the only one in its category. This is due to incorrect iteration of the category keys (names) of motifs.

Here I implemented an iterator to correctly visit both the reference and query motif maps: it will visit the category even if it is entirely missing in one or the other map. Previously, the category missing from one map would not be considered, which caused silent failure to detect the disappearance of a motif.

This was initially reported for the flu h5 datasets - the loss of `polybasic_cleavage_site` motif would not be detected.

I tested by comparing the outputs of smoke tests from master branch and from this branch. The `polybasic_cleavage_site` motif loss is now detected in h5 datasets and there are no other changes.
Copy link

vercel bot commented May 8, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
nextclade ✅ Ready (Inspect) Visit Preview May 8, 2024 5:12pm

@rneher
Copy link
Member

rneher commented May 9, 2024

thanks. looks good to me.

@ivan-aksamentov ivan-aksamentov merged commit 2e631d8 into master May 9, 2024
20 checks passed
@ivan-aksamentov ivan-aksamentov deleted the fix/aa-motifs branch May 9, 2024 14:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants