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

Inject some modules in Snakefile file resolve scope w/o import declaration, e.g. os, sys,.. #553

Closed
iromeo opened this issue Oct 21, 2024 · 0 comments

Comments

@iromeo
Copy link
Contributor

iromeo commented Oct 21, 2024

Here should be no unresolved os error:

os.environ["THRESHOLD"] = "1.0"

rule a:
    input:
        "test.in"
    output:
        "test.out"
    params:
        threshold=os.environ["THRESHOLD"]
    log:
        "logs/a.log"
    conda:
        "envs/software.yaml"
    shell:
        "echo {params.threshold} > {output}"

Suggested list: os, sys, Path

@iromeo iromeo added this to the next next major milestone Oct 22, 2024
@iromeo iromeo changed the title Add some modules in scope of Snakefile w/o import, e.g. os, sys,.. Inject some modules in Snakefile file resolve scope w/o import declaration, e.g. os, sys,.. Oct 22, 2024
@iromeo iromeo closed this as completed in 5ab8462 Oct 22, 2024
iromeo added a commit that referenced this issue Oct 22, 2024
@iromeo iromeo modified the milestones: next next major, 2024.2.2 Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant