X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=pairwiseseqscommand.cpp;h=aed03cd9ea273fe5e42413fc1c709abe01983e94;hb=191ae1be0679d5cf4eda950b3b1bf26fb7dd503d;hp=560d54dc98fc198369e832fad43ee9414a646cae;hpb=8f909cf6870cc2e4d8ed8cff69a203f6f83a160b;p=mothur.git diff --git a/pairwiseseqscommand.cpp b/pairwiseseqscommand.cpp index 560d54d..aed03cd 100644 --- a/pairwiseseqscommand.cpp +++ b/pairwiseseqscommand.cpp @@ -61,6 +61,7 @@ vector PairwiseSeqsCommand::getRequiredFiles(){ //********************************************************************************************************************** PairwiseSeqsCommand::PairwiseSeqsCommand(){ try { + abort = true; //initialize outputTypes vector tempOutNames; outputTypes["phylip"] = tempOutNames; @@ -134,7 +135,9 @@ PairwiseSeqsCommand::PairwiseSeqsCommand(string option) { if (m->getDefaultPath() != "") { //default path is set string tryPath = m->getDefaultPath() + m->getSimpleName(fastaFileNames[i]); m->mothurOut("Unable to open " + fastaFileNames[i] + ". Trying default " + tryPath); m->mothurOutEndLine(); - ableToOpen = m->openInputFile(tryPath, in, "noerror"); + ifstream in2; + ableToOpen = m->openInputFile(tryPath, in2, "noerror"); + in2.close(); fastaFileNames[i] = tryPath; } } @@ -144,7 +147,9 @@ PairwiseSeqsCommand::PairwiseSeqsCommand(string option) { if (m->getOutputDir() != "") { //default path is set string tryPath = m->getOutputDir() + m->getSimpleName(fastaFileNames[i]); m->mothurOut("Unable to open " + fastaFileNames[i] + ". Trying output directory " + tryPath); m->mothurOutEndLine(); - ableToOpen = m->openInputFile(tryPath, in, "noerror"); + ifstream in2; + ableToOpen = m->openInputFile(tryPath, in2, "noerror"); + in2.close(); fastaFileNames[i] = tryPath; } }