Permalink
Browse files

re-enabled confidence measure

  • Loading branch information...
1 parent 7792809 commit 164718303ba9fa979fe177a88879df0a8df7b222 @gregdingle committed Feb 23, 2009

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -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){

0 comments on commit 1647183

Please sign in to comment.