You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 8bcbd19
Browse filesBrowse the repository at this point in the historyBrowse files
* added scripts for dockerizing mimic-iv with postgres
* update
* made db name consistent with concepts scripts
* rework docker and add duckdb docker build
* update to use build_mimic.sh convenience script
* add CI to test docker builds of psql/duckdb
* name both docker compose jobs to avoid conflicts in CI
* use bind mount to infer user ID for file ownership
---------
Co-authored-by: Alistair Johnson <alistairewj@gmail.com>
Copy file name to clipboardExpand all lines: .github/actions/load-mimic-psql/action.yml
+6-4Lines changed: 6 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
name: "Load MIMIC-IV demo into PostgreSQL"
2
-
description: "Creates the MIMIC-IV schemasand loads the demo hosp/icu data. Requires psql on PATH and PG* connection env vars."
2
+
description: "Builds the MIMIC-IV schemas, data, constraints and indexes from the demo hosp/icu data using build_mimic.sh. Requires psql on PATH and PG* connection env vars."
3
3
4
4
inputs:
5
5
mimic_data_dir:
@@ -15,9 +15,11 @@ runs:
15
15
# Resolve the data dir at shell time so $GITHUB_WORKSPACE points at the
16
16
# container-mounted path. The github.workspace context yields the host
17
17
# path, which does not exist inside a container job.
18
+
env:
19
+
# Load only - we validate/build concepts elsewhere.
Successfully finished loading data into mimic4.db.
103
+
MIMIC-IV build complete: /path/to/mimic4.db
103
104
104
105
$ ls -lh mimic4.db
105
106
-rw-rw-r--. 1 myuser mygroup 93G May 26 16:11 mimic4.db
@@ -109,6 +110,15 @@ The script will print out progress as it goes.
109
110
Be patient, this can take minutes to hours to load
110
111
depending on your computer's configuration.
111
112
113
+
Beyond loading the data, it also derives the concepts from
114
+
[concepts_duckdb](../../concepts_duckdb) into the `mimiciv_derived` schema and
115
+
checks the loaded tables against known row counts. Set `MIMIC_MAKE_CONCEPTS` or
116
+
`MIMIC_VALIDATE` to `false` to skip either.
117
+
118
+
Each step is recorded in a `mimiciv_build_progress` table inside the database
119
+
file, and tables that already hold rows are skipped, so re-running the script
120
+
after an interruption resumes rather than starting over.
121
+
112
122
* It took 16m25s on a Fedora 34 workstation with duckdb v 0.2.6, a btrfs filesystem with ztsd level 1 compression, AMD Ryzen 3900X, 32 GB RAM, Samsung 970 Evo NVMe SSD.
0 commit comments