blastn Command Not Found
1
0
Entering edit mode
2.1 years ago

Hi. I'm working in Terminal on a shared server to look at some WGS data. I need to use abricate and blastn. The professor who "owns" the computer wants things downloaded by her and then used by everyone else, so she created an abricate_users group, which I belong to.

When I try to run abricate --db resfinder, I get ERROR: Could not find 'blastn'. Please install it and ensure it is in the PATH. I've echoed the $PATH for blastn and this is the output: /home/linuxbrew/.linuxbrew/Cellar/blast/2.14.0/bin/blastn:/home/<myusername>/anaconda3/bin:/home/<myusername>/anaconda3/condabin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin

I'm able to run the following using the full file path: /home/linuxbrew/.linuxbrew/Cellar/blast/2.14.0/bin/blastn -version, so I know the command can at least be used. Any help in running abricate is greatly appreciated!

abricate linux blastn • 1.2k views
ADD COMMENT
4
Entering edit mode
2.1 years ago
GenoMax 154k

this is the output: /home/linuxbrew/.linuxbrew/Cellar/blast/2.14.0/bin/blastn:/home/<myusername>/anaconda3/bin:/home/<myusername>/anaconda3/condabin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin

$PATH variable needs to point to the directory containing the executable so

/home/linuxbrew/.linuxbrew/Cellar/blast/2.14.0/bin/blastn

should actually be

/home/linuxbrew/.linuxbrew/Cellar/blast/2.14.0/bin/
ADD COMMENT
0
Entering edit mode

Thank you! That solved it, and I was able to run the command.

ADD REPLY
0
Entering edit mode

A small educational note: if an answer was helpful, you should upvote it; if the answer resolved your question, you should mark it as accepted.

upvote_bookmark_accept

ADD REPLY

Login before adding your answer.

Traffic: 2853 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6