Skip to content

Commit

Permalink
Merge pull request mmcdermott#210 from mmcdermott/updated_tutorial
Browse files Browse the repository at this point in the history
Updated the mimic iv tutorial
  • Loading branch information
Oufattole authored Nov 14, 2024
2 parents 553250e + e3046f7 commit f0a773b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions MIMIC-IV_Example/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ be run from this directory or from the directory in which the files in Step 0.5.
```bash
conda create -n MEDS python=3.12
conda activate MEDS
pip install "MEDS_transforms[local_parallelism,slurm_parallelism]"
# Get the latest version of MEDS_transforms from pypi
LATEST_VERSION=$(pip index versions "meds-transforms" 2>/dev/null | egrep -o '([0-9]+\.){2}[0-9]+' | head -n 1)
export VERSION=$LATEST_VERSION # or whatever version you want, at the time of writing this is "0.0.8"
pip install "MEDS_transforms[local_parallelism,slurm_parallelism]==${VERSION}"
```

If you want to profile the time and memory costs of your ETL, also install: `pip install hydra-profiler`.
Expand All @@ -20,9 +23,7 @@ export MIMICIV_RAW_DIR=??? # set to the directory in which you want to store the
export MIMICIV_PRE_MEDS_DIR=??? # set to the directory in which you want to store the intermediate MEDS MIMIC-IV data
export MIMICIV_MEDS_COHORT_DIR=??? # set to the directory in which you want to store the final MEDS MIMIC-IV data

export VERSION=0.0.6 # or whatever version you want
# export URL="https://raw.githubusercontent.com/mmcdermott/MEDS_transforms/$VERSION/MIMIC-IV_Example"
export URL="https://raw.githubusercontent.com/mmcdermott/MEDS_transforms/refs/heads/main/MIMIC-IV_Example"
export URL="https://raw.githubusercontent.com/mmcdermott/MEDS_transforms/$VERSION/MIMIC-IV_Example"

wget $URL/run.sh
wget $URL/pre_MEDS.py
Expand Down

0 comments on commit f0a773b

Please sign in to comment.