-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8d781e4
commit de6c765
Showing
2 changed files
with
67 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,14 +22,14 @@ | |
"\n", | ||
"### Installation Steps\n", | ||
"\n", | ||
"1. Clone the Github rEpiabm repository:\n", | ||
"**1. Clone the Github rEpiabm repository:**\n", | ||
"\n", | ||
"```bash\n", | ||
"git clone [email protected]:SABS-R3-Epidemiology/rEpiabm.git\n", | ||
"cd rEpiabm\n", | ||
"```\n", | ||
"\n", | ||
"2. Create a GitHub Personal Access Token:\n", | ||
"**2. Create a GitHub Personal Access Token:**\n", | ||
"\n", | ||
"- Navigate to GitHub Settings → Developer Settings\n", | ||
"- Select \"Personal access tokens (fine-grained)\"\n", | ||
|
@@ -39,8 +39,8 @@ | |
"<strong>Important:</strong> Make sure to copy your token immediately after creation - you won't be able to see it again!\n", | ||
"</div>\n", | ||
"\n", | ||
"3. Configure RStudio with your token:\n", | ||
"- in the console:\n", | ||
"**3. Configure RStudio with your token:**\n", | ||
"- In the console:\n", | ||
"\n", | ||
"```bash\n", | ||
"file.edit(\"~/.Renviron\")\n", | ||
|
@@ -58,15 +58,15 @@ | |
"\n", | ||
"- Save file and restart RStudio\n", | ||
"\n", | ||
"4. Install required R packages:\n", | ||
" In the console:\n", | ||
"**4. Install required R packages:**\n", | ||
"- In the console:\n", | ||
" \n", | ||
"```bash\n", | ||
"install.packages(\"devtools\")\n", | ||
"devtools::install_github(\"SABS-R3-Epidemiology/rEpiabm\")\n", | ||
"```\n", | ||
"\n", | ||
"5. Set up your country's data structure\n", | ||
"**5. Set up your country's data structure**\n", | ||
"- Navigate to the `data` folder\n", | ||
"- Copy the `Andorra` folder structure\n", | ||
"- Rename the copy with your country's name (capitalize the initial letter)\n", | ||
|
@@ -89,33 +89,33 @@ | |
"\n", | ||
"### Environment Setup\n", | ||
"\n", | ||
"1. Clone the [EpiGeoPop](https://github.com/SABS-R3-Epidemiology/EpiGeoPop) repository:\n", | ||
"**1. Clone the [EpiGeoPop](https://github.com/SABS-R3-Epidemiology/EpiGeoPop) repository:**\n", | ||
"\n", | ||
"```bash\n", | ||
"git clone [email protected]:SABS-R3-Epidemiology/EpiGeoPop.git\n", | ||
"cd EpiGeoPop\n", | ||
"```\n", | ||
"\n", | ||
"2. Create and activate a Python 3.11 environment:\n", | ||
"\n", | ||
" <div style=\"margin: 1em 0; padding: 1em; border-left: 4px solid #5bc0de; background-color: #f4f8fa;\">\n", | ||
"<strong>Note:</strong> It will not run on Python 3.12.\n", | ||
"</div>\n", | ||
"**2. Create and activate a Python 3.11 environment:**\n", | ||
"\n", | ||
"```bash\n", | ||
"/usr/local/opt/[email protected]/bin/python3.11 -m venv .venv\n", | ||
"source .venv/bin/activate\n", | ||
"```\n", | ||
" \n", | ||
"3. Install dependencies:\n", | ||
"\n", | ||
"<div style=\"margin: 1em 0; padding: 1em; border-left: 4px solid #5bc0de; background-color: #f4f8fa;\">\n", | ||
"<strong>Note:</strong> It will not run on Python 3.12.\n", | ||
"</div>\n", | ||
"\n", | ||
"**3. Install dependencies:**\n", | ||
"\n", | ||
"```bash\n", | ||
"pip install -r requirements.txt\n", | ||
"```\n", | ||
"\n", | ||
" <div style=\"margin: 1em 0; padding: 1em; border-left: 4px solid #5bc0de; background-color: #f4f8fa;\">\n", | ||
"<strong>Note:</strong> If you encounter GDAL-related errors, install GDAL first:\n", | ||
"<code>brew install gdal\n", | ||
"<strong>Note:</strong> If you encounter GDAL-related errors, install GDAL first:<code>\n", | ||
"brew install gdal\n", | ||
"export GDAL_CONFIG=/usr/local/bin/gdal-config\n", | ||
"export GDAL_VERSION=$(gdal-config --version)</code></div><br>\n", | ||
"\n", | ||
|
@@ -128,7 +128,7 @@ | |
"source": [ | ||
"### Configuration steps\n", | ||
"\n", | ||
"1. Configure <your_country> parameters:\n", | ||
"**1. Configure <your_country> parameters:**\n", | ||
"\n", | ||
"- Locate the parameter files in the `configs/countries` directory\n", | ||
"- Edit or copy an existing parameter file\n", | ||
|
@@ -147,13 +147,13 @@ | |
"```\n", | ||
"- Save file with <your_country> at start of filename\n", | ||
"\n", | ||
"2. Update the data preparation script:\n", | ||
"**2. Update the data preparation script:**\n", | ||
"- Open `prep.sh`\n", | ||
"- Replace the population data URL:\n", | ||
"\n", | ||
"```bash\n", | ||
"# Comment out old URL\n", | ||
"# curl -O https://jeodpp.jrc.ec.europa.eu/ftp/jrc-opendata/GHSL/GHS_POP_MT_GLOBE_R2019A/GHS_POP_E2015_GLOBE_R2019A_4326_30ss/V1-0/GHS_POP_E2015_GLOBE_R2019A_4326_30ss_V1_0.zip\n", | ||
"curl -O https://jeodpp.jrc.ec.europa.eu/ftp/jrc-opendata/GHSL/GHS_POP_MT_GLOBE_R2019A/GHS_POP_E2015_GLOBE_R2019A_4326_30ss/V1-0/GHS_POP_E2015_GLOBE_R2019A_4326_30ss_V1_0.zip\n", | ||
"\n", | ||
"# Add new URL\n", | ||
"curl -O https://jeodpp.jrc.ec.europa.eu/ftp/jrc-opendata/GHSL/GHS_POP_GLOBE_R2023A/GHS_POP_E2025_GLOBE_R2023A_4326_30ss/V1-0/GHS_POP_E2025_GLOBE_R2023A_4326_30ss_V1_0.zip\n", | ||
|
@@ -170,13 +170,13 @@ | |
"Comment out the remaining lines of code.\n", | ||
"\n", | ||
"```bash\n", | ||
"# curl -LO \"https://www.naturalearthdata.com/http//www.naturalearthdata.com/download/10m/cultural/ne_10m_admin_0_countries_lakes.zip\"\n", | ||
"# curl -LO \"https://www.naturalearthdata.com/http//www.naturalearthdata.com/download/10m/cultural/ne_10m_admin_1_states_provinces.zip\"\n", | ||
"# curl -LO \"https://www.naturalearthdata.com/http//www.naturalearthdata.com/download/10m/cultural/ne_10m_urban_areas_landscan.zip\"\n", | ||
"# echo \"Downloading population age file...\"\n", | ||
"# # This server uses an outdated SSL protocol so we need to enable legacy renegotiation\n", | ||
"# OPENSSL_CONF=../../openssl.cnf curl -O \"https://population.un.org/wpp/Download/Files/1_Indicators%20(Standard)/CSV_FILES/WPP2022_PopulationByAge5GroupSex_Medium.zip\"\n", | ||
"# unzip WPP2022_PopulationByAge5GroupSex_Medium.zip\n", | ||
"curl -LO \"https://www.naturalearthdata.com/http//www.naturalearthdata.com/download/10m/cultural/ne_10m_admin_0_countries_lakes.zip\"\n", | ||
"curl -LO \"https://www.naturalearthdata.com/http//www.naturalearthdata.com/download/10m/cultural/ne_10m_admin_1_states_provinces.zip\"\n", | ||
"curl -LO \"https://www.naturalearthdata.com/http//www.naturalearthdata.com/download/10m/cultural/ne_10m_urban_areas_landscan.zip\"\n", | ||
"echo \"Downloading population age file...\"\n", | ||
"# This server uses an outdated SSL protocol so we need to enable legacy renegotiation\n", | ||
"OPENSSL_CONF=../../openssl.cnf curl -O \"https://population.un.org/wpp/Download/Files/1_Indicators%20(Standard)/CSV_FILES/WPP2022_PopulationByAge5GroupSex_Medium.zip\"\n", | ||
"unzip WPP2022_PopulationByAge5GroupSex_Medium.zip\n", | ||
"```\n", | ||
"\n", | ||
"<div style=\"margin: 1em 0; padding: 1em; border-left: 4px solid #5bc0de; background-color: #f4f8fa;\">\n", | ||
|
@@ -189,7 +189,7 @@ | |
"bash prep.sh\n", | ||
"```\n", | ||
"\n", | ||
"3. Download additional required data manually:\n", | ||
"**3. Download additional required data manually:**\n", | ||
"\n", | ||
"- Visit [Natural Earth](https://www.naturalearthdata.com/downloads/10m-cultural-vectors/)\n", | ||
"- Under Admin 0 - Countries, click on link `Download without boundary lakes`\n", | ||
|
@@ -205,7 +205,7 @@ | |
"source": [ | ||
"### Generate Population Data\n", | ||
"\n", | ||
"1. Update the Snakefile configuration:\n", | ||
"**1. Update the Snakefile configuration:**\n", | ||
"\n", | ||
"```bash\n", | ||
"# Replace country name\n", | ||
|
@@ -240,7 +240,7 @@ | |
" \"scripts/get_pop_dist.py\"\n", | ||
"```\n", | ||
"\n", | ||
"2. Generate the population data:\n", | ||
"**2. Generate the population data:**\n", | ||
"\n", | ||
"```bash\n", | ||
"snakemake --cores 1\n", | ||
|
@@ -250,7 +250,7 @@ | |
"<strong>Tip:</strong> You can speed up the process by using multiple cores.\n", | ||
"</div>\n", | ||
"\n", | ||
"3. Copy the generated files:\n", | ||
"**3. Copy the generated files:**\n", | ||
"\n", | ||
"- Locate `<your_country_microcells>.csv` in `data/raw/processed/countries/`\n", | ||
"- Copy it to your rEpiabm repository: `data/<your_country>/inputs/`\n", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters