aboutsummaryrefslogtreecommitdiff
path: root/src/gemma_io.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gemma_io.cpp')
-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;