X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=readotucommand.cpp;h=30dc55343d46e0656c7123aba7afddea7f4b3a77;hb=c27e902ede71ea4d20af65752ef04459c101611b;hp=4ad63da5655b4bb6118d09b339f3be0f3651dd04;hpb=74844a60d80c6dd06e3fb02ee9b928424f9019b0;p=mothur.git diff --git a/readotucommand.cpp b/readotucommand.cpp index 4ad63da..30dc553 100644 --- a/readotucommand.cpp +++ b/readotucommand.cpp @@ -34,7 +34,7 @@ ReadOtuCommand::ReadOtuCommand(string option) { for (it = parameters.begin(); it != parameters.end(); it++) { if (validParameter.isValidParameter(it->first, myArray, it->second) != true) { abort = true; } } - + globaldata->newRead(); //if the user changes the input directory command factory will send this info to us in the output parameter @@ -156,18 +156,17 @@ ReadOtuCommand::ReadOtuCommand(string option) { } globaldata->allLines = allLines; - + orderfile = validParameter.validFile(parameters, "order", true); if (orderfile == "not open") { abort = true; } else if (orderfile == "not found") { orderfile = ""; } else { globaldata->setOrderFile(orderfile); } - + if (abort == false) { //gets whichever one of the above is set filename = globaldata->inputFileName; } - } } @@ -204,17 +203,14 @@ void ReadOtuCommand::help(){ //********************************************************************************************************************** - -ReadOtuCommand::~ReadOtuCommand(){ - } - +ReadOtuCommand::~ReadOtuCommand(){} //********************************************************************************************************************** int ReadOtuCommand::execute(){ try { if (abort == true) { return 0; } - + if (globaldata->getFormat() == "shared") { shared = new SharedCommand(outputDir); @@ -225,11 +221,11 @@ int ReadOtuCommand::execute(){ globaldata->setListFile(""); globaldata->setGroupFile(""); globaldata->setSharedFile(""); - }else { - m->mothurOutEndLine(); - m->mothurOut("Output File Name: "); m->mothurOutEndLine(); - m->mothurOut(globaldata->getSharedFile()); m->mothurOutEndLine(); - m->mothurOutEndLine(); + }else { //shared command outputs the filenames + //m->mothurOutEndLine(); + //m->mothurOut("Output File Name: "); m->mothurOutEndLine(); + //m->mothurOut(globaldata->getSharedFile()); m->mothurOutEndLine(); + //m->mothurOutEndLine(); } delete shared;