int numSeqs;
string name;
- in >> numSeqs >> name;
+ string numTest;
+ in >> numTest >> name;
+
+ if (!m->isContainingOnlyDigits(numTest)) { m->mothurOut("[ERROR]: expected a number and got " + numTest + ". I suspect you entered a column formatted file as a phylip file, quitting."); m->mothurOutEndLine(); exit(1); }
+ else { convert(numTest, numSeqs); }
while((d=in.get()) != EOF){
}
}
}
+ f.close();
return names;
}
}
}
}
+ f.close();
return names;
}