This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Is there any way to access the --cores argument in a snakemake workflow?

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

workflow.cores would work for you inside the run block

0 answers

No answers yet.

Log in to answer this question.