]> git.donarmstrong.com Git - mothur.git/blobdiff - preclustercommand.cpp
fixed pvalues for otu.association and corr.axes, fixed bug with pre.cluster added...
[mothur.git] / preclustercommand.cpp
index 8e4f3274a490679c85f992f8584605c877c84850..58fd99777a809afd6384861b4a3237218138c29f 100644 (file)
@@ -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<string, string>& thisName, vector<Sequence>&
                }
                
         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; }