]> git.donarmstrong.com Git - mothur.git/blobdiff - distancecommand.cpp
v 19.3
[mothur.git] / distancecommand.cpp
index 1be3552ee3d5f637f2cf17edda02695375400809..b73cd7c751176c386a95931b0887c6790f046583 100644 (file)
@@ -85,6 +85,7 @@ DistanceCommand::DistanceCommand(string option) {
                                
                //allow user to run help
                if(option == "help") { help(); abort = true; calledHelp = true; }
+               else if(option == "citation") { citation(); abort = true; calledHelp = true;}
                
                else {
                        vector<string> myArray = setParameters();
@@ -246,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