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

Remove mention of protected() because it's not very useful #32

Open
tbooth opened this issue Aug 10, 2022 · 1 comment
Open

Remove mention of protected() because it's not very useful #32

tbooth opened this issue Aug 10, 2022 · 1 comment

Comments

@tbooth
Copy link
Collaborator

tbooth commented Aug 10, 2022

Comment from Ezra:

Lesson “Cleaning up” – protected files. I’ve never used this functionality before and found it difficult to explain why it would be useful, as it stops the execution of the workflow. Maybe a better option would be to use an ancient() function, which means snakemake does not check the timestamp of the file.

@tbooth
Copy link
Collaborator Author

tbooth commented Aug 11, 2022

I'm not sure about this. Stopping the workflow is exactly the point of the functionality, and I have found it somewhat useful in the past.
I agree that ancient() is a good thing to cover, but the semantics are not that simple - if an ancient file is used as an input to a rule AND there is no known rule to make that file then Snakemake will ignore the timestamp. However, if Snakemake sees a rule to make the ancient file, and any inputs to that rule are newer, it will re-run the rule and regenerate the file.

I'll come back to this one.

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

1 participant