Substitution Matrix For Multiple Alignment File
1
0
Entering edit mode
13.6 years ago

Hi all,

this will be my first question here :)

i have an alignement file generated using Clustalx (around 20 species)

i need to parse this file using biopython in order to get for each position in the alignement the substitution matrix.

is this can be done??? and how??

thank you.

biopython • 3.6k views
ADD COMMENT
1
Entering edit mode
13.6 years ago
Peter 6.0k

You can load a multiple sequence alignment in Biopython like so:

from Bio import AlignIO
align = AlignIO.read("my_file.aln", "clustal")

Then you might loop over each column.

I would like to be able to direct you to a pertinent example in the Tutorial http://biopython.org/DIST/docs/tutorial/Tutorial.html but I've just noticed the substitution matrix from an alignment example which would be close, is out of date (the old Bio.Clustalw module was deprecated and removed). I have filed a bug https://redmine.open-bio.org/issues/3340

ADD COMMENT
0
Entering edit mode

Hi, thank you for your answer, i already now how to do this, but i'm new to python and biopython, and i don't know to deal with such things, can you point me on how to do this?? or is it possible to get the substitution matrix using another sofrware and then use it in the script?? (PHYML oe Mr.Bayes)

ADD REPLY

Login before adding your answer.

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