diff options
author | Pjotr Prins | 2017-10-11 11:00:17 +0000 |
---|---|---|
committer | Pjotr Prins | 2017-10-13 15:27:24 +0000 |
commit | ec8a139cb07b46bd0b9e5de2ea8db1f7f335a56c (patch) | |
tree | f704b47163a9d7ed169e13e445ca399f1a378ceb /src/lmm.cpp | |
parent | 7d252d9ae8cdcbb6f5bd58c1ba1a97589defe2a0 (diff) | |
download | pangemma-ec8a139cb07b46bd0b9e5de2ea8db1f7f335a56c.tar.gz |
Fix embarrassing bug that broke BIMBAM for larger datasets - found it when porting Plink to the new Analyze function
Diffstat (limited to 'src/lmm.cpp')
-rw-r--r-- | src/lmm.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lmm.cpp b/src/lmm.cpp index c0ecb2a..4bca3fb 100644 --- a/src/lmm.cpp +++ b/src/lmm.cpp @@ -1424,7 +1424,7 @@ void LMM::Analyze(std::function< SnpNameValues(size_t) >& fetch_snp, 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); |