X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=distancecommand.cpp;h=b73cd7c751176c386a95931b0887c6790f046583;hb=f06fdb807822f8e06db003ed809c87250905cfc8;hp=34206a9460bf21eac543ee3d91031f8fe4af96ad;hpb=ec1b5bc7460ac8ad40f54f0729900d9ed98e7292;p=mothur.git diff --git a/distancecommand.cpp b/distancecommand.cpp index 34206a9..b73cd7c 100644 --- a/distancecommand.cpp +++ b/distancecommand.cpp @@ -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