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

checkpointing #39

Closed
kimh11 opened this issue Feb 10, 2021 · 2 comments
Closed

checkpointing #39

kimh11 opened this issue Feb 10, 2021 · 2 comments

Comments

@kimh11
Copy link

kimh11 commented Feb 10, 2021

Hi Mikkel,

Thanks for a great pipeline! I've conda installed paleomix on a cluster and running the bam pipeline. Sometimes when my run is interrupted, it starts from where it ended, but sometimes it re-run commands that finished and I'm not sure why.

Could you point me to information on how checkpointing on paleomix bam pipeline works?

Thank you!

@MikkelSchubert
Copy link
Owner

Hi HJ,

Paleomix works like make and should only (re-)run a step in two situations:

  1. If the files generated by the step do not exist, or
  2. If the files generated by a step are older than the input files to that step, i.e. if the input has changed since the step was last run.

What kind of tasks are you seeing re-run?

Next time a run is interrupted, you can try to run the BAM pipeline with the --list-output-files option. That will print a table of all files generated by the pipeline, where the first column represents the status of each file, one of "Ready", "Missing" (1), or "Outdated" (2). If something is going wrong, then you should see already created output files listed as "Outdated" or even as "Missing".

Cheers,
Mikkel

@kimh11
Copy link
Author

kimh11 commented Feb 10, 2021

Hi Mikkel,

Thank you so much! It was the second situation you listed. Some of my files had become outdated because I had updated the time on the files to avoid them being scratched. Totally my fault. All's back to the way it should be! Really appreciate your help!

Best,
HJ

@kimh11 kimh11 closed this as completed Feb 10, 2021
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