This is a test version of Biostars. For the public version, visit https://www.biostars.org.
problem running local blast after downloading on MacOSX

Am newish to linux but very familiar with BLAST and I need to use BLAST locally through command line on my MacOSX (Yosemite)

I downloaded the BLAST+ using ncbi-blast-2.2.18+.dmg installer and following instructions on NCBI website. It installed the files into usr/local/ncbi/blast/bin but when I try and run any of the blast programs (eg tblastn) I get the following error

-bash: tblastn: command not found

I can only run it from within the usr/local/ncbi/blast/bin directory where the programs reside

I have (as far as I can tell) followed various instructions about setting the paths but still no luck.

Any help greatly appreciated

blast

1 answer

In a terminal, type:

echo $PATH

and press Enter. If the output does not include usr/local/ncbi/blast/bin then your path is not set correctly.

If you have edited one of the "dotfiles" to set the path (e.g. .profile or .bashrc), you need to source the file or open a new terminal for the changes to take effect.

Thanks, when I type

echo $PATH

it returned /Users/st*******ey/ncbi/blast/bin:??

so clearly a path problem. I followed the various instructions (including those on BLASTS own instrctions) to change the path by putting things in .bash_profile (.bashrc is empty)

however what should be in there to correct the path issue?

Thanks

Ok I have sorted it - I worked it out myself by trial and error.

Thanks for your help- it got me there.

Log in to answer this question.