Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to ignore Snakemake's "params have changed since last execution"?

Tags:

snakemake

Some very late jobs of a workflow crashed due to a conda environment not being active.

Now, when I try to rerun using snakemake deploy_all --ignore-incomplete all jobs are rerun straight from the beginning, with the following reason:

Reason: Params have changed since last execution

How can I make snakemake not rerun all rules, and accept whatever input there is already?

This behaviour change seems to be new since version 7.8.0.

like image 776
Cornelius Roemer Avatar asked Oct 18 '25 02:10

Cornelius Roemer


1 Answers

The rerun behaviour seems to have changed in v7.8.0, see this announcement: https://github.com/snakemake/snakemake/issues/1694

To get the old behaviour back, one needs to append

--rerun-triggers mtime

--touch may work sometimes, but sometimes not.

When I ran --touch the rerun reason changed to

reason: Code has changed since last execution
like image 166
Cornelius Roemer Avatar answered Oct 22 '25 06:10

Cornelius Roemer