X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=newcommandtemplate.cpp;fp=newcommandtemplate.cpp;h=3c893d8b44a04feddefb5ec18bebdc9350064656;hb=4b54ce99af7db8019ea907cd7c2edf789369ada9;hp=b2426f5c1bf0cf38306bea7bf756c01743a21f5a;hpb=20071b183e619c122bf9f63b4bb42722507c4e4a;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); + } + } + }