From 97d5d23552863b7ddcb1b629f16b9c7cd815c926 Mon Sep 17 00:00:00 2001 From: Pjotr Prins Date: Mon, 9 Dec 2024 08:27:05 +0100 Subject: [PATCH] Expanded error message --- src/gemma_io.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gemma_io.cpp b/src/gemma_io.cpp index 925b360..b11bf88 100644 --- a/src/gemma_io.cpp +++ b/src/gemma_io.cpp @@ -704,6 +704,7 @@ bool ReadFile_geno(const string &file_geno, const set &setSnps, // cerr << key << endl; // } while (!safe_get_line(infile, line).eof()) { + // cout << line; ch_ptr = strtok_safe2((char *)line.c_str(), " ,\t",infilen); rs = ch_ptr; ch_ptr = strtok_safe2(NULL, " ,\t",infilen); @@ -750,7 +751,7 @@ bool ReadFile_geno(const string &file_geno, const set &setSnps, gsl_vector_set_zero(genotype_miss); auto infilen = file_geno.c_str(); for (int i = 0; i < ni_total; ++i) { - ch_ptr = strtok_safe2(NULL, " ,\t",infilen); + ch_ptr = strtok_safe2(NULL, " ,\t",(string("To many individuals/strains/genometypes in pheno file for ")+infilen).c_str()); if (indicator_idv[i] == 0) continue;