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

Retry to download failed batches, Issues #16 & #31 #36

Merged
merged 6 commits into from
Nov 2, 2021

Conversation

LasKru
Copy link
Contributor

@LasKru LasKru commented Nov 1, 2021

If the download of a batch failes, BCdatabaser now tries to download it again after 60 seconds, up to a maximum of three tries. As a result, the tool does not have to be completely rerun in the event of brief connection interruptions, which is particularly helpful when working with large databases.

You can find a Docker image of this branch here.

A logfile from a run with 5 downloading errors and used command (trnl, all viridiplantae) can be found here. You can find the errors by searching for "WARNING".

This my first time contributing to someone elses project and my first time writing perl code, I'm open to suggestions of all kinds.

Copy link
Member

@iimog iimog left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome! Thank you for the contribution. It is very desirable to make bcdatabaser more robust, particularly regarding download errors. These are very often temporary and retrying after a minute is a good idea. Also thanks for cleaning up some whitespace errors and fixing the link in the README.

- File::Path
- [NCBI::Taxonomy](https://github.com/greatfireball/NCBI-Taxonomy)

External Programs:
- [NCBI eutils](https://www.ncbi.nlm.nih.gov/books/NBK25500)
- [KronaTools](https://github.com/marbl/Krona)
- [SeqFilter](https://github.com/BioInf-Wuerzburg/SeqFilter)
- [dispr](https://github.com/molbiodiv/metabDB/issues)
- [dispr](https://github.com/douglasgscofield/dispr)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for catching that!

@iimog iimog merged commit dd109b0 into molbiodiv:master Nov 2, 2021
@LasKru
Copy link
Contributor Author

LasKru commented Nov 2, 2021

Thanks for the merge! The whitespace fixes weren't intentional, so I guess the credit goes to my text editor. I found the problem with the link to dispr while trying a native installation, because i didn't have much experience in working with docker.

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

Successfully merging this pull request may close these issues.

None yet

2 participants