Give the H1 example the H3 example's five views - #15
Merged
Merged
Conversation
The 9GSP example was one antigenic-region view with a long caption; it now follows the 8FAW example view for view: the classical antigenic regions of H1 HA1, the same with the N-glycans hidden, the sites that differ between A/California/07/2009 and subclade D.3.1, the four that differ between D.3.1 and D.3.1.1, and that last comparison again with HA1 155 -- where G155E arises on the D.3.1.1 background -- in the same indigo the first two views give region Sa. The sequences come from the lab's own libraries: A/California/07/2009 (FJ966974) from flu-seqneut-cellular-therapy, and each subclade represented by the one strain flu-seqneut-2026 assigns that subclade as its whole derived_haplotype -- A/Missouri/11/2025 (PV886191) and A/Andalucia/PMC-00977/2025 (PX399795). Those libraries store the H1 ectodomain starting at HA1 site 4, not site 1, which flu-seqneut-2026's config.yml states outright and which every haplotype name in the library confirms; the offset is written into the script's docstring because getting it wrong would silently paint the wrong residues. Both mutation lists were re-derived from the libraries and checked against the transcribed ones before this commit. 9GSP deposits the whole trimer, so every CSV names all three protomers rather than relying on symmetry. Drawn labels are gone, as in the H3 example, so this page also has no Labels button -- the substitution is a tooltip instead. Only the first view pins a camera. Co-Authored-By: Claude Opus 5 <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.
examples/9gsp_antigenic_regionswas a single antigenic-region view with a long caption. It now followsexamples/8faw_antigenic_regionsview for view:glycans: hideWhere the sequences come from
A/California/07/2009 (FJ966974) comes from the
flu-seqneut-cellular-therapylibrary. Each subclade is represented by the one strainflu-seqneut-2026assigns that subclade as its wholederived_haplotype— A/Missouri/11/2025 (PV886191, the 2026 and 2026-2027 cell-based vaccine strain) and A/Andalucia/PMC-00977/2025 (PX399795) — which is the same rule the H3 example used to pick subclade K.Those libraries store the H1 ectodomain starting at HA1 site 4, not site 1.
flu-seqneut-2026'sconfig.ymlsays so where it builds its alignment (H1N1: DTL # add these three amino acids as HAs in viral barcode miss first 3 ectodomain aas), and all 258 haplotype names in the 2026 H1N1 library agree with it. Reading the sequences in the H3 example's frame would have painted every site three residues off, so the offset is recorded in the script's docstring. HA2 E172K is dropped from the 2009 comparison because 9GSP does not model it, as the H3 script drops its own unmodeled sites.Both mutation lists were re-derived from the library CSVs and checked against the transcribed ones.
Notable differences from the H3 example
Verified
make_coloring_csv.pyreproduces all five CSVs; the two antigenic-region ones carry the same color, label and note for every residue as thecoloring.csvthey replace.scripts/check.shgreen;scripts/build_docs.shrebuilt all three copies of the page.🤖 Generated with Claude Code