File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
mimic-iv-note/buildmimic/postgres Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -10,9 +10,11 @@ git clone https://github.com/MIT-LCP/mimic-code.git
1010cd mimic-code
1111# download data
1212wget -r -N -c -np --user < USERNAME> --ask-password https://physionet.org/files/mimiciv/2.2/
13- mv physionet.org/files/mimiciv-iv-note mimiciv && rmdir physionet.org/files && rm physionet.org/robots.txt && rmdir physionet.org
13+ mv physionet.org/files/mimiciv-iv-note mimic-iv && rmdir physionet.org/files && rm physionet.org/robots.txt && rmdir physionet.org
1414# if mimiciv not exists
1515# createdb mimiciv
1616psql -d mimiciv -f mimic-iv-note/buildmimic/postgres/create.sql
17- psql -d mimiciv -v ON_ERROR_STOP=1 -v mimic_data_dir=mimiciv/2.2/note -f mimic-iv-note/buildmimic/postgres/load_gz.sql
17+ psql -d mimiciv -v ON_ERROR_STOP=1 -v mimic_data_dir=mimic-iv/mimic-iv-note/2.2/note -f mimic-iv-note/buildmimic/postgres/load_gz.sql
18+ # if you want to remove raw data
19+ # rm mimic-iv/mimic-iv-note/*.txt && rm mimic-iv/mimic-iv-note/index.html && rm mimic-iv/mimic-iv-note/note/*.gz && rm mimic-iv/mimic-iv-note/note/index.html && rmdir rm mimic-iv/mimic-iv-note/note && rmdir mimic-iv/mimic-iv-note
1820```
You can’t perform that action at this time.
0 commit comments