From ab434bbd38a61941bf32afcf91b7cc397462a53b Mon Sep 17 00:00:00 2001 From: Pjotr Prins Date: Sun, 30 Nov 2025 08:53:10 +0100 Subject: Write out K --- src/param.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/param.cpp') 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) { -- cgit 1.4.1