Emboss Needle From Biopython, No Output File
1
1
Entering edit mode
10.3 years ago
Maria ▴ 170

I am trying to use emboss from biopython, I copied into the python commandline the commands from the link above i.e :

>>> from Bio.Emboss.Applications import NeedleCommandline
>>> needle_cline = NeedleCommandline(asequence="alpha.faa", bsequence="beta.faa", gapopen=10, gapextend=0.5, outfile="needle.txt")

I don't get any error message but the problem is that the file needle.txt is not created and when executing the code below I get an error as the needle.txt file can't be found:

>>> from Bio import AlignIO
>>> align = AlignIO.read("needle.txt", "emboss")
>>> print(align)

Please any idea what is wrong here ? Note that the graphical interface Jemboss works well and I can align and see the output.

windows biopython • 5.8k views
ADD COMMENT
1
Entering edit mode

you need to add to first script

stdout,stderr=needle_cline()
ADD REPLY
0
Entering edit mode
10.3 years ago
Maria ▴ 170

The Code above give a command that have to be executed manually

ADD COMMENT
1
Entering edit mode

Not only manually, you can also call the Commandline object you made with needle_cline()

ADD REPLY

Login before adding your answer.

Traffic: 2725 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