Skip to content

Commit

Permalink
style: fix typos in command
Browse files Browse the repository at this point in the history
  • Loading branch information
slsevilla committed Sep 28, 2023
1 parent 4064e02 commit 195a3d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion workflow/Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ rule all:
# create jobby tables
## command for jobby: bash scripts/_run_jobby_on_snakemake_log logs/snakemake.log _jobby.py | tee logs/snakemake.log.jobby | cut -f2,3,18 > logs/snakemake.log.jobby.short
## command for spooker: bash scripts/_spooker /data/sevillas2/carlisle/spook1 | tee logs/spooker.log
jobby_cmd = join(SCRIPTSDIR, '_run_jobby_on_snakemake_log') + " " + join('logs', 'snakemake.log') + " _jobby.py | tee " + join('logs', 'snakemake.log.jobby') + " | cut -f2,3,18 > " + join('logs', 'snakemake.log.jobby.short')
jobby_cmd = join(SCRIPTSDIR, '_run_jobby_on_snakemake_log') + " " + join('logs', 'snakemake.log') + " " + join(SCRIPTSDIR, '_jobby.py') + " | tee " + join('logs', 'snakemake.log.jobby') + " | cut -f2,3,18 > " + join('logs', 'snakemake.log.jobby.short')
spook_cmd = join(SCRIPTSDIR, '_spooker') + " " + WORKDIR + " | tee " + join('logs', 'spooker.log')

onsuccess:
Expand Down
3 changes: 1 addition & 2 deletions workflow/scripts/_run_jobby_on_snakemake_log
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@

# prep the logs by pulling IDs
snakemakelog=$1
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
jobids=$(grep --color=never "^Submitted .* with external jobid" $snakemakelog | awk '{print $NF}' | sed "s/['.]//g" | sort | uniq | tr "\\n" " ")
jobidswc=$(echo $jobids | wc -c)

# run jobby script
module load python
if [ "$jobidswc" != "1" ];then ${SCRIPT_DIR}/$2 $jobids; fi
if [ "$jobidswc" != "1" ];then python $2 $jobids; fi

0 comments on commit 195a3d0

Please sign in to comment.