X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=counttable.cpp;fp=counttable.cpp;h=cd623ecbcf5fbea1cdd25fa8c9c2b872746da162;hb=ea4f373c28543cd1002b0dd7dc6e55c526647d59;hp=bc9d4da05966b6b3fc3ec5fe0e751c21be7f180f;hpb=159fd324dfecacb6617669246d85c787ae67f630;p=mothur.git diff --git a/counttable.cpp b/counttable.cpp index bc9d4da..cd623ec 100644 --- a/counttable.cpp +++ b/counttable.cpp @@ -661,6 +661,22 @@ vector CountTable::getNamesOfSeqs() { } } /************************************************************/ +//returns the names of all unique sequences in file mapped to their seqCounts +map CountTable::getNameMap() { + try { + map names; + for (map::iterator it = indexNameMap.begin(); it != indexNameMap.end(); it++) { + names[it->first] = totals[it->second]; + } + + return names; + } + catch(exception& e) { + m->errorOut(e, "CountTable", "getNameMap"); + exit(1); + } +} +/************************************************************/ //returns the names of all unique sequences in file vector CountTable::getNamesOfSeqs(string group) { try {