aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPjotr Prins2020-09-30 08:55:06 +0100
committerPjotr Prins2020-11-29 08:50:44 +0000
commit2dcc65a01abb6ec2cb0d90346cc821d15e8d36f6 (patch)
tree67e191aa1016ac502f75bbebdff62c5df9903dd8
parent5d4b24280e21da87814ba1b88310bb9b969c4fef (diff)
downloadpangemma-2dcc65a01abb6ec2cb0d90346cc821d15e8d36f6.tar.gz
Align R2 filter with docs
-rw-r--r--src/gemma_io.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gemma_io.cpp b/src/gemma_io.cpp
index b4f8d39..4bcba62 100644
--- a/src/gemma_io.cpp
+++ b/src/gemma_io.cpp
@@ -824,7 +824,7 @@ bool ReadFile_geno(const string &file_geno, const set<string> &setSnps,
gsl_blas_ddot(genotype, genotype, &v_x);
gsl_blas_ddot(Wtx, WtWiWtx, &v_w);
- if (W->size2 != 1 && v_w / v_x >= r2_level) {
+ if (W->size2 != 1 && v_w / v_x > r2_level) {
indicator_snp.push_back(0);
continue;
}