]> git.donarmstrong.com Git - mothur.git/blobdiff - distancecommand.cpp
paralellized seq.error and dist.shared added some error checks to libshuff and dist...
[mothur.git] / distancecommand.cpp
index 34206a9460bf21eac543ee3d91031f8fe4af96ad..b73cd7c751176c386a95931b0887c6790f046583 100644 (file)
@@ -247,6 +247,8 @@ int DistanceCommand::execute(){
                int numSeqs = alignDB.getNumSeqs();
                cutoff += 0.005;
                
+               if (!alignDB.sameLength()) {  m->mothurOut("[ERROR]: your sequences are not the same length, aborting."); m->mothurOutEndLine(); return 0; }
+               
                string outputFile;
                                
                if (output == "lt") { //does the user want lower triangle phylip formatted file