BLAST 2.3.0 Linux
1
0
Entering edit mode
8.2 years ago

I installed blast 2.3.0 following this guide. But when I run blastn it notified

The program 'blastn' is currently not installed. You can install it by typing: sudo apt-get install ncbi-blast+"

But I want to install Blast 2.3.0, and If I type sudo apt-get install ncbi-blast+ it will install blast 2.2.31

Please Help me.

blast • 4.1k views
ADD COMMENT
0
Entering edit mode
8.2 years ago
Charles Plessy ★ 2.9k

It looks like you are using Ubuntu or a derivative. On this distribution, the command-line interface will attempt to guess which package to install, if you type the name of a program that is not available.

Available programs are in the directories listed by the command echo $PATH. Therefore, either you need to add in your PATH the blastn program that you compiled, or you need give the full path to your command.

In the documentation that you cited in your question, there are explanations on how to add blastn to you PATH, see here.

ADD COMMENT
0
Entering edit mode

Thank you. I use Ubuntu. I did that, but nothing changed. It still notified blastn is not installed :(

ADD REPLY
0
Entering edit mode

Probably the contents of the PATH variable still does not reflect where the blastn file is located.

As an alternative to configure the PATH variable, you can call the program using its absolute path. For instance, if your home directory is /home/shiroemonmadeon, and if you unpacked the ncbi-blast-2.3.0+-x64-linux.tar.gz archive in your home directory, then you would be able to run the blastn program by typing /home/shiroemonmadeon/ncbi-blast-2.3.0+/bin/blastn.

ADD REPLY
0
Entering edit mode

I tried. but it didn't run

ADD REPLY
0
Entering edit mode

If you would like efficient help from me or others in this forum, you really need to provide more information, otherwise, nothing can be done. First, what did you download exactly, and where did you unpack that file?

ADD REPLY
0
Entering edit mode

I downloaded and unpacked. I installed Blast 2.3.0. My problem: I only run BLAST when I type :

shiroemon@shiroemon:~$ cd /home/shiroemon/
shiroemon@shiroemon:~$ ./ncbi-blast-2.3.0+/bin/blastn -db NewDb -query sample.txt

I want to run Blast without typing ./ncbi-blast-2.3.0+/bin/ before. ie How to run BLAST by openning cmd and type:

shiroemon@shiroemon:~$ blastn -db NewDb -query sample.txt
ADD REPLY
0
Entering edit mode

In the documentation (the link I gave before), there is the following command:

export PATH=“$PATH:$HOME/ncbi-blast-2.2.29+/bin”

But it needs two changes to make it work: first, correct the version number (2.3.0 instead of 2.2.29), and second replace the typographical quotation marks () by their ASCII equivalent (").

export PATH="$PATH:$HOME/ncbi-blast-2.3.0+/bin"
ADD REPLY
0
Entering edit mode

aaaaa. THANK YOU SO MUCHHHH. The problem is ("). OMG. THANK YOU!!!!!

ADD REPLY
0
Entering edit mode

ADD REPLY

Login before adding your answer.

Traffic: 2609 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