Problems with Multiple Sequence Alignments in BioPython
0
0
Entering edit mode
6.4 years ago

First of all, I'm very new to bioinformatics. I have to use BioPython to create multiple sequence alignments for an assignment using ClustalW2.

So, I installed the ClustalW2 command line and the "opuntia.fasta" file from the BioPython tutorial and wanted to try creating an alignment out of it to practice. Here is my code:

from Bio.Align.Applications import ClustalwCommandline
cline = ClustalwCommandline("clustalw2", infile="opuntia.fasta")
cline()

But when I run this, I get an error message that says "ERROR: Cannot open input file. No alignment!"

I tried using print(cline) and copying the output from that into the ClustalW command line directly, and got the same error message. All the relevant files are saved in the same directory so I have no idea why ClustalW would have trouble finding and opening the FASTA file.

I'm running Python 3.6, BioPython 1.70, and ClustalW 2.1, all on Windows.

Any help would be greatly appreciated.

BioPython alignment software error sequence • 1.9k views
ADD COMMENT

Login before adding your answer.

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