Skip to content

Support fitting titer models per reference virus#261

Draft
huddlej wants to merge 1 commit intomasterfrom
run-titer-models-per-reference
Draft

Support fitting titer models per reference virus#261
huddlej wants to merge 1 commit intomasterfrom
run-titer-models-per-reference

Conversation

@huddlej
Copy link
Contributor

@huddlej huddlej commented Oct 22, 2025

Description of proposed changes

Allow titer collections to request a titer model run per reference virus in each collection. The workflow aggregates the resulting model results into a single measurements panel JSON which allows users to display inferred titer measurements per virus in the tree in both the measurements panel and in the tree coloring by measurements for a reference selected from the panel. This logic attempts to recreate a nextflu feature which allows users to click on a titer reference virus to color the tree by the measurements against that virus and then choose to color by the titer model fit to that virus.

This is a first attempt at recreating the original nextflu feature, but this is not actually the same approach that nextflu uses. The nextflu logic uses a single titer substitution model that has been fit to all available measurements, finds the substitutions that exist between the selected reference node and each other node in the tree, and sums the titer model effects of those substitutions. That implementation allows the inferred measurements to take advantage of all titer data, while the current PR's approach fits a different model per reference using only the data where that virus is the serum strain. I plan to update this PR later with something closer to the nextflu approach.

See Slack for additional context.

Related issue(s)

Related to #214

Checklist

  • Checks pass
  • Update changelog

Allow titer collections to request a titer model run per reference virus
in each collection. The workflow aggregates the resulting model results
into a single measurements panel JSON which allows users to display
inferred titer measurements per virus in the tree in both the
measurements panel and in the tree coloring by measurements for a
reference selected from the panel. This logic attempts to recreate a
nextflu feature which allows users to click on a titer reference virus
to color the tree by the measurements against that virus and then choose
to color by the titer model fit to that virus.

Related to #214
@huddlej huddlej force-pushed the run-titer-models-per-reference branch from 393c7c4 to 1843dcb Compare October 22, 2025 16:55
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