-
Notifications
You must be signed in to change notification settings - Fork 2
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
UK heatmap of variants #7
Comments
Hi @bethsampher - do you know if there's an API anywhere with data that might work for this? Or where else I might grab the data from? |
@mathewcsims The first thing that comes to mind is the gov.uk site https://coronavirus.data.gov.uk/details/download and there is kind of an API (or at least a method to programmatically download) https://coronavirus.data.gov.uk/details/developers-guide#methods. This site has a downloads page that might be of use for a more international perspective https://www.covid19dataportal.org/sequences?db=embl-covid19 There is also CORD-19, although I have not used this and it looks to be more about advance literature searching. https://github.com/vespa-engine/cord-19/blob/master/cord-19-queries.md Li is a webscraper, but might be fiddly to set up locally. https://github.com/covidatlas/li/blob/master/docs/getting_started.md We also have a bunch of potentially useful links here: #1 although I don't recall seeing any geographical data there at all. Let me know if any of those work for what you want to look for. |
Thanks @JamesABaker :) |
@bethsampher will show a demo of how to get variant numbers in the workshop. This could be programmed via a very hacky web scrape... |
Hi @mathewcsims , thanks for your comments! I've also been trying to find some data that splits the variant cases by area in the UK but haven't had any luck. Microreact splits them by 'submission_org_code' but I don't think that's really what we're after. You can find variants split by country on CoV-GLUE, which is what I'm using in the workshop, so you could do a world map. But, as you said, I'm sure you can get some other interesting insights from the UK gov data :) |
Thanks @bethsampher and @JamesABaker; I'll have a look at CoV-GLUE in the workshop, and then see what I can come up with from there. |
After a lot of digging around, @bethsampher, It looks as though Microreact includes iso_3166_code as a field, which I'm fairly sure corresponds to UK upper tier local authorities. So I think downloading their data file should do the trick. I should be able to dig around and find a reference for what the codes mean (Wikipedia, if all else fails). |
Really glad you found the key! Looking forward to seeing what you come up with 😃 |
Thanks @JamesABaker, work in progress at https://github.com/mathewcsims/covid/tree/variant-map-percentages but one of my dataframes is causing me headaches (I need to calculate which week of the pandemic given days are in... which you wouldn't think would be so fiddly!). A challenge for tomorrow though. |
Glad to see you're making progress @mathewcsims! |
Produce a heatmap of the UK to show prevalence of variants in different areas
You will need to obtain data of the prevalence of different variants for each area of the UK and plot this on a map. You could even automate retrieving new data and incorporating it.
If working in Python, you might want to use Folium.
There is useful data for this as well as an existing heatmap to look at on Microreact
The text was updated successfully, but these errors were encountered: