EMBOSS dosen't output file in biopython
1
0
Entering edit mode
13 months ago
Thesnak • 0

I tried to execute this code using biopython but there is no file for output

from Bio.Emboss.Applications import NeedleCommandline
needle_cline=NeedleCommandline(r"C:\mEMBOSS\needle.exe",asequence="Sequence 1.txt",bsequence="Sequence 2.txt",gapopen=10,gapextend=0.5,outfile="output.txt")
stdout,stderr = needle_cline()

error:

 Traceback (most recent call last):
  File "F:/Study/Bioinformatics/Level 3/Term 1/Bio Computing/Assignment/Assignment 2/Main.py", line 4, in <module>
    stdout,stderr = needle_cline()
  File "C:\Users\moham\anaconda3\lib\site-packages\Bio\Application\__init__.py", line 569, in __call__
    raise ApplicationError(return_code, str(self), stdout_str, stderr_str)
Bio.Application.ApplicationError: Non-zero return code 1 from 'C:\\mEMBOSS\\needle.exe -outfile=output.txt -asequence="Sequence 1.txt" -bsequence="Sequence 2.txt" -gapopen=10 -gapextend=0.5', message 'Died: EMBOSS_ROOT must be defined for Windows'
alignment software error • 383 views
ADD COMMENT
0
Entering edit mode

Do yourself a favour and get used to NOT using whitespaces in folder names, paths and file names. Use underscores or camelcases.

ADD REPLY
1
Entering edit mode
13 months ago
Mensur Dlakic ★ 15k

The error message tells you what is wrong: 'Died: EMBOSS_ROOT must be defined for Windows'. That means you need to tell the system where EMBOSS files are, which for you seems to be C:\mEMBOSS\. Google windows path variable to find out how to add EMBOSS_ROOT to it.

ADD COMMENT

Login before adding your answer.

Traffic: 1866 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6