Snakemake string pattern formatting code normally used for --cluster-config is adapted and added to slurm profile to do string formatting using the job_properties dictionary. This addresses #40 where the keywords in braces were not substituted for values. All values in sbatch_options would be converted if applicable.
For example, the command snakemake --profile slurm alone would evaluate the following output string pattern in the following yaml file, if its path is given as the cluster_config input for cookiecooker (i.e. assigned to CLUSTER_CONFIG in slurm-submit.py).
On second thought, I moved all string formatting functions to slurm_utils.py? Also should the formatting function be applied to the whole sbatch_options dictionary or just the cluster_config dictionary?
Snakemake string pattern formatting code normally used for
--cluster-config
is adapted and added to slurm profile to do string formatting using thejob_properties
dictionary. This addresses #40 where the keywords in braces were not substituted for values. All values insbatch_options
would be converted if applicable.For example, the command
snakemake --profile slurm
alone would evaluate the following output string pattern in the following yaml file, if its path is given as thecluster_config
input for cookiecooker (i.e. assigned toCLUSTER_CONFIG
inslurm-submit.py
).