Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use --delete-all-output instead of creating a clean rule #10

Open
andrewsanchez opened this issue Apr 5, 2019 · 1 comment
Open

Use --delete-all-output instead of creating a clean rule #10

andrewsanchez opened this issue Apr 5, 2019 · 1 comment

Comments

@andrewsanchez
Copy link
Member

To remove all files created by snakemake as output files to start from scratch, you can use

$ snakemake some_target --delete-all-output

https://snakemake.readthedocs.io/en/stable/project_info/faq.html#how-do-i-remove-all-files-created-by-snakemake-i-e-like-make-clean

andrewsanchez referenced this issue Apr 5, 2019
The force flag is unnecessary and perhaps encouraging of bad habits.
@tkphd
Copy link
Member

tkphd commented Apr 5, 2019

Cool! It would definitely be useful to introduce this as the Snakemake alternative to rm -f, which is an intrinsically unsafe command to show beginners.

andrewsanchez added a commit to andrewsanchez/hpc-python that referenced this issue May 10, 2019
This reverts commit 8b0c2e1.

Leave it this way for now; otherwise, Snakemake will complain if the files
aren't present. See hpc-carpentry#10 for a better long-term solution.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants