Getting Pairwise Sequence alignment From The Muscle Command-Line
2
0
Entering edit mode
9.9 years ago

The MUSCLE command line doesn't have an option for returning the pairwise sequence alignment. Is there a way to get those alignment(in python)?

for example if I have three sequences Seq1,Seq2 and Seq3:

Tt gives me the aligned sequences as follows:

s1 and s2
s1 and s3
s2 and s3
alignment python sequence • 5.1k views
ADD COMMENT
0
Entering edit mode
9.9 years ago
Ram 44k

IMO you'll have to split your sequences into separate input files and run one of these tools for each pair. MUSCLE does not have the option to do combinatorial pairwise alignment.

ADD COMMENT
0
Entering edit mode

Thank you.If I sperate may sequencs , may be I lost the value of multiple alignment

ADD REPLY
0
Entering edit mode

Do both MSA and pairwise alignments. And yes, you'll need to switch to Linux/OS X to use most of the tools in Bioinformatics

ADD REPLY
0
Entering edit mode

OK. Thank you.I try to use Emboss, when I use NEEDLE, I get the following errors:

From the window of saved Results

Error: Failed to open filename '-noendweight'
Error: Unable to read sequence '-noendweight'
Died: needle terminated: Bad value for '-bsequence' with -auto defined

and this error from the file stderrfile :

Died: Value required for '-bsequence' before '-gapopen'
ADD REPLY
0
Entering edit mode

Could you maybe give us the exact command you used please?

ADD REPLY
0
Entering edit mode

I do it with the software mEMBOSS

ADD REPLY
0
Entering edit mode

OK, but what was the command? Or is mEMBOSS a GUI application?

ADD REPLY
0
Entering edit mode

It is mEMBOSS a GUI application

ADD REPLY
0
Entering edit mode

The tool should ideally write the actual command it used to either the saved results window or the stderr file. Could you check on that please?

ADD REPLY
0
Entering edit mode

This is what I get

Error: Failed to open filename '-noendweight'
Error: Unable to read sequence '-noendweight'
Died: needle terminated: Bad value for '-bsequence' with -auto defined
ADD REPLY
0
Entering edit mode

That's the error. Does the tool write the command it executes to the log just like it writes the error?

ADD REPLY
0
Entering edit mode

No, it didn't

ADD REPLY
0
Entering edit mode

Ah, that makes debugging a tiny bit harder. Is there a settings or preferences window where you can see the parameters used to run the application?

ADD REPLY
0
Entering edit mode
9.9 years ago

I think there is a EMBOSS command named "dismat". You could also use python to call the command needle to get pairwise alignments. However, it would be very slow. I suggest to use vsearch:

vsearch --allpairs_global fastafile --acceptall

vsearch offers a variety of output formats. Disclaimer: I am a member of the vsearch team.

ADD COMMENT
0
Entering edit mode

Thank you. It works on GNU/Linux or OS X, but not on windows.

ADD REPLY
0
Entering edit mode

Bioinformatics and Windows don't gel well. You might wanna run a Linux VM in your Windows machine or dual boot.

ADD REPLY
0
Entering edit mode

OK.thank you

ADD REPLY

Login before adding your answer.

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