Question: Problems with Multiple Sequence Alignments in BioPython
gravatar for beckykalinger
2.7 years ago by
beckykalinger0 wrote:

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")

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.

ADD COMMENTlink written 2.7 years ago by beckykalinger0
Please log in to add an answer.


Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1418 users visited in the last hour