X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=clustercommand.cpp;h=d14af108d69c36f98617fc2e133c3dcfb537c553;hb=2397df97b12cd5d21ea10dc4248c18a5803ddd41;hp=be7cc51d9f4ecf2765cd878a932b3a804e4bf1ba;hpb=9c23307c583d4e8595f75278c13e708788f2f058;p=mothur.git diff --git a/clustercommand.cpp b/clustercommand.cpp index be7cc51..d14af10 100644 --- a/clustercommand.cpp +++ b/clustercommand.cpp @@ -84,9 +84,9 @@ ClusterCommand::ClusterCommand(string option){ } //create cluster - if (method == "furthest") { cluster = new CompleteLinkage(rabund, list, matrix, cutoff); } - else if(method == "nearest"){ cluster = new SingleLinkage(rabund, list, matrix, cutoff); } - else if(method == "average"){ cluster = new AverageLinkage(rabund, list, matrix, cutoff); } + if (method == "furthest") { cluster = new CompleteLinkage(rabund, list, matrix, cutoff, method); } + else if(method == "nearest"){ cluster = new SingleLinkage(rabund, list, matrix, cutoff, method); } + else if(method == "average"){ cluster = new AverageLinkage(rabund, list, matrix, cutoff, method); } tag = cluster->getTag(); if (outputDir == "") { outputDir += hasPath(globaldata->inputFileName); }