Data Access
Accessing hub data from GitHub
All model-output, target, and configuration files for this hub are hosted on GitHub. You can access the data directly from the repository at dailypartita/China-Infectious-Disease-Forecast-Hub.
GitHub serves as the primary interface for operating the hub and collecting forecasts from modelers. You can access hub data by cloning the repository or downloading files directly from GitHub.
Guangdong dengue observed series
This page also includes a compiled monthly series of dengue cases reported in Guangdong province, from July 2004 through September 2026. Counts are reported cases by current residence in the province, excluding Hong Kong, Macao, Taiwan, and foreign cases. This series is not a provincial split of the national China CDC monthly bulletin used as the hub target mo inc dengue cases, and it is not shown on the forecast page.
Download the series as CSV. Each row is labeled with its source and URL.
The compiled counts come from three sources:
- July 2004–October 2023: Public Health Science Data Center, compiled via the globalID2 Guangdong table
- April and May 2020 (two months missing from that table): Lin et al., 2016–2024 (Zenodo)
- November 2023–September 2026, including all of 2024 and the first half of 2025: Guangdong Health Commission epidemic information monthly notifiable-disease bulletins
Twenty-five months in 2004–2014 have no published count (including February 2014). Those months are left blank in the CSV and appear as breaks in the chart; they are not filled as zero. Reported zeros, including May 2020, are plotted as zero.
Data Access Methods
The sections below provide examples for accessing hub data depending on your goals and preferred tools:
| Access Method | Description |
|---|---|
| Git/GitHub | Clone the repository for full local access |
| GitHub Raw Files | Direct HTTP access to individual files |
| GitHub API | Programmatic access to repository contents |
Cloning the Repository
To get a complete local copy of all hub data:
git clone https://github.com/dailypartita/China-Infectious-Disease-Forecast-Hub.git
cd China-Infectious-Disease-Forecast-HubThis gives you access to: - model-output/: All model forecasts - target-data/: Observed data (time-series.csv) - hub-config/: Hub configuration files - model-metadata/: Model metadata files
Repository Structure
China-Infectious-Disease-Forecast-Hub/
├── model-output/ # Model forecasts by team
│ ├── GZNL-test_001/
│ ├── GZNL-test_002/
│ ├── GZNL-test_003/
│ └── GZNL-test_004/
├── target-data/ # Observed/target data
│ └── time-series.csv
├── hub-config/ # Configuration files
├── model-metadata/ # Model descriptions
└── README.md
Accessing Individual Files
You can directly download individual files using GitHub’s raw file URLs:
# R example: Load target data
library(readr)
target_data <- read_csv("https://raw.githubusercontent.com/dailypartita/China-Infectious-Disease-Forecast-Hub/main/target-data/time-series.csv")
# Load a specific model's forecast
model_data <- read_csv("https://raw.githubusercontent.com/dailypartita/China-Infectious-Disease-Forecast-Hub/main/model-output/GZNL-test_001/2025-08-28-GZNL-test_001.csv")# Python example: Load target data
import pandas as pd
target_data = pd.read_csv("https://raw.githubusercontent.com/dailypartita/China-Infectious-Disease-Forecast-Hub/main/target-data/time-series.csv")
# Load a specific model's forecast
model_data = pd.read_csv("https://raw.githubusercontent.com/dailypartita/China-Infectious-Disease-Forecast-Hub/main/model-output/GZNL-test_001/2025-08-28-GZNL-test_001.csv")Programmatic Access
Use the GitHub API to programmatically explore repository contents:
# R example using httr
library(httr)
library(jsonlite)
# List all model teams
response <- GET("https://api.github.com/repos/dailypartita/China-Infectious-Disease-Forecast-Hub/contents/model-output")
teams <- fromJSON(content(response, "text"))$name
print(teams)# Python example using requests
import requests
# List all model teams
response = requests.get("https://api.github.com/repos/dailypartita/China-Infectious-Disease-Forecast-Hub/contents/model-output")
teams = [item['name'] for item in response.json()]
print(teams)Batch Download Script
#!/bin/bash
# Download all model outputs for a specific date
DATE="2025-08-28"
mkdir -p model-outputs-${DATE}
for team in GZNL-test_001 GZNL-test_002 GZNL-test_003 GZNL-test_004; do
wget "https://raw.githubusercontent.com/dailypartita/China-Infectious-Disease-Forecast-Hub/main/model-output/${team}/${DATE}-${team}.csv" \
-O "model-outputs-${DATE}/${team}.csv"
doneData Format
All model output files in this hub are stored in CSV format and follow the Hubverse data format standards.
Target Data
The target data (target-data/time-series.csv) is a long table with a target column mixing three targets:
wk inc covid prop ili— weekly SARS-CoV-2 positivity rate among department influenza-like illness (ILI) caseswk inc flu prop ili— weekly national laboratory positivity rate of ILI specimens (China National Influenza Center, CNIC)mo inc dengue cases— monthly reported dengue cases (monthly frequency;dateis the first day of each month)
SARS-CoV-2 positivity comes from China CDC’s weekly National Sentinel Surveillance of Acute Respiratory Infectious Diseases. Influenza positivity is the national laboratory positivity rate of ILI specimens tested in the national influenza surveillance network, as published in the China National Influenza Center (CNIC) weekly influenza surveillance report; values are percentage points for the national series. Dengue cases come from China CDC’s monthly notifiable infectious disease surveillance report.
Model Output Data
Each model output file contains quantile forecasts with the following columns: - reference_date: The date the forecast was made - target: The forecasting target (wk inc covid prop ili, wk inc flu prop ili, or mo inc dengue cases) - target_end_date: The date for which the prediction is made - location: Geographic location code (CN for China) - output_type: Type of prediction (quantile) - output_type_id: Quantile level (0.01, 0.025, 0.05, …, 0.975, 0.99) - value: The predicted value
For more details on the data format and hub structure, see the repository README.