about summary refs log tree commit diff
path: root/src/param.cpp
diff options
context:
space:
mode:
authorPjotr Prins2025-11-30 08:53:10 +0100
committerPjotr Prins2025-11-30 08:53:10 +0100
commitab434bbd38a61941bf32afcf91b7cc397462a53b (patch)
tree6bddea2b6a706a6f91ec98a654627f3458e84f9f /src/param.cpp
parent254113f4e02d5b423af302e9facb0ed580749ef5 (diff)
downloadpangemma-ab434bbd38a61941bf32afcf91b7cc397462a53b.tar.gz
Write out K
Diffstat (limited to 'src/param.cpp')
-rw-r--r--src/param.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/param.cpp b/src/param.cpp
index 3b74e53..1adee9e 100644
--- a/src/param.cpp
+++ b/src/param.cpp
@@ -1293,9 +1293,8 @@ void PARAM::ReadBIMBAMGenotypes(gsl_matrix *UtX, gsl_matrix *K, const bool calc_
   return;
 }
 
-void PARAM::MdbCalcKin() {
-  error = !mdb_calc_kin(file_geno, is_loco(), a_mode - 20, indicator_snp);
-  return;
+gsl_matrix *PARAM::MdbCalcKin() {
+  return mdb_calc_kin(file_geno, is_loco(), a_mode - 20, indicator_snp);
 }
 
 void PARAM::CalcKin(gsl_matrix *matrix_kin) {