feat(website): [WIP] add Reference Comparison to sequence details - #7252
Draft
theosanderson-agent wants to merge 14 commits into
Draft
feat(website): [WIP] add Reference Comparison to sequence details#7252theosanderson-agent wants to merge 14 commits into
theosanderson-agent wants to merge 14 commits into
Conversation
theosanderson-agent
force-pushed
the
feat/gensplore-sequence-preview
branch
from
September 8, 2026 12:19
f27c027 to
5809ef4
Compare
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.
Adds an optional Reference comparison tab to sequence details and the search-results sequence modal, using
gensplore@0.0.14. Selecting the tab compares the entry with its configured reference and marks substitutions, deletions, insertions, and ambiguous bases. Switching tabs unloads the component; existing sequence downloads and text displays remain available.The component consumes LAPIS’s existing alignment and separate insertion calls, preserving supplied gap placement. Terminal Ns are excluded from alignment but remain visible as coverage-gap labels and faded letters on nucleotide and amino-acid tracks; internal ambiguity also remains visible. Gensplore supports up to 256 alignment edits for amino-acid comparison. Segmented entries have a segment selector, and entries with multiple references use their assigned reference. The tab is hidden for revoked entries, entries without consensus sequences, and segments without an available reference.
A same-origin
/seq/[accessionVersion]/reference-comparisonroute loads the component on demand inside a 550px-high iframe. Gensplore 0.0.17 reduces the gap between nucleotide callouts and amino-acid ribbons. The route checks the public entry before loading its data. Reference annotations are fetched server-side from NCBI using the configured public INSDC reference accession, cached, and accepted only when the sequence exactly matches the configured reference. No submitted sequence is sent to NCBI. Without matching annotations, the comparison uses the configured nucleotide reference and displays a notice.The feature’s component directory, types, props, data helpers, route, page title, iframe labels, errors, and tests consistently use Reference Comparison terminology.
Validation: all 873 website tests pass, including tab loading, segment switching, reference selection, insertion filtering, preserved internal gaps, and annotation fallback. Type checks and formatting pass.
Test deployment: https://feat-gensplore-sequence-p.loculus.org
🚀 Preview: https://feat-gensplore-sequence-p.loculus.org