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

Up-to-date weekly flu hospitalisation data is not accessible through load_truth() #403

Open
nikosbosse opened this issue Jan 12, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@nikosbosse
Copy link
Collaborator

nikosbosse commented Jan 12, 2024

I was trying to load up-to-date weekly hospitalisation data using

covidHubUtils::load_truth(
  hub = "FluSight",
  target_variable = "inc flu hosp", 
  temporal_resolution = "weekly", 
  location = "United States"
) 

This internally calls load_from_hub_repo() which in turn calls get_truth_path(). The file_path that is returned is this one:
"https://raw.githubusercontent.com/cdcepi/Flusight-forecast-data/master/data-truth/truth-Incident%20Hospitalizations.csv". This file, however, only has data until 2023-11-11.

If I'm not mistaken, it seems like the most up-to-date data could/should be fetched from
"https://github.com/cdcepi/FluSight-forecast-hub/blob/main/target-data/target-hospital-admissions.csv" instead. This would require an update to load_from_hub_repo() (updating the repo_path passed to get_truth_path()) and an update to get_truth_path() (updating the folder path).

@nikosbosse nikosbosse added the bug Something isn't working label Jan 12, 2024
@bsweger bsweger self-assigned this Jan 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants