]> git.donarmstrong.com Git - mothur.git/blobdiff - groupmap.cpp
changes to read.otu(list/shared) - took out substr calls
[mothur.git] / groupmap.cpp
index 47fbc36ee55ec4e2ff3fd9b934621eeef9a79a64..0e0be0e8cf2799527e2664bb79b1cdded09e215c 100644 (file)
@@ -61,26 +61,28 @@ string GroupMap::getGroup(string sequenceName) {
 }
 
 /************************************************************/
+
 void GroupMap::setGroup(string sequenceName, string groupN) {
        groupmap[sequenceName] = groupN;
 }
+
 /************************************************************/
 void GroupMap::setNamesOfGroups(string seqGroup) {
-                       int i, count;
-                       count = 0;
-                       for (i=0; i<namesOfGroups.size(); i++) {
-                               if (namesOfGroups[i] != seqGroup) {
-                                       count++; //you have not found this group
-                               }else {
-                                       break; //you already have it
-                               }
-                       }
-                       if (count == namesOfGroups.size()) {
-                               namesOfGroups.push_back(seqGroup); //new group
-                               seqsPerGroup[seqGroup] = 0;
-                               groupIndex[seqGroup] = index;
-                               index++;
-                       }
+       int i, count;
+       count = 0;
+       for (i=0; i<namesOfGroups.size(); i++) {
+               if (namesOfGroups[i] != seqGroup) {
+                       count++; //you have not found this group
+               }else {
+                       break; //you already have it
+               }
+       }
+       if (count == namesOfGroups.size()) {
+               namesOfGroups.push_back(seqGroup); //new group
+               seqsPerGroup[seqGroup] = 0;
+               groupIndex[seqGroup] = index;
+               index++;
+       }
 }
 /************************************************************/
 bool GroupMap::isValidGroup(string groupname) {