From 317add1d8f9bf169a7864bac06ee9531f5b0d81c Mon Sep 17 00:00:00 2001 From: luc Date: Wed, 8 Nov 2023 11:51:43 -0500 Subject: [PATCH] Update stats_by_project_dag.py --- stats_by_project_dag.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/stats_by_project_dag.py b/stats_by_project_dag.py index 5fc55a1..b56366d 100644 --- a/stats_by_project_dag.py +++ b/stats_by_project_dag.py @@ -32,8 +32,9 @@ def run_stats(ds, **kwargs): # main process of calling stats here # let's go ahead and run stats by project # add multi process, use recipe as 10X_multi, the project folder has to be gene expression project folder + project_id = project_directory.split("/")[-1] + if recipe == "10X_multi": - project_id = project_directory.split("/")[-1] # copy the multi config from shared drive to cluster cmd = "cp -R {}{} {}".format(scripts.cellranger_multi.ORIGIN_DRIVE_LOCATION, project_id[8:], scripts.cellranger_multi.DRIVE_LOCATION) print(cmd) @@ -58,7 +59,7 @@ def run_stats(ds, **kwargs): elif "10X_" in recipe: scripts.cellranger.lanuch_by_project(project_directory, recipe, species) elif "ONT" in recipe: - cmd = "bsub -J ont_stats -n 16 -M 16 /igo/work/nabors/tools/venvpy3/bin/python /igo/work/igo/igo-demux/scripts/ont_stats.py {}".format(project_directory) + cmd = "bsub -J ont_stats_{} -n 16 -M 16 /igo/work/nabors/tools/venvpy3/bin/python /igo/work/igo/igo-demux/scripts/ont_stats.py {}".format(project_id, project_directory) print(cmd) subprocess.run(cmd, shell=True) else: