Skip to content

Conversation

lguerard
Copy link
Contributor

@lguerard lguerard commented May 19, 2025

Probably not the most pretty way, but this allows to have the conda_env as a variable.

Could be improved by adding the environment name as an argument to snakemake, but I don't know enough about snakemake. Do you know if that's possible ?

@quentinblampey
Copy link
Collaborator

Hi @lguerard, this is a good idea! I think it would be more natural to set this parameter in the config file directly.

For instance, if you set conda_env in the config, you could access it in the Snakefile via config.get("conda_env", "sopa") (which will default to sopa if conda_env is not set).
What do you think?

@lguerard
Copy link
Contributor Author

That seems way cleaner than my way indeed!

Do you want to do it or should i do it?

@quentinblampey
Copy link
Collaborator

If you want to do it then go for it :)

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

Successfully merging this pull request may close these issues.

2 participants