Snakemake-Profiles / slurm

Cookiecutter for snakemake slurm profile
MIT License
126 stars 44 forks source link

Ensure output path for Slurm logs exists #8

Closed boulund closed 6 years ago

boulund commented 6 years ago

This PR contains two minor improvements:

I hope someone finds this useful.

johanneskoester commented 6 years ago

@percyfal for me this looks ready to merge. But the slurm profile is your baby, so please let us know if you agree.

percyfal commented 6 years ago

Minor change needed when checking the output and error arguments; they are always initialized to None and os.makedirs will fail. Otherwise LGTM.

boulund commented 6 years ago

As the output and error keys always exist in arg_dict we don't need to check for their existence, but instead just check if they're set to None. Do you think it looks OK?

percyfal commented 6 years ago

Yes, you're right, let's settle for that.