Skip to content

feat(config): add lineageFields for all organisms to both prod and staging#1122

Open
fhennig wants to merge 1 commit intomainfrom
complete-lineage-fields-defs
Open

feat(config): add lineageFields for all organisms to both prod and staging#1122
fhennig wants to merge 1 commit intomainfrom
complete-lineage-fields-defs

Conversation

@fhennig
Copy link
Copy Markdown
Contributor

@fhennig fhennig commented Mar 26, 2026

Adds lineageFields to the backend config for all organisms that expose lineage/clade filters on the website. These fields are used by the backend to validate lineage filters in collection objects.

Fields were identified in two ways:

  1. Fetching <lapis-url>/llms.txt for each organism and extracting fields annotated as "(STRING, lineage index generated)" — these were found for covid, mpox, rsvA, rsvB, cchf, and denv1–4.
  2. Reading the frontend view files (e.g. h5n1.ts, h3n2.ts) for organisms where llms.txt returned no lineage index fields but the website still exposes a variant/clade selector — covering h5n1, h1n1pdm, h3n2, influenzaA, influenzaB, victoria, westNile, and measles.

Summary of lineageFields added per organism:

  • covid (staging only, prod already had it): pangoLineage, nextcladePangoLineage
  • h5n1: clade
  • h1n1pdm: cladeHA, cladeNA
  • h3n2: cladeHA, cladeNA
  • influenzaA: subtypeHA, subtypeNA
  • influenzaB: lineageHA
  • victoria: cladeHA, cladeNA
  • mpox: lineage, clade
  • westNile: lineage
  • rsvA: lineage
  • rsvB: lineage
  • cchf: lineage_S
  • denv1–4: clade
  • measles: genotype

…aging

Adds lineageFields to the backend config for all organisms that expose
lineage/clade filters on the website. These fields are used by the backend
to validate lineage filters in collection objects.

Fields were identified in two ways:
1. Fetching `<lapis-url>/llms.txt` for each organism and extracting fields
   annotated as "(STRING, lineage index generated)" — these were found for
   covid, mpox, rsvA, rsvB, cchf, and denv1–4.
2. Reading the frontend view files (e.g. h5n1.ts, h3n2.ts) for organisms
   where llms.txt returned no lineage index fields but the website still
   exposes a variant/clade selector — covering h5n1, h1n1pdm, h3n2,
   influenzaA, influenzaB, victoria, westNile, and measles.

Summary of lineageFields added per organism:
- covid (staging only, prod already had it): pangoLineage, nextcladePangoLineage
- h5n1: clade
- h1n1pdm: cladeHA, cladeNA
- h3n2: cladeHA, cladeNA
- influenzaA: subtypeHA, subtypeNA
- influenzaB: lineageHA
- victoria: cladeHA, cladeNA
- mpox: lineage, clade
- westNile: lineage
- rsvA: lineage
- rsvB: lineage
- cchf: lineage_S
- denv1–4: clade
- measles: genotype

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel bot commented Mar 26, 2026

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

Project Deployment Actions Updated (UTC)
dashboards Ready Ready Preview, Comment Mar 26, 2026 2:53pm

Request Review

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.

1 participant