neherlab / covid19_scenarios

Models of COVID-19 outbreak trajectories and hospital demand
https://covid19-scenarios.org
MIT License
1.36k stars 354 forks source link

feat: seroprevalence #777

Closed ivan-aksamentov closed 3 years ago

ivan-aksamentov commented 4 years ago

Resolves #779 Contributes to #778

Adds seroprevalence parameter to the:

seroprevalence

vercel[bot] commented 4 years ago

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/neherlab/covid19-scenarios/pbpez72ot
✅ Preview: https://covid19-scenarios-git-feat-seroprevalence.neherlab.vercel.app

rneher commented 4 years ago

I removed the immune from the recovered again, as it messed up the pie chart with outcomes. I now instead have pop.immune are an array in the results structure. The algorithm deals with it correctly. We can see whether/how we want to show the this fraction of the population in the plots and tables.

rneher commented 4 years ago

the pdf print is broken for me.

ivan-aksamentov commented 4 years ago

the pdf print is broken for me.

Fixed in https://github.com/neherlab/covid19_scenarios/pull/777/commits/8ac2dad5b2f93a602c98678256f0cfa7e9cee16d

rneher commented 4 years ago

Hi Ivan,

I worked a little more on the seroprevalence branch. this now has new data (the script still has some small problems -- produces NaN outputs when some data are missing).

I made the R0 curve extend over the entire range, not just the part that we are simulating now. But this is pretty hacky, but I first wanted to see how this looks: https://github.com/neherlab/covid19_scenarios/blob/feat/seroprevalence/src/algorithms/run.ts#L69