This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Python Script For Exact P-Value Of Pwm

Hi guys,

I am looking for native python or perl scripts for the calculation of score threshold for Position weight matrix (PWM) given a p-value. The ideal will be a function, that given a matrix in jasapr/transfac format and a p-value, will return the score for that p-value.

Sure, I can try and build the algorithm myself, but I will be glad if some one already did it.

p-value p-value p-value p-value

funny, when I try to edit this, I see only one green flashing tag, what is that for, merged tags?

I see it too. Maybe the browser is rendering the same tag 4 times producing the flashing effect.

1 answer

You can use MOODS. It has a biopython interface.

The BioPython interface has a threshold_from_p function

+1. Hadn't seen MOODS before. Thanks for this @DK.

Log in to answer this question.