Error: legacy_blast.pl command not found
1
0
Entering edit mode
5.1 years ago
venura ▴ 70

Hi,

I am trying to run the following command

legacy_blast.pl blastall -i test.fa -d StDB –p blastp –e 1e-10 –b 5 –v 5 –m 8 –o Sol.blast

but getting following error ;

legact_blast.pl: command not found

I am using ncbi-blast+ 2.2.25 . Can someone help me on this regard? Thank you!

blast • 1.2k views
ADD COMMENT
0
Entering edit mode

Hello venura!

We believe that this post does not fit the main topic of this site.

found a solution.

For this reason we have closed your question. This allows us to keep the site focused on the topics that the community can help with.

If you disagree please tell us why in a reply below, we'll be happy to talk about it.

Cheers!

ADD REPLY
0
Entering edit mode

You don't need to close a post to indicate closure. You accepted the answer which signals closure. Closing post is an action for mods to deal with off-topic/incomplete posts.

ADD REPLY
2
Entering edit mode
5.1 years ago
ATpoint 85k

It is not in PATH. Please google what PATH is in Unix systems and how to add executables to it. Alternatively, it it not executable, so chmod +x your.pl might help.

ADD COMMENT
0
Entering edit mode

blast is already in the PATH and perl script is executable. Still I am getting the same error :(.

ADD REPLY
0
Entering edit mode

What happens if you just run legacy_blast.pl? That should print the help dialog to screen.

ADD REPLY
0
Entering edit mode

Getting the same error . legacy_blast.pl command not found

ADD REPLY
0
Entering edit mode

Interesting. So something is not properly set up.

I see

$ legacy_blast.pl 
NAME
    legacy_blast.pl - Convert BLAST command line invocations from NCBI C
    toolkit's implementation to NCBI C++ toolkit's implementation. 

(truncated)

What does which legacy_blast.pl produce?

ADD REPLY
0
Entering edit mode

No output. nothing at all:|

ADD REPLY
0
Entering edit mode

I suggest you check your $PATH and the location of where the bin directory is in the blast package. Reconcile those if needed. Otherwise use full path to legacy_blast.pl location and see if you can get the in-line help to show up.

ADD REPLY
0
Entering edit mode

When I use the full path as you suggested, I get the help file.

When I echo, i get the following #path/home/venura/miniconda3/bin:/home/venura/miniconda3/condabin:/home/venura/bin:/home/venura/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games

ADD REPLY
2
Entering edit mode

That tells us that your blast bin directory is not in your $PATH. Add it by doing export PATH=$PATH:/full_path_to_blast_bin and you should be all set.

ADD REPLY
0
Entering edit mode

Thank you! I know its not possible. But, I am darn sure that blast was there in the $PATH earlier :(.

ADD REPLY

Login before adding your answer.

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