I am trying to run a tutorial on notebooks and I am receiving this error:
import os
from Bio.Align.Applications import ClustalwCommandline
clustalw = "bin/clustalw"
clustalw_cline = ClustalwCommandline(clustalw, infile="data/opuntia.fasta")
assert os.path.isfile(clustalw), "ClustalW executable missing"
stdout, stderr = clustalw_cline()
---------------------------------------------------------------------------
AssertionError Traceback (most recent call last)
<ipython-input-115-5a9268f91219> in <module>
3 clustalw = "bin/./clustalw"
4 clustalw_cline = ClustalwCommandline(clustalw, infile="data/opuntia.fasta")
----> 5 assert os.path.isfile(clustalw), "ClustalW executable missing"
6 stdout, stderr = clustalw_cline()
AssertionError: ClustalW executable missing
But I installed my clustalw with sudo apt-get and it is in usr/bin/clustalw and i can run the program on most of the places in my cli shell, but not in te notebook.
Any of the guys here have some solution?
CLUSTAL 2.1
ubuntu debian 16.04
Biopython 1.73
Thanks
Paulo
I edited my question.
Sorry
Why are you using
windows
style file paths (and a windows executableclustalw2.exe
), if all this is happening onUbuntu
?I change it to ubuntu. tried :
~/usr/bin/clustalw
usr/bin/clustalw
bin/clustalw
with ./clustalw and many more.
What does that mean? You will need to use
unix
file paths and proper executable if you are actually usingUbuntu
.