Skip to content

Commit 4e93f57

Browse files
committed
cleaning up, use new repo
1 parent 817e1fe commit 4e93f57

33 files changed

+293
-762
lines changed

make_workflow/Makefile

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Simple Correlation Workflow using Make
2+
#
3+
# Usage:
4+
# make all - Run full workflow
5+
# make clean - Remove output directory
6+
7+
OUTPUT_DIR ?= ./output
8+
9+
.PHONY: all clean
10+
11+
all:
12+
mkdir -p $(OUTPUT_DIR)/data $(OUTPUT_DIR)/results $(OUTPUT_DIR)/figures
13+
uv run python scripts/download_data.py $(OUTPUT_DIR)/data
14+
uv run python scripts/filter_data.py $(OUTPUT_DIR)/data
15+
uv run python scripts/join_data.py $(OUTPUT_DIR)/data
16+
uv run python scripts/compute_correlation.py $(OUTPUT_DIR)/data $(OUTPUT_DIR)/results
17+
uv run python scripts/generate_heatmap.py $(OUTPUT_DIR)/results $(OUTPUT_DIR)/figures
18+
19+
clean:
20+
rm -rf $(OUTPUT_DIR)
801 KB
Loading

make_workflow/output/results/correlation_matrix.csv

Lines changed: 222 additions & 0 deletions
Large diffs are not rendered by default.

simple_workflow/make_workflow/scripts/compute_correlation.py renamed to make_workflow/scripts/compute_correlation.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@
1010

1111
import pandas as pd
1212

13-
from bettercode.simple_workflow.correlation import (
14-
compute_spearman_correlation,
15-
)
13+
from bettercode.simple_workflow import compute_spearman_correlation
1614

1715

1816
def main():
File renamed without changes.

simple_workflow/make_workflow/scripts/filter_data.py renamed to make_workflow/scripts/filter_data.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@
1010

1111
import pandas as pd
1212

13-
from bettercode.simple_workflow.filter_data import (
14-
filter_numerical_columns,
15-
)
13+
from bettercode.simple_workflow import filter_numerical_columns
1614

1715

1816
def main():

simple_workflow/make_workflow/scripts/generate_heatmap.py renamed to make_workflow/scripts/generate_heatmap.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@
1010

1111
import pandas as pd
1212

13-
from bettercode.simple_workflow.visualization import (
14-
generate_clustered_heatmap,
15-
)
13+
from bettercode.simple_workflow import generate_clustered_heatmap
1614

1715

1816
def main():

simple_workflow/make_workflow/scripts/join_data.py renamed to make_workflow/scripts/join_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
import pandas as pd
1212

13-
from bettercode.simple_workflow.join_data import join_dataframes
13+
from bettercode.simple_workflow import join_dataframes
1414

1515

1616
def main():

simple_workflow/correlation.py

Lines changed: 0 additions & 43 deletions
This file was deleted.

0 commit comments

Comments
 (0)