Mutations relative to different references

未关闭
#1,237 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
25/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
技术栈
rust

调研方向

Start with packages_rs/nextclade/src/run/nextclade_run_one.rs at the linked find_private_mutations calls to understand how mutations are compared with the nearest tree node. Then trace how mutation data reaches the UI and how the sequence view displays it. The issue proposes selectable comparison nodes, including vaccine strains or a parent clade founder, with the sequence view updated to match; it does not specify which options to implement first.

由索引模型根据 Issue 内容生成。

描述

t:feat

We currently report mutations relative to the reference sequences and relative to the nearest node in the reference tree, called private mutations. The former are derived straight from the alignment, the latter are deduced by comparing the full set of differences to the set of differences the attachment node in the tree has. This happens here in the code:

https://github.com/nextstrain/nextclade/blob/12842f182ce946b89c6d18cf77120779e57e91be/packages_rs/nextclade/src/run/nextclade_run_one.rs#L152-L176

We could repeat this for different nodes in the tree, for example vaccines strains for flu. Instead of passing nearest_node to the find_private_mutations functions, we can pass any other node.

In some cases, it could also be interesting to display mutations relative to the founder of the parent clade. In this case the the node we compare to would be dependent on the clade assignment of the node.

In the UI, once could move the mutations column to the right next to the sequence view and thereby separate it from the other properties that are independent of the point of comparison.

image

A toggle could allow switching between different options (e.g. reference, VaccineStrain2023, clade_parent) and would also update the sequence view.

主要语言
Rust
星标
265
派生
68
平均合并
1 天 3 小时
30 天内合并 PR
21

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

nextstrain/nextclade 的其他 Issue

查看 nextstrain/nextclade 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。