ncbi-genome-download icon indicating copy to clipboard operation
ncbi-genome-download copied to clipboard

Progress bar in bash

Open joshbaldwin opened this issue 8 years ago • 2 comments

Since I do not use this software for biological work, I'm not sure the value. But during my testing if I downloaded a lot of files, I had no idea if the program was working or not unless I looked my file system to see the new directories. Would a progress bar be something you are interested in?

Something like this sample output: Progress: |█████████████████████████████████████████████-----| 90.0% Complete

joshbaldwin avatar Jan 01 '17 16:01 joshbaldwin

Hi, Using also ncbi-genome-download a lot for biological banks update, what about using progressbar2 ? https://pypi.python.org/pypi/progressbar2 It looks quite simple.

Regards

horkko avatar Jan 04 '17 15:01 horkko

Provided this does not interfere with running this from a script, I like the idea. Might be a bit tricky to implement, as we are reading the assembly_summary.txt file line by line, and don't really know how many records we need to download until that is done. Then, we start a process pool to run the actual downloads in parallel, so syncing this up with whatever part of the code does the download might also be non-trivial.

kblin avatar Feb 08 '17 13:02 kblin