]> git.donarmstrong.com Git - mothur.git/blobdiff - treemap.cpp
fixed bug in read.tree updates help and validparameters strings, added ability for...
[mothur.git] / treemap.cpp
index 9eb8330ad1917a26441b8c22527b50652dbd011a..fee309c5877138039c2ecdff8f54428a8060bc24 100644 (file)
@@ -72,7 +72,13 @@ string TreeMap::getGroup(string sequenceName) {
 }
 /************************************************************/
 void TreeMap::setIndex(string seq, int index) {
-       treemap[seq].vectorIndex = index;
+       it = treemap.find(seq);
+       if (it != treemap.end()) { //sequence name was in group file
+               treemap[seq].vectorIndex = index;       
+       }else {
+               treemap[seq].vectorIndex = index;
+               treemap[seq].groupname = "not found";
+       }
 }
 /************************************************************/
 int TreeMap::getIndex(string seq) {