]> git.donarmstrong.com Git - mothur.git/blobdiff - rarefactcommand.cpp
fixed Thomas' calculators
[mothur.git] / rarefactcommand.cpp
index 3c7975749e126645b91b7b0b53755e5f63e35789..981f077969b1e734b2dc39fb05b372daa2a5f455 100644 (file)
@@ -17,6 +17,7 @@
 #include "npshannon.h"
 #include "shannon.h"
 #include "jackknife.h"
+#include "coverage.h"
 
 //**********************************************************************************************************************
 
@@ -50,6 +51,8 @@ RareFactCommand::RareFactCommand(){
                                        rDisplays.push_back(new RareDisplay(new Simpson(), new ThreeColumnFile(fileNameRoot+"r_simpson")));
                                }else if (globaldata->Estimators[i] == "bootstrap") { 
                                        rDisplays.push_back(new RareDisplay(new Bootstrap(), new ThreeColumnFile(fileNameRoot+"r_bootstrap")));
+                               }else if (globaldata->Estimators[i] == "coverage") { 
+                                       rDisplays.push_back(new RareDisplay(new Coverage(), new ThreeColumnFile(fileNameRoot+"r_coverage")));
                                }else if (globaldata->Estimators[i] == "nseqs") { 
                                        rDisplays.push_back(new RareDisplay(new NSeqs(), new ThreeColumnFile(fileNameRoot+"r_nseqs")));
                                }
@@ -108,7 +111,8 @@ int RareFactCommand::execute(){
                        
                                cout << order->getLabel() << '\t' << count << endl;
                        }
-               
+                       
+                       delete order;
                        order = (input->getOrderVector());
                        count++;