Hi everyone,
I tried these lines
................................................
import os
from Bio.Clustalw import MultipleAlignCL
cline = MultipleAlignCL(os.path.join(os.curdir, "opuntia.fasta"))
cline.set_output("test.aln")
alignment = Clustalw.do_alignment(cline)
.............................................
But couldn't proceed with these errors
.............................................
Traceback (most recent call last):
File "<string>", line 244, in run_nodebug
File "C:\Python24\align.py", line 5, in ?
alignment = Clustalw.do_alignment(cline)
File "C:\Python24\lib\site-packages\Bio\Clustalw\__init__.py", line 95, in do_alignment
shell=(sys.platform!="win32")
File "C:\Python24\lib\subprocess.py", line 534, in __init__
(p2cread, p2cwrite,
File "C:\Python24\lib\subprocess.py", line 594, in _get_handles
p2cread = self._make_inheritable(p2cread)
File "C:\Python24\lib\subprocess.py", line 635, in _make_inheritable
DUPLICATE_SAME_ACCESS)
TypeError: an integer is required
.................................................
test.aln is not generated too
..................................................
Thanks
Looks like you're using a deprecated function. have a look at the docstring, specifically:
Can you add this question as a followup of your last question, or provide a link to your last question ? Thanks.
maybe this would also be a good answer not just a comment
@Istvan, yep. done.
please don't "community wiki" unless you know what does it mean.