X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=heatmap.cpp;h=3da6dcc569b012352d4fd5852d4c5e50e7814f40;hb=d53f63d7e0d9c3feeb8ded5a74e6c150fae50fe9;hp=5a02b9a040d680b460be4966412490d5508af203;hpb=485c02be0cdcd06ce08dd58d551a525b6a1b47c5;p=mothur.git diff --git a/heatmap.cpp b/heatmap.cpp index 5a02b9a..3da6dcc 100644 --- a/heatmap.cpp +++ b/heatmap.cpp @@ -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);