Reputation: 71
How is it possible to access all configuration values and corresponding parameters passed by command line to snakemake, within the snakefile?
For example by running:
snakemake -p --use-conda -j 16 --snakefile ../../Snakefile --configfile pipeline-test.config.yaml
In particular I wish obtain the number of available cores within the snakefile to be able to perform some computation with that value.
Upvotes: 3
Views: 94
Reputation: 233
You can use sys.argv
within your snakefile to parse the command line parameters.
Upvotes: 1