X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=classify.cpp;h=7f451261550a949b3a1cbb7ab72fd374122597bb;hb=62568a297aaf939ab753334f17abde82ec8e8531;hp=e07344d4678a0ca263008e4b10d4d125ad8ef122;hpb=b8f3e71c8a0310e25261464d27e6fcfe891483b0;p=mothur.git diff --git a/classify.cpp b/classify.cpp index e07344d..7f45126 100644 --- a/classify.cpp +++ b/classify.cpp @@ -128,7 +128,7 @@ void Classify::generateDatabaseAndNames(string tfile, string tempFile, string me gobble(fastaFile); names.push_back(temp.getName()); - + database->addSequence(temp); } fastaFile.close(); @@ -153,6 +153,11 @@ void Classify::generateDatabaseAndNames(string tfile, string tempFile, string me #endif database->setNumSeqs(names.size()); + //sanity check + bool okay = phyloTree->ErrorCheck(names); + + if (!okay) { m->control_pressed = true; } + m->mothurOut("DONE."); m->mothurOutEndLine(); m->mothurOut("It took " + toString(time(NULL) - start) + " seconds generate search database. "); m->mothurOutEndLine();