about summary refs log tree commit diff
path: root/src/param.cpp
diff options
context:
space:
mode:
authorPjotr Prins2025-11-30 07:41:48 +0100
committerPjotr Prins2025-11-30 07:41:48 +0100
commit882a426c70370e50a521435e1b2175598e0fe411 (patch)
tree0a6f5abd5f325aca6d5b39de33654d1a281122bd /src/param.cpp
parent16bf371dff5d1ec20a7ce924c3329dd298e10de3 (diff)
downloadpangemma-882a426c70370e50a521435e1b2175598e0fe411.tar.gz
Fetch ni_total from lmdb
Diffstat (limited to 'src/param.cpp')
-rw-r--r--src/param.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/param.cpp b/src/param.cpp
index a720801..05e4a7b 100644
--- a/src/param.cpp
+++ b/src/param.cpp
@@ -1120,7 +1120,7 @@ void PARAM::CheckData(void) {
   }
 
   // Output some information.
-  if (file_cor.empty() && file_mstudy.empty() && file_study.empty() &&
+  if (!is_mdb && file_cor.empty() && file_mstudy.empty() && file_study.empty() &&
       a_mode != 15 && a_mode != 27 && a_mode != 28) {
     cout << "## number of total individuals = " << ni_total << endl;
     if (a_mode == 43) {
@@ -1294,7 +1294,7 @@ void PARAM::ReadBIMBAMGenotypes(gsl_matrix *UtX, gsl_matrix *K, const bool calc_
 }
 
 void PARAM::MdbCalcKin() {
-  error = !mdb_calc_kin(file_geno, setKSnps, indicator_snp, a_mode - 20);
+  error = !mdb_calc_kin(file_geno, is_loco(), indicator_snp, a_mode - 20);
   return;
 }