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
Using environment variables as configuration parameters #2166
Comments
I've tried the below as a potential work around and it gave a slightly different error: Snakefile
config.yml
Error message:
|
I don't think this is a bug, it's the expected behavior of snakemake in interpreting curly braces. I think a solution could be to escape curly braces by doubling them. E.g in the config file use:
alternatively, at the beginning of the snakefile you could add something like:
Then use |
Thanks @dariober Attempt 1Only replacing:
with:
in Attempt 2The files below gave the same error as above.
Attempt 3The following worked:
|
However, what would you suggest if I need to work with something like |
I vaguely remembered a similar issue and here it is https://stackoverflow.com/questions/61194156/use-special-symbols-in-snakemake-parameter-section. Maybe that is the least clunky solution as there is no need for testing strings or fiddling with curly braces. It should address also cases like
|
Many thanks @dariober It worked! I am pasting the full example below for reference:
|
Snakemake version
7.24.0
Describe the bug
Cannot use environment variables as configuration parameters. See below.
Logs
Minimal example
Snakefile
config.yml
Error message:
Additional context
The text was updated successfully, but these errors were encountered: