Skip to content

Commit

Permalink
Add resources tokens for downlowd rules
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaumecharbonnier committed Jan 25, 2024
1 parent 2076e60 commit 7144bcd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/snakemake/rules/sra-tools.smk
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ rule sra_tools_fastq_dump_se_extra:
ext="fastq|fastq.gz"
conda:
"../envs/sra-tools.yaml"
resources:
fastqdump_token=1
threads:
1
shell:
Expand Down Expand Up @@ -66,6 +68,8 @@ rule sra_tools_fastq_dump_pe_extra:
"../envs/sra-tools.yaml"
threads:
1
resources:
fastqdump_token=1
shell:
"fastq-dump --split-files {params} --outdir `dirname {output[0]}` {wildcards.srr}"

Expand Down
4 changes: 4 additions & 0 deletions src/snakemake/rules/wget.smk
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ rule wget_protocol_extra:
wildcard_constraints:
tool="wget/",
protocol="http|https|ftp"
resources:
wget_token=1
shell:
"wget {params.extra} --output-file={log} --output-document={output} {wildcards.protocol}://{wildcards.path}"

Expand Down Expand Up @@ -66,5 +68,7 @@ rule wget_extra:
"../envs/wget.yaml"
wildcard_constraints:
tool="wget/"
resources:
wget_token=1
shell:
"wget --output-file={log} --output-document={output} {params.extra}"

0 comments on commit 7144bcd

Please sign in to comment.