diff --git a/genetify/cache/localhost.com__%2Fgenetify-git%2Fgenetify%2Fdemo%2Findex.php%3Fp%3Dgoals__results.js b/genetify/cache/localhost.com__%2Fgenetify-git%2Fgenetify%2Fdemo%2Findex.php%3Fp%3Dgoals__results.js old mode 100755 new mode 100644 index ecf4573..6e0c6f0 --- a/genetify/cache/localhost.com__%2Fgenetify-git%2Fgenetify%2Fdemo%2Findex.php%3Fp%3Dgoals__results.js +++ b/genetify/cache/localhost.com__%2Fgenetify-git%2Fgenetify%2Fdemo%2Findex.php%3Fp%3Dgoals__results.js @@ -1 +1 @@ -genetify.handleResults({"rps":{"scissors":{"count":2,"sum":2,"avg":1,"stddev":1.41421356237,"share":0.666666666,"weight":0.388888888667},"paper":{"count":2,"sum":1,"avg":0.5,"stddev":0.5,"share":0.333333333,"weight":0.333333333167},"__original__":{"count":4,"sum":0,"avg":0,"stddev":0,"share":0,"weight":0.277777777667}}}) \ No newline at end of file +genetify.handleResults({"rps":{"__original__":{"count":3,"nonzero":2,"sum":2,"avg":0.5,"sumsq":2,"wavg":0.1629},"paper":{"count":8,"nonzero":3,"sum":3,"avg":0.375,"sumsq":3,"wavg":0.1977910489},"scissors":{"count":8,"nonzero":3,"sum":3,"avg":0.375,"sumsq":3,"wavg":0.1865717389}}}) \ No newline at end of file diff --git a/genetify/cache/localhost.com__%2Fgenetify-git%2Fgenetify%2Fdemo%2Findex.php%3Fp%3Duser-goals__results.js b/genetify/cache/localhost.com__%2Fgenetify-git%2Fgenetify%2Fdemo%2Findex.php%3Fp%3Duser-goals__results.js index 5193885..f20944c 100755 --- a/genetify/cache/localhost.com__%2Fgenetify-git%2Fgenetify%2Fdemo%2Findex.php%3Fp%3Duser-goals__results.js +++ b/genetify/cache/localhost.com__%2Fgenetify-git%2Fgenetify%2Fdemo%2Findex.php%3Fp%3Duser-goals__results.js @@ -1 +1 @@ -genetify.handleResults({"rps":{"__original__":{"count":1,"sum":20,"avg":20,"stddev":0,"share":0.666666666,"weight":0.527777777667},"scissors":{"count":1,"sum":10,"avg":10,"stddev":0,"share":0.333333333,"weight":0.472222222167}}}) \ No newline at end of file +genetify.handleResults({"rps":{"__original__":{"count":3,"nonzero":1,"sum":20,"avg":6.666666666,"sumsq":400,"wavg":2},"paper":{"count":7,"nonzero":2,"sum":30,"avg":3.75,"sumsq":500,"wavg":2.529},"scissors":{"count":5,"nonzero":0,"sum":0,"avg":0,"sumsq":0,"wavg":0}}}) \ No newline at end of file diff --git a/genetify/controls.js b/genetify/controls.js index c365ad8..e3cbfd3 100755 --- a/genetify/controls.js +++ b/genetify/controls.js @@ -252,21 +252,21 @@ genetify.controls = { extra += ' class="genetify_gene_row"'; // stats confidence - // var confidence = genetify.weight.sums[geneName].confidence; - // if (confidence){ - // var stars = ''; - // if (confidence > 0.9){ - // stars += '*'; - // } - // if (confidence > 0.95){ - // stars += '*'; - // } - // if (confidence > 0.99){ - // stars += '*'; - // } - // extra += ' title="The ' + geneName + ' variants are different at a confidence of ' + genetify.utils.round(confidence) + '"'; - // cols[j] = cols[j] + ' ' + stars; - // } + var confidence = genetify.weight.sums[geneName] ? genetify.weight.sums[geneName].confidence: ''; + if (confidence){ + var stars = ''; + if (confidence > 0.9){ + stars += '*'; + } + if (confidence > 0.95){ + stars += '*'; + } + if (confidence > 0.99){ + stars += '*'; + } + extra += ' title="The ' + geneName + ' variants are different at a confidence of ' + genetify.utils.round(confidence) + '"'; + cols[j] = cols[j] + ' ' + stars; + } } else if (j === 0){