Skip to content

Commit

Permalink
Adjust effect direction scaling function for equivalent of a low sign…
Browse files Browse the repository at this point in the history
…ificance threshold (p~0.05 per indiv snp)

Discussion note: In the future we could test pvalue directly to decide significance, instead of beta+/-se
  • Loading branch information
abought committed Nov 11, 2021
1 parent f963681 commit 53ba107
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions esm/helpers/scalable.js
Original file line number Diff line number Diff line change
Expand Up @@ -236,9 +236,9 @@ function effect_direction(parameters, input) {

if (beta_val !== undefined) {
if (se_val !== undefined) {
if ((beta_val - 2 * se_val) > 0) {
if ((beta_val - 1.96 * se_val) > 0) {
return plus_result;
} else if ((beta_val + 2 * se_val) < 0) {
} else if ((beta_val + 1.96 * se_val) < 0) {
return neg_result || null;
}
} else {
Expand Down

0 comments on commit 53ba107

Please sign in to comment.