]> git.donarmstrong.com Git - mothur.git/blobdiff - deconvolutecommand.cpp
added checks for ^C to quit command instead of program
[mothur.git] / deconvolutecommand.cpp
index fcfd320e0b6be3aa3572b661a579311c9dead5bf..663a6bf81d0fbbda91052e6cc0433df8e2d7fb4a 100644 (file)
@@ -110,9 +110,13 @@ int DeconvoluteCommand::execute() {
                if(oldNameMapFName == "")       {       fastamap.readFastaFile(inFastaName);                                    }
                else                                            {       fastamap.readFastaFile(inFastaName, oldNameMapFName);   }
                
+               if (m->control_pressed) { return 0; }
+               
                fastamap.printCondensedFasta(outFastaFile);
                fastamap.printNamesFile(outNameFile);
                
+               if (m->control_pressed) { remove(outFastaFile.c_str()); remove(outNameFile.c_str()); return 0; }
+               
                m->mothurOutEndLine();
                m->mothurOut("Output File Names: "); m->mothurOutEndLine();
                m->mothurOut(outFastaFile); m->mothurOutEndLine();