]> git.donarmstrong.com Git - mothur.git/blobdiff - groupmap.cpp
fixed bug with displaying info for collect.shared() and summary.shared().
[mothur.git] / groupmap.cpp
index ef262a37cd5f0bc273b6d07ddfe62574a4aac5fd..27302dbce43f02a008fa54aaeb5e84bda8a8b003 100644 (file)
@@ -14,6 +14,7 @@
  GroupMap::GroupMap(string filename) {
        groupFileName = filename;
        openInputFile(filename, fileHandle);
+       index = 0;
 }
 
 /************************************************************/
@@ -69,5 +70,7 @@ void GroupMap::setNamesOfGroups(string seqGroup) {
                        }
                        if (count == namesOfGroups.size()) {
                                namesOfGroups.push_back(seqGroup); //new group
+                               groupIndex[seqGroup] = index;
+                               index++;
                        }
 }