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

Feature request: Checkpointing #258

Open
HeatherKates opened this issue Jul 15, 2019 · 4 comments
Open

Feature request: Checkpointing #258

HeatherKates opened this issue Jul 15, 2019 · 4 comments

Comments

@HeatherKates
Copy link

HeatherKates commented Jul 15, 2019

Any chance of adding a check-pointing option to a future release? Because atram assembles multiple reference loci sequentially, if a single run is cancelled for some reason (e.g. memory, time) it is a pain to remove all the output and start from the beginning, or to change the reference only to the unassembled loci. And of course it takes unnecessary resources to reassemble loci. This issue is more challenging if a user is assembling for many samples in parallel and they stopped at different loci. If atram could automatically check whether assemblies exist for a locus and skip that reference, it would make resuming cancelled jobs much easier. Thank you!

@juliema
Copy link
Owner

juliema commented Jul 15, 2019 via email

@rafelafrance
Copy link
Collaborator

I have been giving this some thought and the only way for this to really work would be if we kept the temporary files around. That is, if we use analogs to the --temp-dir and --keep-temp-dir options. It would still require a fair bit of work but at least it would be possible.

So, if we added a --checkpoint=/path/to/checkpoint/dir option that behaves like --temp-dir option and automatically creates a --keep-temp-dir flag. The only difference is that the --checkpoint would automatically delete the data if all iterations completed.

This would also necessitate a --clean-checkpoints option to get rid of old checkpoint data.

Does this sound reasonable?

@HeatherKates
Copy link
Author

HeatherKates commented Sep 13, 2019 via email

@juliema
Copy link
Owner

juliema commented Sep 15, 2019 via email

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

3 participants