about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPjotr Prins2024-12-09 08:27:05 +0100
committerPjotr Prins2024-12-09 08:27:05 +0100
commit97d5d23552863b7ddcb1b629f16b9c7cd815c926 (patch)
tree85b61a47ac224b1ccb684a6ac16fb42011834a73
parent88067a2af2539286ac1dbdf72869f5d07ff1fb1f (diff)
downloadpangemma-97d5d23552863b7ddcb1b629f16b9c7cd815c926.tar.gz
Expanded error message
-rw-r--r--src/gemma_io.cpp3
1 files changed, 2 insertions, 1 deletions
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<string> &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<string> &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;