]> git.donarmstrong.com Git - mothur.git/blobdiff - readotu.cpp
changed heatmap and venn command to use vector of sharedrabunds instead of order...
[mothur.git] / readotu.cpp
index 0bcfd320cade47901ac89cbf9e86c7b8ad142b29..971ed31ae005e15b3ec0785a9728311ef6ca12f8 100644 (file)
@@ -26,6 +26,7 @@ void ReadOTUFile::read(GlobalData* globaldata){
                        input = new InputData(philFile, globaldata->getFormat()); //format tells you whether philFile is list, rabund, sabund.
                        inputList = new InputData(philFile, globaldata->getFormat()); //format tells you whether philFile is list, rabund, sabund.
                        inputSabund = new InputData(philFile, globaldata->getFormat()); //format tells you whether philFile is list, rabund, sabund or shared.
+                       inputRabund = new InputData(philFile, globaldata->getFormat());
                }else {//there is an orderfile
                        input = new InputData(philFile, globaldata->getOrderFile(), globaldata->getFormat());
                }
@@ -41,6 +42,8 @@ void ReadOTUFile::read(GlobalData* globaldata){
                        globaldata->gorder = order;     //saving to be used by collect and rarefact commands.
                        sabund = inputSabund->getSAbundVector(); 
                        globaldata->sabund = sabund; //saving to be used by summary command.
+                       rabund = inputRabund->getRAbundVector(); 
+                       globaldata->rabund = rabund; //saving to be used by heatmap command.
                        list = inputList->getListVector();
                        globaldata->gListVector = list;
                }else if (globaldata->getFormat() == "shared") {