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

Time Changing Vaccine Efficacy Changes #22

Merged
merged 8 commits into from
Jul 22, 2021
Merged

Time Changing Vaccine Efficacy Changes #22

merged 8 commits into from
Jul 22, 2021

Conversation

OJWatson
Copy link
Collaborator

@OJWatson OJWatson commented May 17, 2021

Start of a PR to adapt to new nimue version (0.1.18), which has time changing vaccine efficacies.

This is a draft as it is half way there for implementing:

  1. Methods for parameterising the vaccine efficacies over time, which now need to be 3 dimensional arrays of [nAge, nVaccine, timesteps]
  2. Updated Reff calculation as this now requires using the time changing vaccine properties
  3. Taking inputs from the UI on future vaccine doses to be given out and working out what the weighted vaccine efficacies should be in the future.

Most of these changes have been written up in R so far but I am very out of my depth translating this to js. Priority is 1 and 2. 3 being longer term is okay

@@ -90,6 +92,25 @@ export const createParameters = (
this.infectionEfficacy[4] = vaccinatedInfectedEff;
return this;
},
withVaccineEfficacy: function(diseaseEfficacy, infectionEfficacy) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

this shouldn;t been duplicated.my bad

Copy link
Member

@giovannic giovannic left a comment

Choose a reason for hiding this comment

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

The Reff function and vaccine parameterisation appears to work from the unittests.

...it probably isn't super fast...

Are you up for polishing up the documentation and releasing?

I haven't done an e2e test for varying efficacy. I can leave that to you if you want?

# these parameters are found in pars_0.json that is imported in index.js
dur_ICase <- out$parameters$dur_ICase
dur_IMild <- out$parameters$dur_IMild
prob_hosp <- out$odin_parameters$prob_hosp
rel_infectiousness <- out$odin_parameters$rel_infectiousness_vaccinated
Copy link
Member

Choose a reason for hiding this comment

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

We can remove this?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yup we can. sorry for the confusion

@giovannic
Copy link
Member

Oh, there's a weird babel issue. Will look into it

@OJWatson
Copy link
Collaborator Author

The Reff function and vaccine parameterisation appears to work from the unittests.

...it probably isn't super fast...

Are you up for polishing up the documentation and releasing?

I haven't done an e2e test for varying efficacy. I can leave that to you if you want?

Happy to write the documentation etc for this as will be chatting to Andy to help explain how to plumb it all together. i can then write a test to use one of the current model fits to make sure it is working right.

 * remove babel
 * e2e parameterisation of efficacy
@giovannic
Copy link
Member

giovannic commented May 20, 2021

Ok, sorry for the late commit...

Babel is breaking and I don't know why or how to fix it. So I've removed it.

It's not essential that we spend time on maintaining Babel. Babel just makes sure that our javascript bundle works on all recent browsers. But I'm sure clients can figure out a Babel configuration that works for them and run the bundle through it themselves.

I've updated the e2e/test.js to use the new vaccine efficacy methods.

@OJWatson OJWatson marked this pull request as ready for review July 22, 2021 22:00
@OJWatson OJWatson merged commit 415a92a into master Jul 22, 2021
@giovannic giovannic deleted the oj/vei_variant branch July 23, 2021 08:18
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.

2 participants