[BioPython] do_alignment

Seda Alper sedaalper at yahoo.com
Mon Jan 5 12:49:44 UTC 2009


Hi!

I executed the code below about Clustalw . However it doesn't work.

import os
from Bio.Clustalw import MultipleAlignCL

cline = MultipleAlignCL(os.path.join(os.curdir,"opuntia.fasta"))
cline.set_output("test.aln")
print cline

from Bio import Clustalw

alignment = Clustalw.do_alignment(cline)

The error like that
>>> 
clustalw -INFILE=.\opuntia.fasta -OUTFILE=test.aln

Traceback (most recent call last):
  File "C:\Python25\ders\se.py", line 10, in <module>
    alignment = Clustalw.do_alignment(cline)
  File "C:\Python25\Lib\site-packages\Bio\Clustalw\__init__.py", line 95, in do_alignment
    shell=(sys.platform!="win32")
  File "C:\Python25\lib\subprocess.py", line 594, in __init__
    errread, errwrite)
  File "C:\Python25\lib\subprocess.py", line 816, in _execute_child
    startupinfo)
WindowsError: [Error 2] The system cannot find the file specified

What to do?

Thanks
Seda






      



More information about the Biopython mailing list