snakemake / snakemake-executor-plugin-slurm

A Snakemake executor plugin for submitting jobs to a SLURM cluster
MIT License
18 stars 19 forks source link

Log file and comment string are not escaped #105

Open denisalevi opened 5 months ago

denisalevi commented 5 months ago

https://github.com/snakemake/snakemake-executor-plugin-slurm/blob/cf0560cfac101af9600d7a1f7e3e21f5485d47c4/snakemake_executor_plugin_slurm/__init__.py#L74-L77

the --comment and --output flags are not escaped, which is problematic for wildcards with spaces. Modifying it to --output '{slurm_logfile}' and --comment '{job.name}' fixed the issue for me.