X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=clustersplitcommand.cpp;fp=clustersplitcommand.cpp;h=b02bd20063e9f70bb422fa541403013d6a1976ab;hb=82cb1bdd831b05cc79b921fc0930fbcebe2098e4;hp=270ea6208d8ead0683d8cf46fb8d7a417469c243;hpb=541bab1dac00688b4c3a8c4a95ab464412663c50;p=mothur.git diff --git a/clustersplitcommand.cpp b/clustersplitcommand.cpp index 270ea62..b02bd20 100644 --- a/clustersplitcommand.cpp +++ b/clustersplitcommand.cpp @@ -1330,9 +1330,10 @@ string ClusterSplitCommand::clusterFile(string thisDistFile, string thisNamefile m->mothurOutEndLine(); m->mothurOut("Clustering " + thisDistFile); m->mothurOutEndLine(); //create cluster - 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); } + float adjust = -1.0; + if (method == "furthest") { cluster = new CompleteLinkage(rabund, list, matrix, cutoff, method, adjust); } + else if(method == "nearest"){ cluster = new SingleLinkage(rabund, list, matrix, cutoff, method, adjust); } + else if(method == "average"){ cluster = new AverageLinkage(rabund, list, matrix, cutoff, method, adjust); } tag = cluster->getTag(); if (outputDir == "") { outputDir += m->hasPath(thisDistFile); }