|
current_basedir = str(workflow.current_basedir), |
|
benchmark: |
|
"benchmarks/upload_to_s3/{remote_file}.txt" |
|
log: |
|
"logs/upload_to_s3/{remote_file}.txt" |
|
shell: |
|
r""" |
|
exec &> >(tee {log:q}) |
|
|
|
{params.current_basedir}/../../../shared/vendored/scripts/upload-to-s3 \ |
Usage of workflow.current_basedir in upload.smk (first and last lines above) could be simplified. Two options:
-
Use {workflow.basedir}
-
Use {workflow.current_basedir!s}
pathogen-repo-guide/ingest/build-configs/nextstrain-automation/upload.smk
Lines 30 to 39 in 4784a83
Usage of
workflow.current_basedirin upload.smk (first and last lines above) could be simplified. Two options:Use
{workflow.basedir}This is used elsewhere.
pathogen-repo-guide/ingest/rules/fetch_from_ncbi.smk
Line 154 in 4784a83
Con: this makes the snakefile it appears in less portable in some ways, as the path is now based on the top-level
Snakefileinstead of the current file.Use
{workflow.current_basedir!s}workflow.current_basedirin shell block snakemake/snakemake#3796