]> git.donarmstrong.com Git - mothur.git/blobdiff - heatmap.cpp
made sorting optional but sort by default, in case the user wants to see the heatmap...
[mothur.git] / heatmap.cpp
index 86786e7e309dd718a4c4476d8745c9a0a0cd6f20..4ce6f2c2e6cc01a376cb4c56d9a222d33e55de50 100644 (file)
@@ -14,6 +14,7 @@ HeatMap::HeatMap(){
        try {
                globaldata = GlobalData::getInstance();
                format = globaldata->getFormat();
+               sorted = globaldata->getSorted();
                
        }
        catch(exception& e) {
@@ -88,7 +89,7 @@ void HeatMap::getPic(SharedOrderVector* sharedorder) {
                getSharedVectors(sharedorder);
                
                //sort lookup so shared bins are on top
-               sortSharedVectors();
+               if (sorted == "1") {  sortSharedVectors();  }
                
                //get maxBin
                for (int i = 0; i < lookup.size(); i++) {