After giving up on installing EMBOSS on windows platform, I installed it on Lubuntu after I copied and unziped the EMBOSS-6.5.7.tar.gz in my the library folder for python 2.7 which is within the anaconda interpreters folder (since I'm using spyder IDE for python) then I navigated to that directory using lubuntu terminal and typed the following commands:
./configure
make
after that in a folder named scripts I created three files
>HBA_HUMAN
MVLSPADKTNVKAAWGKVGAHAGEYGAEALERMFLSFPTTKTYFPHFDLSHGSAQVKGHG
KKVADALTNAVAHVDDMPNALSALSDLHAHKLRVDPVNFKLLSHCLLVTLAAHLPAEFTP
AVHASLDKFLASVSTVLTSKYR
in a file alpha.fasta
, and secondly in a file beta.fasta
:
>HBB_HUMAN
MVHLTPEEKSAVTALWGKVNVDEVGGEALGRLLVVYPWTQRFFESFGDLSTPDAVMGNPK
VKAHGKKVLGAFSDGLAHLDNLKGTFATLSELHCDKLHVDPENFRLLGNVLVCVLAHHFG
KEFTPPVQAAYQKVVAGVANALAHKYH
and a third file called needle.py containing the following script:
from Bio.Emboss.Applications import NeedleCommandline
needle_cline = NeedleCommandline(asequence="alpha.faa", bsequence="beta.faa",
gapopen=10, gapextend=0.5,outfile="needle.txt")
print(needle_cline)
all this script is doing is that it's printing what's saved in needle_cline
which is:
needle -outfile=needle.txt -asequence=alpha.faa -bsequence=beta.faa -gapopen=10 -gapextend=0.5
however I was hoping that I would get a fourth file named needle.txt
which would contain the two sequences of contained in the files alpha.fasta
and beta.fasta
that are aligned together. I cant figure out why this function is not working, even though I have installed Biopython and EMBOSS. Thanks!
it seems to be working now. After I restarted my system I ran the same code again and this time it worked... its seems like the system needed to be restarted for some reason after couple weeks of nonstop functioning. Thanks anyhow.