You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Snakemake has the unfortunate habit of re-running rules when their output is already present. To prevent this, follow these steps:
Run the rule you want with the --dry-run flag. This will show you the "reason" that each rule is being run.
If the reason is:
"Updated input files": Run the rule with the --touch parameter, which will touch output files (mark them up to date without really changing them) instead of running their commands. This is used to pretend that the rules were executed, in order to fool future invocations of snakemake. Fails if a file does not yet exist.
"Software environment definition has changed since last execution": Run the rule with the parameter --rerun-triggers mtimes, which is the traditional way of just considering file modification dates. Otherwise, the default is to use all triggers, which guarantees that results are consistent with the workflow code and configuration but may cause undesirable behavior.
@ksilnoaa, this should help some of the issues we've had. I will add this text to the README for the main branch.
The text was updated successfully, but these errors were encountered:
Snakemake has the unfortunate habit of re-running rules when their output is already present. To prevent this, follow these steps:
--dry-run
flag. This will show you the "reason" that each rule is being run.--touch
parameter, which will touch output files (mark them up to date without really changing them) instead of running their commands. This is used to pretend that the rules were executed, in order to fool future invocations of snakemake. Fails if a file does not yet exist.--rerun-triggers mtimes
, which is the traditional way of just considering file modification dates. Otherwise, the default is to use all triggers, which guarantees that results are consistent with the workflow code and configuration but may cause undesirable behavior.@ksilnoaa, this should help some of the issues we've had. I will add this text to the README for the main branch.
The text was updated successfully, but these errors were encountered: