I'm trying to work through the Biopython tutorial on multiple sequence alignment and get an error whenever I try to use subprocess:
child = subprocess.Popen(str(cline),
stdout = subprocess.PIPE,
stderr = subprocess.PIPE,
shell = (sys.platform!="win32"))
I get this error:
Traceback (most recent call last):
File "<pyshell#36>", line 2, in <module>
stdout = subprocess.PIPE)
File "C:\Python27\lib\subprocess.py", line 672, in __init__
errread, errwrite)
File "C:\Python27\lib\subprocess.py", line 882, in _execute_child
startupinfo)
WindowsError: [Error 2] The system cannot find the file specified
I've gone so far as to copy and paste the tutorial into the interpreter and no luck. Neither ClustalW nor Muscle are writing the alignment files (I tried the depreciated MultipleAlignCL as well with no luck).
I'm using Python v2.7 and Biopython v1.55 and have tried reinstalling both. Any advice?
What system are you using?
Can you put code you have written above
child=subprocess.Popen(str(cline)
Wow, it wasn't installed. How embarrassing. It's working now, thanks!
Also on recent Biopython you can just do child() rather than calling subprocess yourself.
Thank you for explaining us the solution to your problem. However, you should use the 'Mark this answer as the correct one' function instead of writing an answer as you did here.
subprocess is not a BioPython library. Which tutorial are you following?