-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathextract_data.sh
executable file
·34 lines (27 loc) · 1.06 KB
/
extract_data.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/bash
# -----------------------------------------------
# Extract Inactivity Data
# -----------------------------------------------
# This script runs a series of Python scripts to extract various
# types of data related to physical inactivity. It extracts:
# 1. Prevalence data (for all risk factors)
# 2. Relative risks for inactivity
# 3. Impact factors for inactivity
#
# Usage:
# ./extract_inactivity_data.sh
#
# No arguments are required. This script is specifically
# designed to extract data for the 'inactivity' risk factor.
# -----------------------------------------------
# Set the risk factor to 'inactivity'
RISK_FACTOR="inactivity"
echo "Extracting data for risk factor: $RISK_FACTOR"
# Run the Python scripts
echo "Extracting prevalence data..."
python -m scripts.extract_prevalence
echo "Extracting relative risks for inactivity..."
python -m scripts.extract_relative_risks --risk-factor "$RISK_FACTOR"
echo "Extracting impact factors for inactivity..."
python -m scripts.extract_impact_factors --risk-factor "$RISK_FACTOR"
echo "Extraction complete."