Question: Problem Running Clustalomegacommandline
0
gravatar for laukaitis.e
6.6 years ago by
laukaitis.e0 wrote:

I'm trying to run an alignment of HA subtypes using ClustalOmega imported from Biopython, and I keep encountering the same error. Here's the code:


from Bio.Align.Applications import ClustalOmegaCommandline
in_file = 'H1.fasta' 
out_file = 'H1_aligned.fasta' 
cline = ClustalOmegaCommandline(infile = in_file, outfile = out_file, verbose = True, auto = True)
cline()

...and here's the error it generates:

ApplicationError: Command 'clustalo -i H1.fasta -o H1_aligned.fasta --auto -v' returned non-zero exit status 127, '/bin/sh: clustalo: command not found'

I've tried re-installing Biopython multiple times with no change. Any suggestions?

clustalw biopython error • 3.0k views
ADD COMMENTlink modified 6.5 years ago by Andreas2.4k • written 6.6 years ago by laukaitis.e0
4

Is Clustal Omega installed?

ADD REPLYlink written 6.6 years ago by Andreas2.4k

That was the problem!! Thank you!

ADD REPLYlink written 6.6 years ago by laukaitis.e0

Andreas - do you want to post that as an answer, or should we just close this question?

ADD REPLYlink written 6.5 years ago by Peter5.8k
2
gravatar for Andreas
6.5 years ago by
Andreas2.4k
Singapore
Andreas2.4k wrote:

As suggested by Peter I'll post my comment as answer and elaborate a bit, in case anyone else runs into the same problem:

If a shell command returns 'command not found' it simply means that the executable can't be found. This usually happens when there's a problem with your PATH, if the program in question is not installed or if there was a typo in the command name. In this case, the guess was that Clustal Omega was simply not installed (by default, external programs like Clustal Omega don't come installed with Biopython).

Andreas

ADD COMMENTlink written 6.5 years ago by Andreas2.4k

You can mark this as an accepted answer now, I think you get a badge of honour then as a self learner or something like that ;)

ADD REPLYlink written 6.5 years ago by Peter5.8k
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 806 users visited in the last hour