outbreak-info / R-outbreak-info

R package to access the genomics and epidemiology data and Research Library metadata compiled and standardized on outbreak.info.
https://outbreak-info.github.io/R-outbreak-info/
MIT License
19 stars 10 forks source link

Request: Add info from the summary table on outbreak.info Mutation Reports #85

Open starlagthornhill opened 2 years ago

starlagthornhill commented 2 years ago

I am trying to use this package to generate large tables which we are currently building manually. We need information which we are currently looking up on the Mutation Report pages on the outbreak.info site:

https://outbreak.info/situation-reports?pango&muts=S%3AT478K&loc=USA&loc=USA_US-NY&overlay=false

We would like to use the R package get the "cumulative prevalence" and "last date found" for individual mutations by location, as shown in the summary table on the above Mutation Report, so that I can use a script to generate these tables for us.

starlagthornhill commented 2 years ago

As an update: I worked out how to get the "last date found" from the data available in getPrevalence() by simply extracting the minimum date from the date column for the mutation I queried