Skip to content

Commit

Permalink
Expanded error message
Browse files Browse the repository at this point in the history
  • Loading branch information
pjotrp committed Dec 9, 2024
1 parent 88067a2 commit 97d5d23
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gemma_io.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit 97d5d23

Please sign in to comment.