I recommend `genome_updater too, it can re-download failed files. I've used it to download virus genomes.
Here are some useful suggestions that may help. Yes, we met many times with unstable network connections.
unexpected EOF error
While some files could corrupt during downloading, we recommend checking
sequence file integrity using seqkit (gzip -t failed for some files in
my tests).
List corrupted files
# corrupted files find $genomes -name "*.gz" \ | rush 'seqkit seq -w 0 {} > /dev/null; if [ $? -ne 0 ]; then echo {}; fi' \ > failed.txt # empty files find $genomes -name "*.gz" -size 0 >> failed.txtDelete these files:
cat failed.txt | rush '/bin/rm {}'Redownload these files. URLs can be found in files like
2021-09-30_13-32-30_url_downloaded.txt, you can extract URLs usinggrep -f failed.txt *url_downloaded.txtor something else, and batch redownload them usingparallel.