Skip to content

feat(collection-seeder): add descriptions to covid pango lineage variant types - #1363

Open
fhennig wants to merge 1 commit into
mainfrom
feat/lineage-collection-variant-descriptions
Open

feat(collection-seeder): add descriptions to covid pango lineage variant types#1363
fhennig wants to merge 1 commit into
mainfrom
feat/lineage-collection-variant-descriptions

Conversation

@fhennig

@fhennig fhennig commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

resolves #1357

Summary

Explains what 'Nucleotide substitutions' vs 'New nucleotide substitutions' means for each lineage collection. The parent lineage name is included in the description of the 'New' variants. These descriptions surface in the collection detail page and as tooltips in the queries-over-time table.

Screenshot

image image

PR Checklist

  • All necessary documentation has been adapted.
  • The implemented feature is covered by an appropriate test.

…ant types

Explains what 'Nucleotide substitutions' vs 'New nucleotide substitutions'
means for each lineage collection. The parent lineage name is included in
the description of the 'New' variants. These descriptions surface in the
collection detail page and as tooltips in the queries-over-time table.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@fhennig fhennig self-assigned this Jul 30, 2026
@vercel

vercel Bot commented Jul 30, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
dashboards Ready Ready Preview Jul 30, 2026 8:34am

Request Review

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds user-facing variant descriptions to COVID Pango lineage collections in the collection seeder so the UI can better explain “(New) nucleotide/amino acid substitutions” on collection detail pages and in tooltips (per #1357).

Changes:

  • Add description fields to the four variant types generated by CovidPangoLineagesSource.
  • Minor whitespace cleanup in an influenza resistance mutations test file.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
collection-seeding/sources/covid_pango_lineages.py Adds per-variant descriptions for (new) nucleotide/amino acid substitution variants.
collection-seeding/tests/test_influenza_resistance_mutations.py Removes an extraneous blank line.
Suppressed comments (1)

collection-seeding/sources/covid_pango_lineages.py:68

  • Same issue as above: for lineages without a known parent, this will render "parent lineage (—)" in the UI. It would be clearer to omit the parent clause when it’s unknown.
                "description": f"Amino acid substitutions not present in the parent lineage ({parent}).",

{
"type": "filterObject",
"name": "New nucleotide substitutions",
"description": f"Nucleotide substitutions not present in the parent lineage ({parent}).",
Comment on lines 47 to 51
{
"type": "filterObject",
"name": "Nucleotide substitutions",
"description": "All nucleotide substitutions that define this lineage.",
"filterObject": {"nucleotideMutations": nuc_subs},
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.

Better explain 'New' in lineage collections

2 participants