]> git.donarmstrong.com Git - mothur.git/blobdiff - readdistcommand.cpp
fixed minor issue with sub.sample command.
[mothur.git] / readdistcommand.cpp
index d3cbbb1ff22335b346cb5c01ac90b8dd7c560149..788bdcbfef41f0afeb080782e1bae651f8666258 100644 (file)
@@ -19,6 +19,7 @@ ReadDistCommand::ReadDistCommand(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 {
                        /*//valid paramters for this command
@@ -196,7 +197,7 @@ int ReadDistCommand::execute(){
                                m->openOutputFile(newGroupFile, outGroups);
                                
                                for (int i = 0; i < matrix->getNumSeqs(); i++) {
-                                       if (m->control_pressed) { delete groupMap; delete matrix; outGroups.close(); remove(newGroupFile.c_str()); return 0; }
+                                       if (m->control_pressed) { delete groupMap; delete matrix; outGroups.close(); m->mothurRemove(newGroupFile); return 0; }
                                        
                                        Names temp = matrix->getRowInfo(i);
                                        outGroups << temp.seqName << '\t' << temp.groupName << endl;
@@ -213,7 +214,7 @@ int ReadDistCommand::execute(){
                                groupMap = new GroupMap(groupfile);
                                groupMap->readMap();
                                
-                               if (m->control_pressed) { delete groupMap; delete matrix; remove(newGroupFile.c_str()); return 0; }
+                               if (m->control_pressed) { delete groupMap; delete matrix; m->mothurRemove(newGroupFile); return 0; }
        
                                globaldata->gGroupmap = groupMap;
                        }