X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=newcommandtemplate.cpp;h=3c893d8b44a04feddefb5ec18bebdc9350064656;hb=767c2ab76d70664af19b1afca8e1fd5233962698;hp=b2426f5c1bf0cf38306bea7bf756c01743a21f5a;hpb=1a5c2356c1b955c6ec024b2baf9f46377ee7c72e;p=mothur.git diff --git a/newcommandtemplate.cpp b/newcommandtemplate.cpp index b2426f5..3c893d8 100644 --- a/newcommandtemplate.cpp +++ b/newcommandtemplate.cpp @@ -183,7 +183,7 @@ NewCommand::NewCommand(string option) { ///variables for examples below that you will most likely want to put in the header for //use by the other class functions. - string phylipfile, columnfile, namefile, fastafile, sharedfile, method; + string phylipfile, columnfile, namefile, fastafile, sharedfile, method, countfile; int processors; bool useTiming, allLines; vector Estimators, Groups; @@ -304,10 +304,13 @@ NewCommand::NewCommand(string option) { //saved by mothur that is associated with the other files you are using as inputs. //You can do so by adding the files associated with the namefile to the files vector and then asking parser to check. //This saves our users headaches over file mismatches because they forgot to include the namefile, :) - if (namefile == "") { - vector files; files.push_back(fastafile); - parser.getNameFile(files); - } + if (countfile == "") { + if (namefile == "") { + vector files; files.push_back(fastafile); + parser.getNameFile(files); + } + } + }