Skip to content
This repository has been archived by the owner on Feb 5, 2019. It is now read-only.

Commit

Permalink
re-enabled confidence measure
Browse files Browse the repository at this point in the history
  • Loading branch information
gregdingle committed Feb 23, 2009
1 parent 7792809 commit 1647183
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 17 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 15 additions & 15 deletions genetify/controls.js
Expand Up @@ -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){
Expand Down

0 comments on commit 1647183

Please sign in to comment.