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

7.3.8 claims output files have changed that haven't #1576

Closed
pschloss opened this issue Apr 8, 2022 · 6 comments
Closed

7.3.8 claims output files have changed that haven't #1576

pschloss opened this issue Apr 8, 2022 · 6 comments
Labels
bug Something isn't working

Comments

@pschloss
Copy link

pschloss commented Apr 8, 2022

Snakemake version
7.3.8

Describe the bug
I'm running into an issue where when I dry-run (or run for real) a rule I get this message...

The code used to generate one or several output files has changed:
    To inspect which output files have changes, run 'snakemake --list-code-changes'.
    To trigger a re-run, use 'snakemake -R $(snakemake --list-code-changes)'.

When I look at the files that have changes, their time stamps are newer than the code used to generate them and the files have time stamps that are in the correct order. Some of these files take a long time to generate and I'd really rather not have to recreate them.

Also, if the files have changed, then why wouldn't the DAG indicate that they need to be created? The files that supposedly have changes aren't getting updated the next time I run a rule.

As an example, snakemake --list-code-changes includes data/references/silva.v4.align and data/references/silva.v4.tax. Here's the rule...

rule silva:
  input:
    script="code/get_silva.sh"
  output:
    "data/references/silva.v4.align",
    "data/references/silva.v4.tax"
  resources:  
    cpus=8,
  shell:
    """
    {input.script} {resources.cpus}
    """

Here is the ls -lth output...

-rw-rw-r-- 1 pschloss schloss-lab 589K Apr  2 09:29 data/references/silva.v4.tax
-rw-rw-r-- 1 pschloss schloss-lab  53M Apr  2 09:29 data/references/silva.v4.align
-rwxrwxr-x 1 pschloss schloss-lab 1.4K Mar 29 09:52 code/get_silva.sh

googling the error message hasn't gotten me very far and I haven't been able to get very far. It sounds like this might be related to #1513

@pschloss pschloss added the bug Something isn't working label Apr 8, 2022
@SichongP
Copy link
Contributor

Do you experience this issue with earlier versions of snakemake?

@pschloss
Copy link
Author

Thanks @SichongP - I just went back and tried 7.2.1, 7.3.1, 7.3.3, 7.3.5, and 7.3.7 in addition to 7.3.8 with the same result.

@SichongP
Copy link
Contributor

Hmmm I wasan't able to reproduce this error. In your .snakemake/metadata folder there should be a file corresponding to this rule, which should have record of the shell command that was run, in addition to rule name, input, output, etc. Can you check that file and confirm that there indeed has been no changes?

@pschloss
Copy link
Author

Thanks - I wasn't aware of the metadata directory and files. It looks like things might have gotten out of alignment there even if the output files weren't updated and the code files weren't changed.

@pschloss
Copy link
Author

pschloss commented Oct 11, 2022 via email

@pvandyken
Copy link
Contributor

Closing, as it looks like this is resolved, please reopen if there's more issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants