software to convert pwm matrix to consensus sequence
1
0
Entering edit mode
6.0 years ago
pengchy ▴ 450

Hi,

Is there a software or script to convert the position weighted matrix (PWM) into consensus sequences? I have searched the biostars and googled a while without any practical solution. Although there are many software derived consensus sequence from multiple alignment.

The PWM files were downloaded from CIS-BP (http://cisbp.ccbr.utoronto.ca/), but there is not consensus sequence along with the motif PWM file.

Best,

Pengcheng

pwm consensus sequence • 3.6k views
2
Entering edit mode
6.0 years ago
Zhilong Jia ★ 2.0k

You can method to get consensus sequence by searching "m.consensus" in Biopython.

What is the definition of your mentioned consensus sequence? It seems that are some difference between that in WIki and in BioPython.

0
Entering edit mode

Hi Zhilong,

Now I can read the PWM data into a dictionary class, Then how can I convert the dict class into Bio.motifs.matrix.PositionWeightMatrix class, through which the consensus can be derived using pwm.consensus method?

Thank you!

0
Entering edit mode

Hi Zhilong,

I found the rsat convert-matrix can do the work. http://rsat01.biologie.ens.fr/rsat/. thank you!