Is there any way to access the --cores argument in a snakemake workflow?
0
0
Entering edit mode
3.8 years ago
curious ▴ 820

f I run snakemake --cores 56, is there anyway to access the argument inside a snakemake rule?

I realize I could have a configfile value, but I am hoping there is something like args.cores that would give me what it passed at the command line. I crossposted to stack overflow several days ago but was not able to find help

snakemake • 850 views
ADD COMMENT
0
Entering edit mode

workflow.cores would work for you inside the run block

ADD REPLY

Login before adding your answer.

Traffic: 1489 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6