<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
> <channel><title>Comments on: Position Frequency Matrix to Position Weight Matrix (PFM2PWM)</title> <atom:link href="https://bogdan.org.ua/2006/09/11/position-frequency-matrix-to-position-weight-matrix-pfm2pwm.html/feed" rel="self" type="application/rss+xml" /><link>https://bogdan.org.ua/2006/09/11/position-frequency-matrix-to-position-weight-matrix-pfm2pwm.html</link> <description>Tiny bits of bioinformatics, [web-]programming etc</description> <lastBuildDate>Mon, 01 Jan 2024 17:12:20 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>https://wordpress.org/?v=3.8.27</generator> <item><title>By: Bogdan</title><link>https://bogdan.org.ua/2006/09/11/position-frequency-matrix-to-position-weight-matrix-pfm2pwm.html#comment-168189</link> <dc:creator><![CDATA[Bogdan]]></dc:creator> <pubDate>Mon, 08 Jul 2013 21:50:23 +0000</pubDate> <guid
isPermaLink="false">http://www.bogdan.org.ua/2006/09/11/position-frequency-matrix-to-position-weight-matrix-pfm2pwm.html#comment-168189</guid> <description><![CDATA[PFMs are simply summaries of the known binding sites - so I do not quite understand your &quot;without knowing the true binding sites&quot;.
Also, in one of the earlier works PWM values were shown to approximate the binding energies - here&#039;s the theoretical foundation you might be looking for.
The &quot;independent nucleotides&quot; model does seem to work nicely, even though it does not cover/explain all of the possible DNA-protein interactions.]]></description> <content:encoded><![CDATA[<p>PFMs are simply summaries of the known binding sites &#8211; so I do not quite understand your &#8220;without knowing the true binding sites&#8221;.</p><p>Also, in one of the earlier works PWM values were shown to approximate the binding energies &#8211; here&#8217;s the theoretical foundation you might be looking for.</p><p>The &#8220;independent nucleotides&#8221; model does seem to work nicely, even though it does not cover/explain all of the possible DNA-protein interactions.</p> ]]></content:encoded> </item> <item><title>By: Justin</title><link>https://bogdan.org.ua/2006/09/11/position-frequency-matrix-to-position-weight-matrix-pfm2pwm.html#comment-168176</link> <dc:creator><![CDATA[Justin]]></dc:creator> <pubDate>Mon, 08 Jul 2013 21:25:10 +0000</pubDate> <guid
isPermaLink="false">http://www.bogdan.org.ua/2006/09/11/position-frequency-matrix-to-position-weight-matrix-pfm2pwm.html#comment-168176</guid> <description><![CDATA[Thanks, Bogdan. I basically understand the PFM and PWM but sometimes confused by myself about something like where the PFM or PWM comes from without knowing the true binding sites on hands. As for c), my point is the use of these models for detecting binding sites is lack of theoretical foundation, that is, the nucleotides cannot be independent of each other which directly results in a wrong intepretation of the methodology.]]></description> <content:encoded><![CDATA[<p>Thanks, Bogdan. I basically understand the PFM and PWM but sometimes confused by myself about something like where the PFM or PWM comes from without knowing the true binding sites on hands. As for c), my point is the use of these models for detecting binding sites is lack of theoretical foundation, that is, the nucleotides cannot be independent of each other which directly results in a wrong intepretation of the methodology.</p> ]]></content:encoded> </item> <item><title>By: Bogdan</title><link>https://bogdan.org.ua/2006/09/11/position-frequency-matrix-to-position-weight-matrix-pfm2pwm.html#comment-168110</link> <dc:creator><![CDATA[Bogdan]]></dc:creator> <pubDate>Mon, 08 Jul 2013 18:57:10 +0000</pubDate> <guid
isPermaLink="false">http://www.bogdan.org.ua/2006/09/11/position-frequency-matrix-to-position-weight-matrix-pfm2pwm.html#comment-168110</guid> <description><![CDATA[@Justin
If you have a PWM, the exact formula used to calculate it, and the total number of sequences used to construct the PFM - you can easily (and uniquely) convert PWM to PFM. If you do not have the total number of sequences, then reconstructing PFM from PWM is still possible - at the very least using a simple brute-force approach; in this case the solution is not guaranteed to be identical to the original PFM. If you only have the PWM and nothing else, you could still try the brute-force approach, but now for the multitude of possible PFM2PWM formulas.
Regarding your &lt;strong&gt;c&lt;/strong&gt; point, the simplest answer is that PWM in a single number combines both the frequency information and Ic (information content) for that position, automatically up- or down-weighting important/non-important positions. PFMs do not give you that.]]></description> <content:encoded><![CDATA[<p>@Justin</p><p>If you have a PWM, the exact formula used to calculate it, and the total number of sequences used to construct the PFM &#8211; you can easily (and uniquely) convert PWM to PFM. If you do not have the total number of sequences, then reconstructing PFM from PWM is still possible &#8211; at the very least using a simple brute-force approach; in this case the solution is not guaranteed to be identical to the original PFM. If you only have the PWM and nothing else, you could still try the brute-force approach, but now for the multitude of possible PFM2PWM formulas.</p><p>Regarding your <strong>c</strong> point, the simplest answer is that PWM in a single number combines both the frequency information and Ic (information content) for that position, automatically up- or down-weighting important/non-important positions. PFMs do not give you that.</p> ]]></content:encoded> </item> <item><title>By: Justin</title><link>https://bogdan.org.ua/2006/09/11/position-frequency-matrix-to-position-weight-matrix-pfm2pwm.html#comment-166865</link> <dc:creator><![CDATA[Justin]]></dc:creator> <pubDate>Thu, 04 Jul 2013 10:58:07 +0000</pubDate> <guid
isPermaLink="false">http://www.bogdan.org.ua/2006/09/11/position-frequency-matrix-to-position-weight-matrix-pfm2pwm.html#comment-166865</guid> <description><![CDATA[Hello everyone here, I come across to your open discussion on PFM2PWM problem. However, I have another (maybe stupid one) question to you guys below: a) how to transfer back from a PWM to its corresponding PFM? b) if this can be done, wondering if the solution in unique or not?  c) why do we have to use PWM for binding sites detection? To me, this is questionable.
Looking forward to hearing from Bogdan and others. Thanks!]]></description> <content:encoded><![CDATA[<p>Hello everyone here, I come across to your open discussion on PFM2PWM problem. However, I have another (maybe stupid one) question to you guys below: a) how to transfer back from a PWM to its corresponding PFM? b) if this can be done, wondering if the solution in unique or not?  c) why do we have to use PWM for binding sites detection? To me, this is questionable.</p><p>Looking forward to hearing from Bogdan and others. Thanks!</p> ]]></content:encoded> </item> <item><title>By: Bogdan</title><link>https://bogdan.org.ua/2006/09/11/position-frequency-matrix-to-position-weight-matrix-pfm2pwm.html#comment-139550</link> <dc:creator><![CDATA[Bogdan]]></dc:creator> <pubDate>Sun, 25 Mar 2012 21:39:57 +0000</pubDate> <guid
isPermaLink="false">http://www.bogdan.org.ua/2006/09/11/position-frequency-matrix-to-position-weight-matrix-pfm2pwm.html#comment-139550</guid> <description><![CDATA[@Bubby, their formula (7) for the weight matrix is a little different. Mentioning just in case you somehow haven&#039;t noticed that.]]></description> <content:encoded><![CDATA[<p>@Bubby, their formula (7) for the weight matrix is a little different. Mentioning just in case you somehow haven&#8217;t noticed that.</p> ]]></content:encoded> </item> <item><title>By: bubby</title><link>https://bogdan.org.ua/2006/09/11/position-frequency-matrix-to-position-weight-matrix-pfm2pwm.html#comment-139116</link> <dc:creator><![CDATA[bubby]]></dc:creator> <pubDate>Sat, 10 Mar 2012 07:06:07 +0000</pubDate> <guid
isPermaLink="false">http://www.bogdan.org.ua/2006/09/11/position-frequency-matrix-to-position-weight-matrix-pfm2pwm.html#comment-139116</guid> <description><![CDATA[am working with TF-DNA binding. i computed score using PWM (using same equations mentioned by Wasserman,2004).but in this link (http://web.mit.edu/8.592/www/lectures/lec18/proteinDNAenergetics.pdf) they have computed energy(kT) and they mentioned that they used PWM only. I tried a lot, i got equations for probabilities from energy. if i use the same am not able to compute energy as it is in that link. Can anyone please help me to find this out? Thanks in advance.]]></description> <content:encoded><![CDATA[<p>am working with TF-DNA binding. i computed score using PWM (using same equations mentioned by Wasserman,2004).but in this link (<a
href="http://web.mit.edu/8.592/www/lectures/lec18/proteinDNAenergetics.pdf" rel="nofollow">http://web.mit.edu/8.592/www/lectures/lec18/proteinDNAenergetics.pdf</a>) they have computed energy(kT) and they mentioned that they used PWM only. I tried a lot, i got equations for probabilities from energy. if i use the same am not able to compute energy as it is in that link. Can anyone please help me to find this out? Thanks in advance.</p> ]]></content:encoded> </item> <item><title>By: Bogdan</title><link>https://bogdan.org.ua/2006/09/11/position-frequency-matrix-to-position-weight-matrix-pfm2pwm.html#comment-103014</link> <dc:creator><![CDATA[Bogdan]]></dc:creator> <pubDate>Tue, 08 Dec 2009 13:14:05 +0000</pubDate> <guid
isPermaLink="false">http://www.bogdan.org.ua/2006/09/11/position-frequency-matrix-to-position-weight-matrix-pfm2pwm.html#comment-103014</guid> <description><![CDATA[Assuming your program works properly (I haven&#039;t checked that):
1. Do you really need a 50-long PWM? Your nucleotides.seq does not even distantly resemble a set of aligned conserved sequences, which are usually used to construct PFMs/PWMs. You could be mixing the concepts of &quot;input sequence&quot; and &quot;sequences to construct PWM from&quot;.
2. Assuming you really want a low-Ic 50-long PWM: to perform a search, you will now need to read the sequence you want to search in, doing so in 50-long chunks, and score each chunk with your PWM - by adding up individual row-column scores of matching nucleotides. You really want to see Wasserman, 2004, for a figure explaining how this is done. Then you will need to normalize the absolute score, to get a number between 0 and 1, and then make a decision whether currently processed chunk is above the &quot;found threshold&quot; (&quot;found cut-off&quot;).]]></description> <content:encoded><![CDATA[<p>Assuming your program works properly (I haven&#8217;t checked that):</p><p>1. Do you really need a 50-long PWM? Your nucleotides.seq does not even distantly resemble a set of aligned conserved sequences, which are usually used to construct PFMs/PWMs. You could be mixing the concepts of &#8220;input sequence&#8221; and &#8220;sequences to construct PWM from&#8221;.</p><p>2. Assuming you really want a low-Ic 50-long PWM: to perform a search, you will now need to read the sequence you want to search in, doing so in 50-long chunks, and score each chunk with your PWM &#8211; by adding up individual row-column scores of matching nucleotides. You really want to see Wasserman, 2004, for a figure explaining how this is done. Then you will need to normalize the absolute score, to get a number between 0 and 1, and then make a decision whether currently processed chunk is above the &#8220;found threshold&#8221; (&#8220;found cut-off&#8221;).</p> ]]></content:encoded> </item> <item><title>By: abraham</title><link>https://bogdan.org.ua/2006/09/11/position-frequency-matrix-to-position-weight-matrix-pfm2pwm.html#comment-103013</link> <dc:creator><![CDATA[abraham]]></dc:creator> <pubDate>Tue, 08 Dec 2009 12:49:37 +0000</pubDate> <guid
isPermaLink="false">http://www.bogdan.org.ua/2006/09/11/position-frequency-matrix-to-position-weight-matrix-pfm2pwm.html#comment-103013</guid> <description><![CDATA[Thanks for your answer. I want to understand how to find TFBS using PWM. The best way for me to learn is to implement it myself that is why I am doing the implementation step by step.
To be more specific. I wrote a c program that reads a file containing 14 lines of nucleotides. Each line has 50 nucleotides sequences. My c program reads the file and generate the PFM then after that I convert the PFM to PWM. Now what is the next step? what do I do with the PWM? How do I use it to find TFBS. I am a bit new in the field and I am still learning. Sorry if my questions sound stupid.
I can email you the c code (ANSI C) and the file containing the sequences maybe it can help to understand my concern
Thanks.
Regards,
A]]></description> <content:encoded><![CDATA[<p>Thanks for your answer. I want to understand how to find TFBS using PWM. The best way for me to learn is to implement it myself that is why I am doing the implementation step by step.</p><p>To be more specific. I wrote a c program that reads a file containing 14 lines of nucleotides. Each line has 50 nucleotides sequences. My c program reads the file and generate the PFM then after that I convert the PFM to PWM. Now what is the next step? what do I do with the PWM? How do I use it to find TFBS. I am a bit new in the field and I am still learning. Sorry if my questions sound stupid.</p><p>I can email you the c code (ANSI C) and the file containing the sequences maybe it can help to understand my concern<br
/> Thanks.<br
/> Regards,</p><p>A</p> ]]></content:encoded> </item> <item><title>By: Bogdan</title><link>https://bogdan.org.ua/2006/09/11/position-frequency-matrix-to-position-weight-matrix-pfm2pwm.html#comment-103008</link> <dc:creator><![CDATA[Bogdan]]></dc:creator> <pubDate>Tue, 08 Dec 2009 11:09:40 +0000</pubDate> <guid
isPermaLink="false">http://www.bogdan.org.ua/2006/09/11/position-frequency-matrix-to-position-weight-matrix-pfm2pwm.html#comment-103008</guid> <description><![CDATA[I assume you know that PSSM (Position-Specific Scoring Matrix) is just an alternative name of PWMs. It appears that there is now an article on the subject &lt;a href=&quot;http://en.wikipedia.org/wiki/Position-Specific_Scoring_Matrix&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;.
Generally, one should first look for existing tools to perform the needed task. You may find &lt;a href=&quot;http://nar.oxfordjournals.org/cgi/data/gkp084/DC1/1&quot; rel=&quot;nofollow&quot;&gt;this supplement&lt;/a&gt;, briefly comparing several existing tools, helpful in identifying the tool you need.
If you do not need an existing tool, but rather the algorithm/schema of the search, then reading an aforementioned review by Wasserman, 2004 (comments #2 and #6 on this page) will help.
Let me know if you have more questions.]]></description> <content:encoded><![CDATA[<p>I assume you know that PSSM (Position-Specific Scoring Matrix) is just an alternative name of PWMs. It appears that there is now an article on the subject <a
href="http://en.wikipedia.org/wiki/Position-Specific_Scoring_Matrix" rel="nofollow">here</a>.</p><p>Generally, one should first look for existing tools to perform the needed task. You may find <a
href="http://nar.oxfordjournals.org/cgi/data/gkp084/DC1/1" rel="nofollow">this supplement</a>, briefly comparing several existing tools, helpful in identifying the tool you need.</p><p>If you do not need an existing tool, but rather the algorithm/schema of the search, then reading an aforementioned review by Wasserman, 2004 (comments #2 and #6 on this page) will help.</p><p>Let me know if you have more questions.</p> ]]></content:encoded> </item> <item><title>By: abraham</title><link>https://bogdan.org.ua/2006/09/11/position-frequency-matrix-to-position-weight-matrix-pfm2pwm.html#comment-103007</link> <dc:creator><![CDATA[abraham]]></dc:creator> <pubDate>Tue, 08 Dec 2009 10:18:16 +0000</pubDate> <guid
isPermaLink="false">http://www.bogdan.org.ua/2006/09/11/position-frequency-matrix-to-position-weight-matrix-pfm2pwm.html#comment-103007</guid> <description><![CDATA[Thanks for the formula to calculate the weight. My question is once one convert the pfm to pwm how do we use the pwm to find binding sites. Everyone talks about using PSSM to find binding site but how to we use PSSM. I have managed to convert my PFM to PWM thanks to your formula. I have my PSSM, how do I use it to locate the binding sites?
Your assistance is and will be grealty appreciated]]></description> <content:encoded><![CDATA[<p>Thanks for the formula to calculate the weight. My question is once one convert the pfm to pwm how do we use the pwm to find binding sites. Everyone talks about using PSSM to find binding site but how to we use PSSM. I have managed to convert my PFM to PWM thanks to your formula. I have my PSSM, how do I use it to locate the binding sites?</p><p>Your assistance is and will be grealty appreciated</p> ]]></content:encoded> </item> <item><title>By: Steven Chou</title><link>https://bogdan.org.ua/2006/09/11/position-frequency-matrix-to-position-weight-matrix-pfm2pwm.html#comment-93293</link> <dc:creator><![CDATA[Steven Chou]]></dc:creator> <pubDate>Thu, 18 Dec 2008 03:36:46 +0000</pubDate> <guid
isPermaLink="false">http://www.bogdan.org.ua/2006/09/11/position-frequency-matrix-to-position-weight-matrix-pfm2pwm.html#comment-93293</guid> <description><![CDATA[Thank you very much Bodan for help me finding the scotoma ,I am a newbie in perl,Because I read the English document very slow,so there is long way to go,however,thanks for your information~~]]></description> <content:encoded><![CDATA[<p>Thank you very much Bodan for help me finding the scotoma ,I am a newbie in perl,Because I read the English document very slow,so there is long way to go,however,thanks for your information~~</p> ]]></content:encoded> </item> <item><title>By: Bogdan</title><link>https://bogdan.org.ua/2006/09/11/position-frequency-matrix-to-position-weight-matrix-pfm2pwm.html#comment-93132</link> <dc:creator><![CDATA[Bogdan]]></dc:creator> <pubDate>Wed, 17 Dec 2008 11:45:02 +0000</pubDate> <guid
isPermaLink="false">http://www.bogdan.org.ua/2006/09/11/position-frequency-matrix-to-position-weight-matrix-pfm2pwm.html#comment-93132</guid> <description><![CDATA[Steven,
post has links to TFBS Perl module, which AFAIK has PFM2PWM conversion.]]></description> <content:encoded><![CDATA[<p>Steven,</p><p>post has links to TFBS Perl module, which AFAIK has PFM2PWM conversion.</p> ]]></content:encoded> </item> <item><title>By: Bogdan</title><link>https://bogdan.org.ua/2006/09/11/position-frequency-matrix-to-position-weight-matrix-pfm2pwm.html#comment-93131</link> <dc:creator><![CDATA[Bogdan]]></dc:creator> <pubDate>Wed, 17 Dec 2008 11:38:12 +0000</pubDate> <guid
isPermaLink="false">http://www.bogdan.org.ua/2006/09/11/position-frequency-matrix-to-position-weight-matrix-pfm2pwm.html#comment-93131</guid> <description><![CDATA[Hi Steven,
there is nothing wrong with you. Fortunately, there seems to be nothing wrong with me either.
For the example we are discussing:
[code]
w = log2 ( ( f + sqrt(N) * p ) / ( N + sqrt(N) ) / p )
[/code]
and
[code]
w = log2 (   1.901387819       / 16.605551275    / 0.25 )
[/code]
If I calculate that as w = log2 ( 1.901387819 / (16.605551275 / 0.25) ) - note additional braces - then I&#039;d get -5.12654089.
But if I calculate exactly in the order written, as w = log2 ( (1.901387819 / 16.605551275) / 0.25 ) - braces added for clarity - then I get -1.12654089.
So, on the one hand, the error in your calculation was to group 16.605551275 / 0.25, which is ( N + sqrt(N) ) / p), although it is &lt;strong&gt;not&lt;/strong&gt; grouped in the formula; the error stems from the incorrect order of operations. On the other hand, your finding of (13+sqrt(13))*0.25) = 4.1513878 and further correct results makes sense:
[code]
w = (x/y)/z (this is the correct order of calculations, not w = x/(y/z) ),
[/code]
[code]
w = (x/y)*1/z
[/code]
[code]
w = x/(y*z)
[/code]
So w = (x/y)/z = x/(y*z), log2 ( 1.901387819 / 16.605551275 / 0.25 ) = log2 ( 1.901387819 / (16.605551275 * 0.25) ).]]></description> <content:encoded><![CDATA[<p>Hi Steven,</p><p>there is nothing wrong with you. Fortunately, there seems to be nothing wrong with me either.</p><p>For the example we are discussing:</p><div
id="ig-sh-1" class="syntax_hilite"><div
class="code"><ol
class="code" style="font-family:monospace;"><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">w = log2 ( ( f + sqrt(N) * p ) / ( N + sqrt(N) ) / p )</div></li></ol></div></div><p>and</p><div
id="ig-sh-2" class="syntax_hilite"><div
class="code"><ol
class="code" style="font-family:monospace;"><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">w = log2 ( &nbsp; 1.901387819 &nbsp; &nbsp; &nbsp; / 16.605551275 &nbsp; &nbsp;/ 0.25 )</div></li></ol></div></div><p>If I calculate that as w = log2 ( 1.901387819 / (16.605551275 / 0.25) ) &#8211; note additional braces &#8211; then I&#8217;d get -5.12654089.<br
/> But if I calculate exactly in the order written, as w = log2 ( (1.901387819 / 16.605551275) / 0.25 ) &#8211; braces added for clarity &#8211; then I get -1.12654089.</p><p>So, on the one hand, the error in your calculation was to group 16.605551275 / 0.25, which is ( N + sqrt(N) ) / p), although it is <strong>not</strong> grouped in the formula; the error stems from the incorrect order of operations. On the other hand, your finding of (13+sqrt(13))*0.25) = 4.1513878 and further correct results makes sense:</p><div
id="ig-sh-3" class="syntax_hilite"><div
class="code"><ol
class="code" style="font-family:monospace;"><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">w = (x/y)/z (this is the correct order of calculations, not w = x/(y/z) ),</div></li></ol></div></div><div
id="ig-sh-4" class="syntax_hilite"><div
class="code"><ol
class="code" style="font-family:monospace;"><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">w = (x/y)*1/z</div></li></ol></div></div><div
id="ig-sh-5" class="syntax_hilite"><div
class="code"><ol
class="code" style="font-family:monospace;"><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">w = x/(y*z)</div></li></ol></div></div><p>So w = (x/y)/z = x/(y*z), log2 ( 1.901387819 / 16.605551275 / 0.25 ) = log2 ( 1.901387819 / (16.605551275 * 0.25) ).</p> ]]></content:encoded> </item> <item><title>By: Steven Chou</title><link>https://bogdan.org.ua/2006/09/11/position-frequency-matrix-to-position-weight-matrix-pfm2pwm.html#comment-93124</link> <dc:creator><![CDATA[Steven Chou]]></dc:creator> <pubDate>Wed, 17 Dec 2008 09:40:09 +0000</pubDate> <guid
isPermaLink="false">http://www.bogdan.org.ua/2006/09/11/position-frequency-matrix-to-position-weight-matrix-pfm2pwm.html#comment-93124</guid> <description><![CDATA[Hello,Bogdan,I search in the internet and want to find a tool could translate PFM into PWM,this page is useful.
But I have a little and stupid question in the formula:
w = log2 ( ( f + sqrt(N) * p ) / ( N + sqrt(N) ) / p )
and your example:
-1.1265 = log2((1+0.25*sqrt(13))/(13+sqrt(13))/0.25)
I calculate that with my pen and OFFICE excel
((1+0.25*sqrt(13)) = 1.9013878
(13+sqrt(13))/0.25) = 66.4222051
SO
log2((1+0.25*sqrt(13))/(13+sqrt(13))/0.25) = log2(0.0286258) = -5.1265409 not -1.1265
And I found if (13+sqrt(13))/0.25) change to (13+sqrt(13))*0.25)
then
(13+sqrt(13))*0.25) = 4.1513878
final answer will be log2(1.9013878/4.1513878) = -1.1265409
I am confused about this,please tell me what&#039;s wrong with me...
However, sorry for my poor english.]]></description> <content:encoded><![CDATA[<p>Hello,Bogdan,I search in the internet and want to find a tool could translate PFM into PWM,this page is useful.<br
/> But I have a little and stupid question in the formula:</p><p>w = log2 ( ( f + sqrt(N) * p ) / ( N + sqrt(N) ) / p )</p><p>and your example:</p><p>-1.1265 = log2((1+0.25*sqrt(13))/(13+sqrt(13))/0.25)</p><p>I calculate that with my pen and OFFICE excel</p><p>((1+0.25*sqrt(13)) = 1.9013878</p><p>(13+sqrt(13))/0.25) = 66.4222051</p><p>SO<br
/> log2((1+0.25*sqrt(13))/(13+sqrt(13))/0.25) = log2(0.0286258) = -5.1265409 not -1.1265</p><p>And I found if (13+sqrt(13))/0.25) change to (13+sqrt(13))*0.25)</p><p>then</p><p>(13+sqrt(13))*0.25) = 4.1513878</p><p>final answer will be log2(1.9013878/4.1513878) = -1.1265409</p><p>I am confused about this,please tell me what&#8217;s wrong with me&#8230;</p><p>However, sorry for my poor english.</p> ]]></content:encoded> </item> <item><title>By: Bogdan</title><link>https://bogdan.org.ua/2006/09/11/position-frequency-matrix-to-position-weight-matrix-pfm2pwm.html#comment-42475</link> <dc:creator><![CDATA[Bogdan]]></dc:creator> <pubDate>Sat, 22 Dec 2007 12:19:01 +0000</pubDate> <guid
isPermaLink="false">http://www.bogdan.org.ua/2006/09/11/position-frequency-matrix-to-position-weight-matrix-pfm2pwm.html#comment-42475</guid> <description><![CDATA[Of course I&#039;ll check.
The page opened for me, but I do believe there can be problems - we&#039;re using two separate servers (interface &amp; workhorse), which are physically quite distant and connected only via some 13-hop public internet channels which can be slow at times. I&#039;ll try to negotiate more reliable single-server collocation at my institute.
I sent the file to you via email (or you can try again to see if it works from the site). I also significantly extended the &lt;a href=&quot;http://biomed.org.ua/COTRASIF/help.html&quot; rel=&quot;nofollow&quot;&gt;help page&lt;/a&gt;, which now explains the format and meaning of the results file, and also some other important things about the functioning of COTRASIF. Please pay attention to the &quot;duplicate lines&quot; problem described on the help page - I considered that issue resolved until I had a look at your results file. So thanks for you help!
Feedback, criticism and suggestions are welcome - you may use both my email and &lt;a href=&quot;http://bogdan.org.ua/contact/&quot; rel=&quot;nofollow&quot;&gt;contact page&lt;/a&gt; for replies.]]></description> <content:encoded><![CDATA[<p>Of course I&#8217;ll check.</p><p>The page opened for me, but I do believe there can be problems &#8211; we&#8217;re using two separate servers (interface &#038; workhorse), which are physically quite distant and connected only via some 13-hop public internet channels which can be slow at times. I&#8217;ll try to negotiate more reliable single-server collocation at my institute.</p><p>I sent the file to you via email (or you can try again to see if it works from the site). I also significantly extended the <a
href="http://biomed.org.ua/COTRASIF/help.html" rel="nofollow">help page</a>, which now explains the format and meaning of the results file, and also some other important things about the functioning of COTRASIF. Please pay attention to the &#8220;duplicate lines&#8221; problem described on the help page &#8211; I considered that issue resolved until I had a look at your results file. So thanks for you help!</p><p>Feedback, criticism and suggestions are welcome &#8211; you may use both my email and <a
href="http://bogdan.org.ua/contact/" rel="nofollow">contact page</a> for replies.</p> ]]></content:encoded> </item> <item><title>By: realzhang</title><link>https://bogdan.org.ua/2006/09/11/position-frequency-matrix-to-position-weight-matrix-pfm2pwm.html#comment-42456</link> <dc:creator><![CDATA[realzhang]]></dc:creator> <pubDate>Sat, 22 Dec 2007 07:33:56 +0000</pubDate> <guid
isPermaLink="false">http://www.bogdan.org.ua/2006/09/11/position-frequency-matrix-to-position-weight-matrix-pfm2pwm.html#comment-42456</guid> <description><![CDATA[to Bogdan:
Yes, the result email was delayed about 2 days, and the &quot;submitted&quot; notification and &quot;finished&quot; notification were dilivered at the same time. After all, I received the mail.
But the result page seems blank. May you can check it for me? ]]></description> <content:encoded><![CDATA[<p>to Bogdan:</p><p>Yes, the result email was delayed about 2 days, and the &#8220;submitted&#8221; notification and &#8220;finished&#8221; notification were dilivered at the same time. After all, I received the mail.</p><p>But the result page seems blank. May you can check it for me?</p> ]]></content:encoded> </item> <item><title>By: Bogdan</title><link>https://bogdan.org.ua/2006/09/11/position-frequency-matrix-to-position-weight-matrix-pfm2pwm.html#comment-42420</link> <dc:creator><![CDATA[Bogdan]]></dc:creator> <pubDate>Fri, 21 Dec 2007 06:51:53 +0000</pubDate> <guid
isPermaLink="false">http://www.bogdan.org.ua/2006/09/11/position-frequency-matrix-to-position-weight-matrix-pfm2pwm.html#comment-42420</guid> <description><![CDATA[Realzhang,
did you get the link to results file from the task you submitted? As noted on the task submission page, gmail and yahoo sometimes either reject or delay for several days the delivery of emails from our processing server.
Your task was complete 5 minutes after submission, but I wonder if it got through to your inbox.]]></description> <content:encoded><![CDATA[<p>Realzhang,</p><p>did you get the link to results file from the task you submitted? As noted on the task submission page, gmail and yahoo sometimes either reject or delay for several days the delivery of emails from our processing server.</p><p>Your task was complete 5 minutes after submission, but I wonder if it got through to your inbox.</p> ]]></content:encoded> </item> <item><title>By: Bogdan</title><link>https://bogdan.org.ua/2006/09/11/position-frequency-matrix-to-position-weight-matrix-pfm2pwm.html#comment-42293</link> <dc:creator><![CDATA[Bogdan]]></dc:creator> <pubDate>Wed, 19 Dec 2007 16:07:45 +0000</pubDate> <guid
isPermaLink="false">http://www.bogdan.org.ua/2006/09/11/position-frequency-matrix-to-position-weight-matrix-pfm2pwm.html#comment-42293</guid> <description><![CDATA[Realzhang,
there&#039;s some ambiguity in your question on PWM similarity threshold.
If you are interested in comparing PWM matrices, then I&#039;d suggest &lt;a href=&quot;http://bioinformatics.oxfordjournals.org/content/21/3/307.abstract&quot; rel=&quot;nofollow&quot;&gt;Similarity of position frequency matrices for transcription factor binding sites&lt;/a&gt;.
However, if you mean the matrix-to-sequence similarity (the threshold/cut-off problem, which arises when looking for TFBSs with a known PFM/PWM matrix) - then it&#039;s a complicated issue. From what I had previously seen in literature, 0.75 similarity (relative score) is often used. Based on my little &lt;a href=&quot;http://biopolymers.org.ua/archive/2007/04/BTTokovenko.pdf&quot; rel=&quot;nofollow&quot;&gt;research&lt;/a&gt; (look for Fig.1 and explanations in the text), for ISRE TFBS in &lt;em&gt;rattus norvegicus&lt;/em&gt; promoters 0.75 similarity includes some 2/3 of all the maximal-scoring ISREs in all rat promoters. Though I used the 0.8 similarity cut-off, now I think that 0.75 (or even 0.7, given enough post-processing) is much more favourable. (Note: Fig.1 in that PDF has some possibly important theoretical flaws, but it&#039;s a fair representation of actual maximal matrix-sequence scores, obtained for promoters and exons in rat.)
I think that TFBS search itself, no matter how you optimize the threshold, will not give biologically valid results. (The only exception I can think of right now is developing some algorithm which would automatically adjust the cut-off individually for each searched promoter or even each individual searched sub-sequence; however, it&#039;s unclear what should be the criteria for such an algorithm to adjust the cut-off.) Thus, the best approach would be to use the lowest meaningful cut-off, and then just apply a series of filters (post-processors), which would refine the results set. One of the approaches to do that is to somehow employ phylogenetic information and evolutionary sequences conservation/divergence.
The UCSC link you gave me tries to do just that. (By the way, the only interesting thing in their calculations of PWM-sequence scores is the calculation of Z-score - this I haven&#039;t met before, and that&#039;s something to evaluate.)
Actually, I&#039;m nearly done developing a genome-wide TFBS finder web-tool (&lt;a href=&quot;http://biomed.org.ua/COTRASIF/&quot; rel=&quot;nofollow&quot;&gt;COTRASIF&lt;/a&gt;), which also relies on the inter-species evolutionary conservation of sequences - but I do that somewhat differently from the method described at UCSC. I&#039;ll make an official &quot;COTRASIF opening&quot; post in the nearest future, when all the initial features will be complete, and there will be a sufficient description for the tool.
Meanwhile, if you are interested, you may join the development of COTRASIF. This isn&#039;t a paying job (the project, at least currently, is not commercial), but it just might fit your interests. And there are huge and challenging plans for future :) (including additional results filtering by the DNA 3D-structure.... but psst, I didn&#039;t say that!)]]></description> <content:encoded><![CDATA[<p>Realzhang,</p><p>there&#8217;s some ambiguity in your question on PWM similarity threshold.</p><p>If you are interested in comparing PWM matrices, then I&#8217;d suggest <a
href="http://bioinformatics.oxfordjournals.org/content/21/3/307.abstract" rel="nofollow">Similarity of position frequency matrices for transcription factor binding sites</a>.</p><p>However, if you mean the matrix-to-sequence similarity (the threshold/cut-off problem, which arises when looking for TFBSs with a known PFM/PWM matrix) &#8211; then it&#8217;s a complicated issue. From what I had previously seen in literature, 0.75 similarity (relative score) is often used. Based on my little <a
href="http://biopolymers.org.ua/archive/2007/04/BTTokovenko.pdf" rel="nofollow">research</a> (look for Fig.1 and explanations in the text), for ISRE TFBS in <em>rattus norvegicus</em> promoters 0.75 similarity includes some 2/3 of all the maximal-scoring ISREs in all rat promoters. Though I used the 0.8 similarity cut-off, now I think that 0.75 (or even 0.7, given enough post-processing) is much more favourable. (Note: Fig.1 in that PDF has some possibly important theoretical flaws, but it&#8217;s a fair representation of actual maximal matrix-sequence scores, obtained for promoters and exons in rat.)</p><p>I think that TFBS search itself, no matter how you optimize the threshold, will not give biologically valid results. (The only exception I can think of right now is developing some algorithm which would automatically adjust the cut-off individually for each searched promoter or even each individual searched sub-sequence; however, it&#8217;s unclear what should be the criteria for such an algorithm to adjust the cut-off.) Thus, the best approach would be to use the lowest meaningful cut-off, and then just apply a series of filters (post-processors), which would refine the results set. One of the approaches to do that is to somehow employ phylogenetic information and evolutionary sequences conservation/divergence.</p><p>The UCSC link you gave me tries to do just that. (By the way, the only interesting thing in their calculations of PWM-sequence scores is the calculation of Z-score &#8211; this I haven&#8217;t met before, and that&#8217;s something to evaluate.)</p><p>Actually, I&#8217;m nearly done developing a genome-wide TFBS finder web-tool (<a
href="http://biomed.org.ua/COTRASIF/" rel="nofollow">COTRASIF</a>), which also relies on the inter-species evolutionary conservation of sequences &#8211; but I do that somewhat differently from the method described at UCSC. I&#8217;ll make an official &#8220;COTRASIF opening&#8221; post in the nearest future, when all the initial features will be complete, and there will be a sufficient description for the tool.</p><p>Meanwhile, if you are interested, you may join the development of COTRASIF. This isn&#8217;t a paying job (the project, at least currently, is not commercial), but it just might fit your interests. And there are huge and challenging plans for future <img
src="https://bogdan.org.ua/wp-includes/images/smilies/icon_smile.gif" alt=":)" class="wp-smiley" /> (including additional results filtering by the DNA 3D-structure&#8230;. but psst, I didn&#8217;t say that!)</p> ]]></content:encoded> </item> <item><title>By: realzhang</title><link>https://bogdan.org.ua/2006/09/11/position-frequency-matrix-to-position-weight-matrix-pfm2pwm.html#comment-42292</link> <dc:creator><![CDATA[realzhang]]></dc:creator> <pubDate>Wed, 19 Dec 2007 15:11:50 +0000</pubDate> <guid
isPermaLink="false">http://www.bogdan.org.ua/2006/09/11/position-frequency-matrix-to-position-weight-matrix-pfm2pwm.html#comment-42292</guid> <description><![CDATA[Bogdan:
Thanks for your reply. I&#039;ve seen the use of ln() at &lt;a href=&quot;http://expressome.kobic.re.kr/wita/document-1.jsp&quot; rel=&quot;nofollow&quot;&gt;WITA&lt;/a&gt;, which just let the pseudocount=1. After reading your reply, I think thers is no significant difference between the log2 and ln() if all the matrices use the same base.
By the way, do you have any good idea on how to determin the threshold of the PWM similarity? The &lt;a href=&quot;http://genome.ucsc.edu/cgi-bin/hgTables?db=hg18&amp;hgta_group=regulation&amp;hgta_track=tfbsConsSites&amp;hgta_table=tfbsConsSites&amp;hgta_doSchema=describe+table+schema&quot; rel=&quot;nofollow&quot;&gt;genome.UCSC&lt;/a&gt; uses a interesing statistical method, and how do you think of this problem?]]></description> <content:encoded><![CDATA[<p>Bogdan:<br
/> Thanks for your reply. I&#8217;ve seen the use of ln() at <a
href="http://expressome.kobic.re.kr/wita/document-1.jsp" rel="nofollow">WITA</a>, which just let the pseudocount=1. After reading your reply, I think thers is no significant difference between the log2 and ln() if all the matrices use the same base.</p><p>By the way, do you have any good idea on how to determin the threshold of the PWM similarity? The <a
href="http://genome.ucsc.edu/cgi-bin/hgTables?db=hg18&amp;hgta_group=regulation&amp;hgta_track=tfbsConsSites&amp;hgta_table=tfbsConsSites&amp;hgta_doSchema=describe+table+schema" rel="nofollow">genome.UCSC</a> uses a interesing statistical method, and how do you think of this problem?</p> ]]></content:encoded> </item> <item><title>By: Bogdan</title><link>https://bogdan.org.ua/2006/09/11/position-frequency-matrix-to-position-weight-matrix-pfm2pwm.html#comment-42109</link> <dc:creator><![CDATA[Bogdan]]></dc:creator> <pubDate>Tue, 18 Dec 2007 12:58:06 +0000</pubDate> <guid
isPermaLink="false">http://www.bogdan.org.ua/2006/09/11/position-frequency-matrix-to-position-weight-matrix-pfm2pwm.html#comment-42109</guid> <description><![CDATA[Realzhang,
it should be log&lt;sub&gt;2&lt;/sub&gt;(). For the explanation why, please see the &quot;Bioinformatics&quot; book by David W. Mount (section on PSSM information content).
In short, log&lt;sub&gt;2&lt;/sub&gt;() is used to determine the uncertainty (entropy) and information content, thus it is also used for the PFM2PWM conversion.
However, in the resources cited in the post both base 2 and base e logarithms are used (see e.g. &lt;a href=&quot;http://tfbs.genereg.net/DOC/TFBS/Matrix/PFM.html#CODE9&quot; rel=&quot;nofollow&quot;&gt;Perl modules documentation for TFBS 0.5&lt;/a&gt; and Jason&#039;s &lt;a href=&quot;http://home.cc.umanitoba.ca/~umhamlin/PLNT7690/presentation/5.html&quot; rel=&quot;nofollow&quot;&gt;slide 5&lt;/a&gt;, which, in turn, cites Wasserman, 2004; actually, the only reference to using ln() is in &lt;a href=&quot;http://rsat.ulb.ac.be/rsat/help.convert-matrix.html&quot; rel=&quot;nofollow&quot;&gt;Hertz, 1999&lt;/a&gt;).]]></description> <content:encoded><![CDATA[<p>Realzhang,</p><p>it should be log<sub>2</sub>(). For the explanation why, please see the &#8220;Bioinformatics&#8221; book by David W. Mount (section on PSSM information content).</p><p>In short, log<sub>2</sub>() is used to determine the uncertainty (entropy) and information content, thus it is also used for the PFM2PWM conversion.</p><p>However, in the resources cited in the post both base 2 and base e logarithms are used (see e.g. <a
href="http://tfbs.genereg.net/DOC/TFBS/Matrix/PFM.html#CODE9" rel="nofollow">Perl modules documentation for TFBS 0.5</a> and Jason&#8217;s <a
href="http://home.cc.umanitoba.ca/~umhamlin/PLNT7690/presentation/5.html" rel="nofollow">slide 5</a>, which, in turn, cites Wasserman, 2004; actually, the only reference to using ln() is in <a
href="http://rsat.ulb.ac.be/rsat/help.convert-matrix.html" rel="nofollow">Hertz, 1999</a>).</p> ]]></content:encoded> </item> </channel> </rss>