Error when running download_DB command - wget command
vinisalazar opened this issue · comments
Hi,
I was trying to use your program. I installed all the dependencies and had both blast
and diamond
installed. However, when I ran the superfocus_downloadDB -a <aligner>
command for either aligner, I got an error, and the cause for it was not having wget
installed.
I'm installing SUPER-FOCUS on a Mac computer, therefore wget
is not installed by default. The default command for downloading in OS X is curl
.
My problem was easily solved by installing wget
command with brew
.
However, to prevent this problem to future Mac users, I see some potential solutions:
- replacing
wget
withcurl
in thesuperfocus_downloadDB
script. - adding a statement like
sys.platform
oros.uname()
to check the operating system and use the appropriate command. - Incrementing the error message to say something like "Do you have
wget
installed? If not, you can install it withbrew
." (Least recommended).
I'd be happy to contribute with a PR for that.
I also submitted #19 which should help with installation.
bw,
V
@vinisalazar thanks for the suggestion. I will include it in the next release.
@vinisalazar I have merged the suggested changes. Thanks!
happy to help. I hope to make time for further contributions even if they are just issues 🙂