-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
35 lines (29 loc) · 963 Bytes
/
Copy pathmain.py
File metadata and controls
35 lines (29 loc) · 963 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import os
from pipeline import run
from src.plotter import plot_amplification_curves_by_panel
if __name__ == "__main__":
# Define directories
folder_path = r"data/test_data/raw_data"
metadata_path = r"data/test_data/metadata_test.csv"
output_folder = r"data/test_data/processed"
path_figures = r"data/test_data/plots"
NMETA = 5
# Create directories if they do not exist
os.makedirs(folder_path, exist_ok=True)
os.makedirs(output_folder, exist_ok=True)
os.makedirs(path_figures, exist_ok=True)
# Execute main function
df_ac_inliers, df_ac_outliers, df_param_inliers, df_param_outliers = run(
folder_path,
metadata_path,
output_folder,
nmeta=NMETA,
)
# Plot amplification curves (memeory consuming)
plot_amplification_curves_by_panel(
df_ac_inliers,
df_ac_outliers,
NMETA,
path_figures,
meta=["Target", "Assay", "Conc"],
)