feat: automatic conda environment handling #1469
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changes proposed in this Pull Request
Add option to let snakemake handle all conda environment handling based on pinned envs and os
Makes it unneccessary for a user to wrangle with dependencys and envrionments at all
Only snakemake would have to be installed. Then you could run
snakemake ... --sdm conda
and theA few things to discuss:
environment.yaml
with snakemake (was the setting before, not sure if anyone uses it). Also it is not robust as only pinned envs are checked by the CI.run.env=pinned
andrun.env=base
).--sdm conda
is not added, the setting will do nothing.--sdm conda
by default (or if set in config, e.g.deployment_method=pinned
)._helpers.py
needs some dependencies and is loaded before snakemake handles the environments. But this module would benefit from being broken up anyway.Checklist
config/config.default.yaml
.doc/configtables/*.csv
.doc/release_notes.rst
is added.