HeatMapCommand::HeatMapCommand(){
try {
globaldata = GlobalData::getInstance();
+ heatmap = new HeatMap();
format = globaldata->getFormat();
+ util = new SharedUtil();
+
}
catch(exception& e) {
cout << "Standard Error: " << e.what() << " has occurred in the HeatMapCommand class Function HeatMapCommand. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
HeatMapCommand::~HeatMapCommand(){
delete input;
delete read;
+ delete heatmap;
+ delete util;
}
//**********************************************************************************************************************
input = globaldata->ginput;
}
+
if (format != "list") {
+
+ util->setGroups(globaldata->Groups, globaldata->gGroupmap->namesOfGroups, "heat");
+ globaldata->setGroups("");
+
+
while(order != NULL){
if(globaldata->allLines == 1 || globaldata->lines.count(count) == 1 || globaldata->labels.count(order->getLabel()) == 1){
cout << order->getLabel() << '\t' << count << endl;
-//call heatmap class to make file
+ heatmap->getPic(order);
+
}
//get next line to process
}
//reset groups parameter
- globaldata->Groups.clear(); globaldata->setGroups("");
+ globaldata->Groups.clear();
}else{
while(ordersingle != NULL){
- if(globaldata->allLines == 1 || globaldata->lines.count(count) == 1 || globaldata->labels.count(order->getLabel()) == 1){
+ if(globaldata->allLines == 1 || globaldata->lines.count(count) == 1 || globaldata->labels.count(ordersingle->getLabel()) == 1){
- cout << order->getLabel() << '\t' << count << endl;
-//call heatmap class to make file
+ cout << ordersingle->getLabel() << '\t' << count << endl;
+ heatmap->getPic(ordersingle);
+
}
ordersingle = (input->getOrderVector());
//**********************************************************************************************************************
+