X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=clustercommand.cpp;h=06e627a615dacf69fe80464db0123582bef510ed;hb=e10c72304ee071c0c40e0218a06d89dc4731cbc2;hp=5a469963875ab3673e4d9b892e9ecf472f5af09e;hpb=28bcfc4a41b8b82f66636587e0d4d355d07cbdd1;p=mothur.git diff --git a/clustercommand.cpp b/clustercommand.cpp index 5a46996..06e627a 100644 --- a/clustercommand.cpp +++ b/clustercommand.cpp @@ -154,6 +154,14 @@ ClusterCommand::ClusterCommand(string option) { //if the user has not given a path then, add inputdir. else leave path alone. if (path == "") { parameters["name"] = inputDir + it->second; } } + + it = parameters.find("count"); + //user has given a template file + if(it != parameters.end()){ + path = m->hasPath(it->second); + //if the user has not given a path then, add inputdir. else leave path alone. + if (path == "") { parameters["count"] = inputDir + it->second; } + } } //check for required parameters