3

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.

vid1998
  • 71
  • 1
  • 5

1 Answers1

1

You can use sys.argv within your snakefile to parse the command line parameters.

Jan Schreiber
  • 203
  • 2
  • 7