X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=countseqscommand.cpp;h=dfa012eeff0f0f49c778c00b2098348a489f1855;hb=67ea6ccd74dbd64828d31b952808255f206364ff;hp=3bafbcd71752b48e675e0d85fcf037cc896056dc;hpb=1a5c2356c1b955c6ec024b2baf9f46377ee7c72e;p=mothur.git diff --git a/countseqscommand.cpp b/countseqscommand.cpp index 3bafbcd..dfa012e 100644 --- a/countseqscommand.cpp +++ b/countseqscommand.cpp @@ -236,7 +236,11 @@ int CountSeqsCommand::processSmall(string outputFileName){ string firstCol, secondCol; in >> firstCol; m->gobble(in); in >> secondCol; m->gobble(in); - + //cout << firstCol << '\t' << secondCol << endl; + m->checkName(firstCol); + m->checkName(secondCol); + //cout << firstCol << '\t' << secondCol << endl; + vector names; m->splitAtChar(secondCol, names, ','); @@ -435,6 +439,8 @@ map CountSeqsCommand::processNameFile(string name) { else { secondCol = pieces[i]; pairDone = true; columnOne=true; } if (pairDone) { + m->checkName(firstCol); + m->checkName(secondCol); //parse names into vector vector theseNames; m->splitAtComma(secondCol, theseNames); @@ -456,6 +462,8 @@ map CountSeqsCommand::processNameFile(string name) { else { secondCol = pieces[i]; pairDone = true; columnOne=true; } if (pairDone) { + m->checkName(firstCol); + m->checkName(secondCol); //parse names into vector vector theseNames; m->splitAtComma(secondCol, theseNames); @@ -507,6 +515,7 @@ map CountSeqsCommand::getGroupNames(string filename, set& n else { secondCol = pieces[i]; pairDone = true; columnOne=true; } if (pairDone) { + m->checkName(firstCol); it = groupIndex.find(secondCol); if (it == groupIndex.end()) { //add group, assigning the group and number so we can use vectors above groupIndex[secondCol] = count; @@ -529,6 +538,7 @@ map CountSeqsCommand::getGroupNames(string filename, set& n else { secondCol = pieces[i]; pairDone = true; columnOne=true; } if (pairDone) { + m->checkName(firstCol); it = groupIndex.find(secondCol); if (it == groupIndex.end()) { //add group, assigning the group and number so we can use vectors above groupIndex[secondCol] = count;