代码错误的含义是:stdout,stderr = needle_cline()

时间:2019-01-08 08:59:05

标签: python-3.x

如何纠正错误?

needle_cline = 
NeedleCommandline(asequence="alpha.faa",bsequence="beta.faa",gapopen=10, 
gapextend=0.5, outfile="needle.txt")
stdout, stderr = needle_cline()

错误输出:

ApplicationError                          Traceback (most recent call last)
<ipython-input-55-e2126670d200> in <module>()
----> 1 stdout, stderr = needle_cline()

~\Anaconda3\lib\site-packages\Bio\Application\__init__.py in __call__(self, stdin, stdout, stderr, cwd, env)
    525         if return_code:
    526             raise ApplicationError(return_code, str(self),
--> 527                                    stdout_str, stderr_str)
    528         return stdout_str, stderr_str
    529 

ApplicationError: Non-zero return code 1 from 'C:\\EMBOSS\\needle.exe -outfile=needle.txt -asequence=alpha.faa -bsequence=beta.faa -gapopen=10 -gapextend=0.5', message '系统找不到指定的路径。'

1 个答案:

答案 0 :(得分:0)

我认为您可以尝试使用以下方法来跟踪needle.exe的路径:

NeedleCommandline(r"C:/EMBOSS/needle.exe", asequence="alpha.faa",bsequence="beta.faa",gapopen=10, gapextend=0.5, outfile="needle.txt")