Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support thresholded titer values #1118

Merged
merged 2 commits into from
Dec 29, 2022
Merged

Support thresholded titer values #1118

merged 2 commits into from
Dec 29, 2022

Conversation

huddlej
Copy link
Contributor

@huddlej huddlej commented Dec 27, 2022

Description of proposed changes

Adds doctests and logic to support thresholded titer values, to prevent these values from being discarded during titer model fitting. This solution converts values at lower or upper thresholds to half or twice of their threshold values, respectively. Later, we should consider a more robust implementation like the one from Bedford et al. 2014 that treats thresholded values as probabilistic values in some reasonable range based on a normal distribution of observed log2 values. This implementation is good enough, however, to allow all data to pass through to the measurements panel in flu builds, for example.

Changes to functional tests reflect the fact that the data for these tests contained thresholded values that we could not previously parse.

Testing

  • Adds doctests and updates test data for new behavior
  • Test by CI

Checklist

  • Add a message in CHANGES.md summarizing the changes in this PR that are end user focused. Keep headers and formatting consistent with the rest of the file.

Adds doctests and logic to support thresholded titer values, to prevent
these values from being discarded during titer model fitting. This
solution converts values at lower or upper thresholds to half or twice
of their threshold values, respectively. Later, we should consider a
more robust implementation like the one from Bedford et al.
2014 (https://elifesciences.org/articles/01914#fig8) that treats
thresholded values as probabilistic values in some reasonable range
based on a normal distribution of observed log2 values. This
implementation is good enough, however, to allow all data to pass
through to the measurements panel in flu builds, for example.

Changes to functional tests reflect the fact that the data for these
tests contained thresholded values that we could not previously parse.
@codecov
Copy link

codecov bot commented Dec 27, 2022

Codecov Report

Base: 67.97% // Head: 67.99% // Increases project coverage by +0.02% 🎉

Coverage data is based on head (ce7cd38) compared to base (0abb2f8).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1118      +/-   ##
==========================================
+ Coverage   67.97%   67.99%   +0.02%     
==========================================
  Files          57       57              
  Lines        6641     6646       +5     
  Branches     1632     1634       +2     
==========================================
+ Hits         4514     4519       +5     
  Misses       1823     1823              
  Partials      304      304              
Impacted Files Coverage Δ
augur/titer_model.py 70.14% <100.00%> (+0.27%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@huddlej huddlej requested a review from rneher December 27, 2022 23:38
@huddlej huddlej merged commit f8f15ff into master Dec 29, 2022
@huddlej huddlej deleted the support-thresholded-titers branch December 29, 2022 04:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

2 participants