]> git.donarmstrong.com Git - mothur.git/blobdiff - getgroupcommand.cpp
altered venn command to make use of sharedchao for any number of groups, fixed window...
[mothur.git] / getgroupcommand.cpp
index b4d2d74d0cc72d6c7f4db7acbd4202e3ea5b9972..3fc67d11612bccfdced922b1a8276b90cfc5b023 100644 (file)
@@ -14,6 +14,8 @@ GetgroupCommand::GetgroupCommand(){
        try {
                globaldata = GlobalData::getInstance();
                groupMap = globaldata->gGroupmap;
+               outputFile = globaldata->inputFileName + ".bootGroups";
+               openOutputFile(outputFile, out);
        }
        catch(exception& e) {
                cout << "Standard Error: " << e.what() << " has occurred in the GetgroupCommand class Function GetgroupCommand. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
@@ -36,8 +38,11 @@ GetgroupCommand::~GetgroupCommand(){
 int GetgroupCommand::execute(){
        try {
                vector<string> groupNames = groupMap->namesOfGroups;    
-               for(int i = 0; i < groupNames.size(); i++)
+               for(int i = 0; i < groupNames.size(); i++) {
                        cout << groupNames[i] << "\n";
+                       out << groupNames[i] << "\t" << groupNames[i] << "\n";
+               }
+               out.close();
                return 0;       
        }