From 3ddcf05660446544561e7637c1001152b4e8464d Mon Sep 17 00:00:00 2001 From: Kin Quan Date: Thu, 23 Jan 2025 17:24:34 +0000 Subject: [PATCH] editing the ymal file --- analysis/calculate_time_diff_from_dx_to_med.py | 2 +- project.yaml | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/analysis/calculate_time_diff_from_dx_to_med.py b/analysis/calculate_time_diff_from_dx_to_med.py index d3dd262..81935ac 100644 --- a/analysis/calculate_time_diff_from_dx_to_med.py +++ b/analysis/calculate_time_diff_from_dx_to_med.py @@ -14,4 +14,4 @@ output = adhd_data['times_between_dia_med_weeks'].value_counts(bins = week_bin) -print(output) \ No newline at end of file +output.to_csv('output/adhd_dia_med_gap_weeks.csv') \ No newline at end of file diff --git a/project.yaml b/project.yaml index e7634d3..1ca4b34 100644 --- a/project.yaml +++ b/project.yaml @@ -12,6 +12,13 @@ actions: outputs: highly_sensitive: adhd_dataset: output/adhd_dataset.csv.gz + + generate_output_table: + run: python:v2 python analysis/dataset_definition_dx_to_med_time.py + needs: [generate_dataset] + outputs: + moderately_sensitive: + table1: output/adhd_dia_med_gap_weeks.csv generate_adhd_prevalence: run: >