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

Commit

Permalink
show results tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
gregdingle committed Feb 17, 2009
1 parent 07b9a46 commit 9429dcb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions genetify/controls.css
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@
cursor: pointer;
}

#genetify_results_table .genetify_col_recorded,
#genetify_results_table .genetify_col_stddev,
#genetify_results_table .genetify_col_share {
display: none;
Expand Down
6 changes: 3 additions & 3 deletions genetify/genetify.js
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ var genetify = {
var variantName = variants[i][0];
if (geneResults[variantName] && geneResults[variantName]['weight']){
probs[i] = geneResults[variantName]['weight'];
geneResults[variantName]['found'] = true;
geneResults[variantName]['recorded'] = true;
}
else {
probs[i] = NaN;
Expand Down Expand Up @@ -522,7 +522,7 @@ var genetify = {
_allocateUnused: function(geneResults, probs){
var missingProbs = [];
for (var p in geneResults){
if (geneResults[p]['weight'] && !geneResults[p]['found']){
if (geneResults[p]['weight'] && !geneResults[p]['recorded']){
missingProbs.push(geneResults[p]['weight']);
}
}
Expand Down Expand Up @@ -1471,7 +1471,7 @@ genetify.controls = {
//TODO: better handling of unused and missing results
resultsToTable: function(){
//TODO: make column headers dynamic
var headers = ['name', 'count', 'sum', 'avg', 'stddev', 'share', 'weight'];
var headers = ['name', 'count', 'sum', 'avg', 'stddev', 'share', 'weight', 'recorded'];
var rows = [headers];

if (!genetify.config.REQUEST_RESULTS){
Expand Down

0 comments on commit 9429dcb

Please sign in to comment.