aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPjotr Prins2017-10-11 11:00:17 +0000
committerPjotr Prins2017-10-11 11:00:17 +0000
commitcc840ea408a6dea80f41c308cdcbc0e9f146ccc1 (patch)
treebe2f3659350534f066973c1f53a2eb35ffcb02ae
parent6235918cc0e64e8a712981376642ba6a7b155a15 (diff)
downloadpangemma-cc840ea408a6dea80f41c308cdcbc0e9f146ccc1.tar.gz
Fix embarrassing bug that broke BIMBAM for larger datasets - found it when porting Plink to the new Analyze function
-rw-r--r--src/lmm.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lmm.cpp b/src/lmm.cpp
index 1193700..134fbf9 100644
--- a/src/lmm.cpp
+++ b/src/lmm.cpp
@@ -1414,7 +1414,7 @@ void LMM::AnalyzeBimbam(const gsl_matrix *U, const gsl_vector *eval,
gsl_vector_memcpy(&Xlarge_col.vector, x);
c++; // count SNPs going in
- if (c == msize)
+ if (c % msize == 0)
batch_compute(msize);
}
batch_compute(c % msize);