]> git.donarmstrong.com Git - mothur.git/blobdiff - heatmap.cpp
heatmap
[mothur.git] / heatmap.cpp
index 5a02b9a040d680b460be4966412490d5508af203..3da6dcc569b012352d4fd5852d4c5e50e7814f40 100644 (file)
@@ -31,7 +31,7 @@ HeatMap::HeatMap(){
 void HeatMap::getPic(OrderVector* order) {
        try {
                sabund = order->getSAbundVector();
-               string filename = getRootName(globaldata->inputFileName) + order->getLabel();
+               string filename = getRootName(globaldata->inputFileName) + "heatmap" + order->getLabel();
        }
        catch(exception& e) {
                cout << "Standard Error: " << e.what() << " has occurred in the HeatMap class Function getPic. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
@@ -45,8 +45,11 @@ void HeatMap::getPic(OrderVector* order) {
 //**********************************************************************************************************************
 void HeatMap::getPic(SharedOrderVector* sharedorder) {
        try {
+               //fills vector of sharedsabunds - lookup
                getSharedVectors(sharedorder);
                
+               string filename = getRootName(globaldata->inputFileName) + "heatmap" + sharedorder->getLabel();
+               
                
        }
        catch(exception& e) {
@@ -67,7 +70,7 @@ void HeatMap::getSharedVectors(SharedOrderVector* order){
                
                //create and initialize vector of sharedvectors, one for each group
                for (int i = 0; i < globaldata->Groups.size(); i++) { 
-                       SharedRAbundVector* temp = new SharedRAbundVector(order->getNumBins());
+                       SharedRAbundVector* temp = new SharedRAbundVector(order->getMaxRank());
                        temp->setLabel(order->getLabel());
                        temp->setGroup(globaldata->Groups[i]);
                        templookup.push_back(temp);