You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to align two sequence using the python wrapper to EMBOSS Needle. When I initialize the needle_cline object with needle_cline.outfile = 'test.txt' it works and generates the Needle alignment file as normal. The outfile is identical to the one produced by running command line Needle with the same sequences.
When I instead specify needle_cline.stdout = True , it gives me the following error:
ApplicationError: Non-zero return code 1 from 'needle -stdout -asequence=/Users/antoinekoehl/Documents/GitHub/remote_homology/PDBs/5A31N.fa -bsequence=/Users/antoinekoehl/Documents/GitHub/remote_homology/PDBs/4ZU9A.fa -gapopen=10 -gapextend=0.5', message 'Needleman-Wunsch global alignment of two sequences'
I did notice that using command line needle (to stdout) first gives me the output : Needleman-Wunsch global alignment of two sequences. When I then press enter, the alignment shows up.
The text was updated successfully, but these errors were encountered:
Setup
I am reporting a problem with Biopython version, Python version, and operating
system as follows:
3.6.10 |Anaconda, Inc.| (default, Mar 25 2020, 18:53:43)
[GCC 4.2.1 Compatible Clang 4.0.1 (tags/RELEASE_401/final)]
CPython
Darwin-18.7.0-x86_64-i386-64bit
1.76
Expected behaviour
I am trying to align two sequence using the python wrapper to EMBOSS Needle. When I initialize the needle_cline object with
needle_cline.outfile = 'test.txt'
it works and generates the Needle alignment file as normal. The outfile is identical to the one produced by running command line Needle with the same sequences.When I instead specify
needle_cline.stdout = True
, it gives me the following error:Actual behaviour
ApplicationError Traceback (most recent call last)
in
----> 1 stdout, stderr = needle_cline()
/opt/miniconda3/envs/Remote_Homology/lib/python3.6/site-packages/Bio/Application/init.py in call(self, stdin, stdout, stderr, cwd, env)
529 if return_code:
530 raise ApplicationError(return_code, str(self),
--> 531 stdout_str, stderr_str)
532 return stdout_str, stderr_str
533
ApplicationError: Non-zero return code 1 from 'needle -stdout -asequence=/Users/antoinekoehl/Documents/GitHub/remote_homology/PDBs/5A31N.fa -bsequence=/Users/antoinekoehl/Documents/GitHub/remote_homology/PDBs/4ZU9A.fa -gapopen=10 -gapextend=0.5', message 'Needleman-Wunsch global alignment of two sequences'
Steps to reproduce
When I
print(needle_cline)
the command appears correct:needle -stdout -asequence=/Users/antoinekoehl/Documents/GitHub/remote_homology/PDBs/5A31N.fa -bsequence=/Users/antoinekoehl/Documents/GitHub/remote_homology/PDBs/4ZU9A.fa -gapopen=10 -gapextend=0.5
I did notice that using command line needle (to stdout) first gives me the output : Needleman-Wunsch global alignment of two sequences. When I then press enter, the alignment shows up.
The text was updated successfully, but these errors were encountered: