]> git.donarmstrong.com Git - mothur.git/blobdiff - rarefactsharedcommand.cpp
rarefaction.shared() fixed bug
[mothur.git] / rarefactsharedcommand.cpp
index 189be88de11e4160b4e185727e324a581063727f..5e36299505246ecbdbae8c64822a59e916f54dcc 100644 (file)
 RareFactSharedCommand::RareFactSharedCommand(){
        try {
                globaldata = GlobalData::getInstance();
-               string fileNameRoot, groups;
+               string fileNameRoot;
                fileNameRoot = getRootName(globaldata->inputFileName);
-               groupmap = globaldata->gGroupmap;
-               
-               //initialize groups for label
-               groups = "";
-               for (int i = 0; i < groupmap->namesOfGroups.size(); i++) {
-                       groups = groups + groupmap->namesOfGroups[i];
-               }
-               
+                               
                int i;
                for (i=0; i<globaldata->sharedRareEstimators.size(); i++) {
                        if (globaldata->sharedRareEstimators[i] == "sharedobserved") { 
-                               rDisplays.push_back(new RareDisplay(new SharedSobs(), new SharedThreeColumnFile(fileNameRoot+"r_shared.observed", groups)));
+                               rDisplays.push_back(new RareDisplay(new SharedSobs(), new SharedThreeColumnFile(fileNameRoot+"shared.rarefaction", "")));
                        }
                }
        }