X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=preclustercommand.cpp;h=58fd99777a809afd6384861b4a3237218138c29f;hb=5d77fd07180d1fb8561ff1962e6d7429caf8555e;hp=8e4f3274a490679c85f992f8584605c877c84850;hpb=fc3b1fc4fc1c4e38fde6b0c0ee7896b5fe0b9d57;p=mothur.git diff --git a/preclustercommand.cpp b/preclustercommand.cpp index 8e4f327..58fd997 100644 --- a/preclustercommand.cpp +++ b/preclustercommand.cpp @@ -553,6 +553,7 @@ int PreClusterCommand::readFASTA(){ //inNames.close(); if (lengths.size() > 1) { m->control_pressed = true; m->mothurOut("[ERROR]: your sequences are not all the same length. pre.cluster requires sequences to be aligned."); m->mothurOutEndLine(); } + else if (lengths.size() == 1) { length = *(lengths.begin()); } return alignSeqs.size(); } @@ -598,6 +599,7 @@ int PreClusterCommand::loadSeqs(map& thisName, vector& } if (lengths.size() > 1) { error = true; m->mothurOut("[ERROR]: your sequences are not all the same length. pre.cluster requires sequences to be aligned."); m->mothurOutEndLine(); } + else if (lengths.size() == 1) { length = *(lengths.begin()); } //sanity check if (error) { m->control_pressed = true; }