-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from mmcdermott/build_task_cmd
A quick helper to help build ACES task labels.
- Loading branch information
Showing
28 changed files
with
83 additions
and
20 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
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 |
---|---|---|
|
@@ -3,7 +3,7 @@ requires = ["setuptools>=64", "setuptools-scm>=8.0", "wheel"] | |
build-backend = "setuptools.build_meta" | ||
|
||
[project] | ||
name = "MEDS-DEV" | ||
name = "MEDS_DEV" | ||
dynamic = ["version"] | ||
authors = [ | ||
{name="Matthew B. A. McDermott", email="[email protected]"}, | ||
|
@@ -28,7 +28,7 @@ classifiers = [ | |
"License :: OSI Approved :: MIT License", | ||
"Operating System :: OS Independent", | ||
] | ||
dependencies = ["meds==0.3", "es-aces==0.3.0"] | ||
dependencies = ["meds==0.3.3", "es-aces==0.5.0"] | ||
|
||
[tool.setuptools_scm] | ||
|
||
|
This file was deleted.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
defaults: | ||
- _aces | ||
- override data: sharded | ||
- _self_ | ||
|
||
dataset_name: ${oc.env:MEDS_DATASET_NAME} | ||
task_name: ${oc.env:MEDS_TASK_NAME} | ||
output_dir: "${oc.env:MEDS_ROOT_DIR}/task_labels" | ||
|
||
# TODO: find a nice way to have this be inferred automatically | ||
MEDS_DEV_dir: "${oc.env:MEDS_DEV_REPO_DIR}" | ||
|
||
data: | ||
standard: meds | ||
root: "${oc.env:MEDS_ROOT_DIR}/data" | ||
|
||
# Cohort directory and name: used for automatically loading configs, saving results, and logging. | ||
cohort_dir: ${output_dir} | ||
cohort_name: ${task_name} | ||
|
||
# Path to the task configuration file | ||
config_path: ${MEDS_DEV_dir}/tasks/criteria/${task_name}.yaml | ||
predicates_path: ${MEDS_DEV_dir}/datasets/${dataset_name}/predicates.yaml |
Empty file.
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
predicates: | ||
hospital_admission: | ||
code: { regex: "^HOSPITAL_ADMISSION//.*" } | ||
hospital_discharge: | ||
code: { regex: "^HOSPITAL_DISCHARGE//.*" } | ||
|
||
ED_registration: | ||
code: { regex: "^ED_REGISTRATION//.*" } | ||
ED_discharge: | ||
code: { regex: "^ED_OUT//.*" } | ||
|
||
icu_admission: | ||
code: { regex: "^ICU_ADMISSION//.*" } | ||
icu_discharge: | ||
code: { regex: "^ICU_DISCHARGE//.*" } | ||
|
||
death: | ||
code: MEDS_DEATH |
File renamed without changes.
Empty file.
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
|
||
export MEDS_ROOT_DIR=$1 | ||
export MEDS_DATASET_NAME=$2 | ||
export MEDS_TASK_NAME=$3 | ||
|
||
shift 3 | ||
|
||
MEDS_DEV_REPO_DIR=$(python -c "from importlib.resources import files; print(files(\"MEDS_DEV\"))") | ||
export MEDS_DEV_REPO_DIR | ||
|
||
SHARDS=$(expand_shards "$MEDS_ROOT_DIR"/data) | ||
|
||
aces-cli --config-path="$MEDS_DEV_REPO_DIR"/configs --config-name="_ACES_MD" \ | ||
"hydra.searchpath=[pkg://aces.configs]" "data.shard=$SHARDS" -m "$@" |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.