]> git.donarmstrong.com Git - mothur.git/blobdiff - singlelinkage.cpp
added sequence name to error string in fastq.info. Changed np_shannon to npshannon.
[mothur.git] / singlelinkage.cpp
index 17626156013e2994185e9cf6f284f69c2f63367c..1a1b2aee36bed8af6b7d9782e54adcdedc04d466 100644 (file)
@@ -18,7 +18,7 @@ string SingleLinkage::getTag() {
 
 /***********************************************************************/
 //This function clusters based on the single linkage method.
-void  SingleLinkage::update(){
+void  SingleLinkage::update(double& cutOFF){
        try {
                getRowColCells();       
        
@@ -77,10 +77,11 @@ void  SingleLinkage::update(){
                clusterBins();
                clusterNames();
                // remove also the cell with the smallest distance
+
                removeCell(rowCells[rowInd], -1 , -1);
        }
        catch(exception& e) {
-               errorOut(e, "SingleLinkage", "update");
+               m->errorOut(e, "SingleLinkage", "update");
                exit(1);
        }
 }
@@ -97,7 +98,7 @@ bool SingleLinkage::updateDistance(MatData& colCell, MatData& rowCell) {
                return(changed);
        }
        catch(exception& e) {
-               errorOut(e, "SingleLinkage", "updateDistance");
+               m->errorOut(e, "SingleLinkage", "updateDistance");
                exit(1);
        }
 }