]> git.donarmstrong.com Git - mothur.git/blobdiff - heatmapcommand.cpp
fixed bug with dist.shared subsampling. added mode parameter to dist.shared so...
[mothur.git] / heatmapcommand.cpp
index 9051a5d94ffd07d1ba5444f5d777556faf7fab77..7d9b482564287916f599b0f3148ee4d6a80861f2 100644 (file)
@@ -222,14 +222,14 @@ HeatMapCommand::HeatMapCommand(string option) {
                        if (groups == "not found") { groups = ""; }
                        else { 
                                m->splitAtDash(groups, Groups);
-                               m->Groups = Groups;
+                               m->setGroups(Groups);
                        }
                        
                        string temp = validParameter.validFile(parameters, "numotu", false);            if (temp == "not found") { temp = "0"; }
-                       convert(temp, numOTU);
+                       m->mothurConvert(temp, numOTU);
                        
                        temp = validParameter.validFile(parameters, "fontsize", false);                         if (temp == "not found") { temp = "24"; }
-                       convert(temp, fontSize);
+                       m->mothurConvert(temp, fontSize);
                        
                        sorted = validParameter.validFile(parameters, "sorted", false);                         
                        if (sorted == "not found") { 
@@ -287,7 +287,7 @@ int HeatMapCommand::execute(){
                                if (m->control_pressed) {
                                        for (int i = 0; i < lookup.size(); i++) {  delete lookup[i];  }
                                        for (int i = 0; i < outputNames.size(); i++) {  if (outputNames[i] != "control") {  m->mothurRemove(outputNames[i]);  } } outputTypes.clear();
-                                       m->Groups.clear(); 
+                                       m->clearGroups(); 
                                        delete input; delete heatmap; return 0;
                                }
                
@@ -330,7 +330,7 @@ int HeatMapCommand::execute(){
                        
                        if (m->control_pressed) {
                                for (int i = 0; i < outputNames.size(); i++) {  if (outputNames[i] != "control") {  m->mothurRemove(outputNames[i]);  } } outputTypes.clear();
-                               m->Groups.clear(); 
+                               m->clearGroups(); 
                                delete input; delete heatmap; return 0;
                        }
 
@@ -359,7 +359,7 @@ int HeatMapCommand::execute(){
                        }
                
                        //reset groups parameter
-                       m->Groups.clear();  
+                       m->clearGroups();  
                        
                }else if ((format == "list") || (format == "rabund") || (format == "sabund")) {
        
@@ -440,7 +440,7 @@ int HeatMapCommand::execute(){
                                if (m->control_pressed) {
                                        for (int i = 0; i < lookupFloat.size(); i++) {  delete lookupFloat[i];  }
                                        for (int i = 0; i < outputNames.size(); i++) {  if (outputNames[i] != "control") {  m->mothurRemove(outputNames[i]);  } } outputTypes.clear();
-                                       m->Groups.clear(); 
+                                       m->clearGroups(); 
                                        delete input; delete heatmap; return 0;
                                }
                
@@ -482,7 +482,7 @@ int HeatMapCommand::execute(){
                        
                        if (m->control_pressed) {
                                for (int i = 0; i < outputNames.size(); i++) {  if (outputNames[i] != "control") {  m->mothurRemove(outputNames[i]);  } } outputTypes.clear();
-                               m->Groups.clear(); 
+                               m->clearGroups(); 
                                delete input; delete heatmap; return 0;
                        }
 
@@ -511,7 +511,7 @@ int HeatMapCommand::execute(){
                        }
                
                        //reset groups parameter
-                       m->Groups.clear();  
+                       m->clearGroups();  
 
                }