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 Dec 31, 2024
1 parent f782cf8 commit d50210b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions stats_by_project_dag.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,12 @@ def run_stats(ds, **kwargs):
sample_set = scripts.cellranger_multi.gather_sample_set_info(sample)
cmd = "bsub -J {}_{}_multi -o {}_{}_multi.out /igo/work/nabors/tools/venvpy3/bin/python /igo/work/igo/igo-demux/scripts/cellranger_multi.py ".format(project_id, sample, project_id, sample)
# update sample_set based on file checking result
if "ch" in sample_set:
if sample_set["ch"] is not None:
sample_name = sample_set["ch"]
del sample_set["ch"]
elif "fb" in sample_set:
elif sample_set["fb"] is not None:
sample_name = sample_set["fb"]
del sample_set["fb"]
del sample_set["fb"]
del sample_set["ch"]
if ch:
sample_set["ch"] = sample_name
if fb:
Expand All @@ -92,7 +92,7 @@ def run_stats(ds, **kwargs):
cmd = cmd + "-{}={} ".format(key, value)
cmd = cmd + "-genome={}".format(species)
if archive:
cmd = cmd + "-archive"
cmd = cmd + " -archive"
print(cmd)
subprocess.run(cmd, shell=True)

Expand Down

0 comments on commit d50210b

Please sign in to comment.