-
Notifications
You must be signed in to change notification settings - Fork 0
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
Interesting and probably unwanted behaviour for strain_interaction_to_cross_immunity
#186
Comments
Two things: interact = np.array([[0.6, 1.0], [0.3, 1.0]]) seems a bit weird? Is that saying getting infected with strain 1 gives more protection against strain 2? But I don't think you have "most recent strain" as a concept in the history? |
Maybe easiest sensible solution is to use the maximum immunity over pre-infected strains. |
Your strain interactions matrix is a bit confusing here though. In every case thus far we have always had a 1.0 diagonal across the strain interactions matrix. what this |
As Ben pointed out in verbal discussion, the 1.0 diagonal is usually enforced, however during strain definition collapse (between epochs when we combine strains into the ancestral one) this can occur. This should be the primary focus of this GH issue, either always enforcing a 1.0 diagonal and patching the bug with strain combination, or allowing the user to pass nonsense if they so wish. |
Had a discussion with Tom, he is not convinced that this behavior is entirely unfounded. If you combine strain definitions, they are still different strains in reality, so there may not be perfect protection between them (diagonal = 1). For example, if we combine BA2/4/5 all together, a challenge from this combined strain is not necessarily met with perfect protection. An individual may have been infected with BA2, is now being met with BA5, but these are now marked as the same strain... Tabling this issue for a future discussion but noting the points for now. |
labeling wontfix for now since this is something that should be on our radar but is not actively going to be worked on |
The
utils
function to convert strain interaction to cross immunity can produce some counterintuitive cross immunity matrix.So in this case, if we say that the "interaction" for:
A person who is infected by strain 2 only has cross immunity of 1.0 towards challenging strain 1, but if they are infected by both strain 1 & 2, their cross immunity drops to 0.6 towards challenging strain 1.
The text was updated successfully, but these errors were encountered: