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

Snakemake requires --cores (5.21.0) #83

Open
KasperThystrup opened this issue Jan 15, 2021 · 2 comments
Open

Snakemake requires --cores (5.21.0) #83

KasperThystrup opened this issue Jan 15, 2021 · 2 comments

Comments

@KasperThystrup
Copy link

KasperThystrup commented Jan 15, 2021

With the current and earlier versions of snakemake, executing a pipeline without the --cores argument will yield an Error.
While users properly quickly becomes aware of this issue, it is something I think you might consider to address in the guide e.g. in 2 - Snakefiles - How do I set up default settings for snakemake and How do I write a simple workflow?

@sdruskat
Copy link

sdruskat commented Dec 5, 2022

Just stumbled across this.

For this episode, I'd suggest adding -c 1 for each snakemake call, and explaining after the first snakemake? The alternative would be to introduce either a custom shell alias (too complicated IMHO), or introduce configfile right after the first call (with a potential error showing at the user's end)?

EDIT: It seems that cores aren't yet configurable via configfile...

@sdruskat
Copy link

sdruskat commented Dec 5, 2022

Perhaps setting a temp variable may solve this, so only the instruction to set the variable needs to be added?

$> alias snakemake='snakemake -c1'

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

2 participants