Skip to content

Commit

Permalink
fix: correct github action issues with escape and snakemake args
Browse files Browse the repository at this point in the history
  • Loading branch information
rroutsong committed Feb 8, 2024
1 parent 606b446 commit dce0ff9
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 145 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
logs
**.tests/illumnia_demux/dry_run_out
.snakemake
site
output
**.tests/dry_run_out
.tests/illumnia_demux/dry_run_out
.tests/dry_run_out
136 changes: 0 additions & 136 deletions .tests/dry_run_out/paired_end/.config/config_job_0.json

This file was deleted.

4 changes: 2 additions & 2 deletions scripts/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ def get_mounts(*extras):
file_to, file_from, mode = str(bind), str(bind), 'rw'
mounts.append(file_from + ':' + file_to + ':' + mode)

mounts.append('\$TMPDIR:/tmp:rw')
mounts.append(r'\$TMPDIR:/tmp:rw')

return ','.join(mounts)

Expand Down Expand Up @@ -266,7 +266,7 @@ def exec_pipeline(configs, dry_run=False, local=False):
top_env['SNK_CONFIG'] = str(config_file.absolute())
top_env['SINGULARITY_CACHEDIR'] = str(Path(this_config['out_to'], '.singularity').absolute())
this_cmd = [
"snakemake", "-pr",
"snakemake", "-p", "-r",
"--use-singularity",
"--rerun-incomplete",
"--keep-incomplete",
Expand Down
2 changes: 1 addition & 1 deletion utils
8 changes: 4 additions & 4 deletions workflow/qc.smk
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@ rule fastqc_trimmed:
fqreport = config['out_to'] + "/" + config["project"] + "/{sids}/fastqc_trimmed/{sids}_trimmed_R{rnums}_fastqc.zip",
params:
output_dir = lambda w: config['out_to'] + "/" + config["project"] + "/" + w.sids + "/fastqc_trimmed/",
tmpdir = lambda wc: '/tmp/' + wc.sids,
containerized: config["resources"]["sif"] + "weave_ngsqc_0.0.2.sif"
threads: 4
resources:
mem_mb = 8096,
disk_mb = int(500e3) if config['use_scratch'] else 0,
tmpdir = lambda wc: '/tmp/' + wc.sids,
mem_mb = 8096,
disk_mb = int(500e3) if config['use_scratch'] else 0,
log: config['out_to'] + "/logs/" + config["project"] + "/fastqc_trimmed/{sids}_R{rnums}.log"
shell:
"""
Expand All @@ -74,7 +74,7 @@ rule fastqc_trimmed:
find "${{tmp}}" \\
-type f \\
\\( -name '*.html' -o -name '*.zip' \\) \\
-exec cp {{}} {params.outdir} \\;
-exec cp {{}} {params.output_dir} \\;
"""


Expand Down

0 comments on commit dce0ff9

Please sign in to comment.