feat(variants): show tree branch(es) a SNP is assigned to on the deta…#18
Merged
Conversation
…il view Restores a feature lost in the Rust rewrite: the Variant Browser detail card now lists the haplogroup branch(es) the variant defines, linking each to the Y/mt tree rooted at that node. Matched by genomic site (the tree is hs1-native), not just the row's own links: a catalog-named SNP (e.g. V3739) surfaces the placement carried by its de-novo coordinate-named sibling (chrY:<pos><change>), and recurrence — the same site defining multiple branches — shows all of them. When the defining row differs from the viewed one, its name is shown as "via <name>". Low-confidence links are badged. - du_db::variant::tree_branches — GIN-indexed coordinates @> site containment. - migration 0055: partial index haplogroup_variant(variant_id) WHERE valid_until IS NULL (the existing unique key leads with haplogroup_id, so the reverse lookup had no support and seq-scanned; 46ms -> 2ms). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
…il view
Restores a feature lost in the Rust rewrite: the Variant Browser detail card now lists the haplogroup branch(es) the variant defines, linking each to the Y/mt tree rooted at that node.
Matched by genomic site (the tree is hs1-native), not just the row's own links: a catalog-named SNP (e.g. V3739) surfaces the placement carried by its de-novo coordinate-named sibling (chrY:), and recurrence — the same site defining multiple branches — shows all of them. When the defining row differs from the viewed one, its name is shown as "via ". Low-confidence links are badged.