Skip to content

Commit

Permalink
reduced weight floor
Browse files Browse the repository at this point in the history
  • Loading branch information
gregdingle committed Mar 19, 2009
1 parent 5e4ba46 commit 35e7dff
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions genetify/controls.css
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
border:none;
width:16px;
height:16px;
vertical-align:middle;
}

/* STANDARD */
Expand Down
1 change: 1 addition & 0 deletions genetify/controls.js
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@ genetify.controls = {

}
else if (j === 0){
//TODO: fix bug when click on name header... also, how to reset from fixed?
extra += ' onclick="location=\'#' + encodeURIComponent(geneName) + '=' + cols[j] + '\'; genetify.controls.reVary(\'all\')"';
}
else {
Expand Down
4 changes: 2 additions & 2 deletions genetify/genetify.js
Original file line number Diff line number Diff line change
Expand Up @@ -1227,7 +1227,7 @@ genetify.weight = {
variant: function(variant, sums){
//TODO: config var
// higher is slower
var floor = 100;
var floor = 10;
variant['weight'] = (variant['sum'] + floor) / (sums['sum'] + floor * sums['distinct']);
//TODO: return weight value?
return variant;
Expand Down Expand Up @@ -1280,7 +1280,7 @@ genetify.weight = {
df_within = sums['count'] - sums['distinct'];
df_between = sums['distinct'] - 1;

if (df_between < 2 || df_within < 2){
if (df_between < 1 || df_within < 2){
return 0;
}

Expand Down

0 comments on commit 35e7dff

Please sign in to comment.