Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

download_image rule should specify input file #45

Open
johnbradley opened this issue Feb 6, 2023 · 0 comments
Open

download_image rule should specify input file #45

johnbradley opened this issue Feb 6, 2023 · 0 comments

Comments

@johnbradley
Copy link
Contributor

johnbradley commented Feb 6, 2023

The download file should specify config["list"] as an input:

rule download_image:
output:'Images/{image}.jpg'
params: download_link = lambda wildcards: get_name_to_url()[wildcards.image]
log: 'logs/download_image_{image}.log'
container:
'docker://quay.io/biocontainers/gnu-wget:1.18--h7132678_6'
shell: 'wget -O {output} {params.download_link} > {log} 2>&1'

Something like the following should be added:

   input: config["list"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant