Skip to content

Commit

Permalink
Update stats_by_project_dag.py
Browse files Browse the repository at this point in the history
  • Loading branch information
CuijieLu committed Nov 8, 2023
1 parent c861aa6 commit 317add1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions stats_by_project_dag.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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:
Expand Down

0 comments on commit 317add1

Please sign in to comment.