File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 11import os
2-
2+ from pathlib import Path
33
44def get_path_to_script (selected_pipeline , selected_project , selected = "all" ):
55 NX_SHARED_PATH = "/data/scratch/shared/RSE/NF-project-configurations"
@@ -39,11 +39,12 @@ def get_pipeline_command():
3939 log_out = f"{ work_dir } /logs/%j.out"
4040 log_err = f"{ work_dir } /logs/%j.err"
4141
42- args = [path_to_script ]
43- base_cmd = f"sbatch -o { log_out } -e { log_err } "
42+ args = []
43+ base_cmd = f"bash { path_to_script } " #default
4444
4545 if selected_samples == "demo" :
46- args += [work_dir , output_dir ]
46+ base_cmd = f"sbatch -o { log_out } -e { log_err } "
47+ args += [path_to_script , work_dir , output_dir ]
4748
4849 elif selected_samples == "all" :#I removed this option
4950 #./your_script.sh --env "/my/custom/env" --work-dir "my_work" --outdir "my_output" --config "my_config" --params "parans.json" --bed file.bed
You can’t perform that action at this time.
0 commit comments