]> git.donarmstrong.com Git - mothur.git/blobdiff - phylotree.cpp
added count file to get.groups and remove.groups. added shortcut parameter to classif...
[mothur.git] / phylotree.cpp
index 3dde18680c625eb816230a8d13774ccfc47032cf..73cb461b852c3946d62140c2d6520481cff0e937 100644 (file)
@@ -598,7 +598,7 @@ int PhyloTree::getIndex(string seqName){
        try {
                map<string, int>::iterator itFind = name2Taxonomy.find(seqName);
        
-               if (itFind != name2Taxonomy.end()) {  return name2Taxonomy[seqName];  }
+               if (itFind != name2Taxonomy.end()) {  return itFind->second;  }
                else { m->mothurOut("Cannot find " + seqName + ". Mismatch with taxonomy and template files. Cannot continue."); m->mothurOutEndLine(); exit(1);}
        }
        catch(exception& e) {