X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=prcseqscommand.cpp;h=cb8dd490e3a53a40edce7d1d52fffada445fac13;hb=6b32d112bb60e9f7eb6d4407a4eed4c49b67bced;hp=d31d687c0af871ed4d5bbbde157c671900aa67d2;hpb=1a968f34ae2d2680eaf189a197d1a21b8dfd6c03;p=mothur.git diff --git a/prcseqscommand.cpp b/prcseqscommand.cpp index d31d687..cb8dd49 100644 --- a/prcseqscommand.cpp +++ b/prcseqscommand.cpp @@ -974,14 +974,35 @@ bool PcrSeqsCommand::readOligos(){ else if (c == 32 || c == 9){;} //space or tab } primers[oligo] = primerCount; primerCount++; + //cout << "for oligo = " << oligo << endl; }else if(type == "REVERSE"){ string oligoRC = reverseOligo(oligo); revPrimer.push_back(oligoRC); - //cout << "oligo = " << oligo << " reverse = " << oligoRC << endl; + //cout << "rev oligo = " << oligo << " reverse = " << oligoRC << endl; }else if(type == "BARCODE"){ - inOligos >> group; + inOligos >> group; + }else if(type == "PRIMER"){ + m->gobble(inOligos); + primers[oligo] = primerCount; primerCount++; + + string roligo=""; + inOligos >> roligo; + + for(int i=0;imothurOut(type + " is not recognized as a valid type. Choices are forward, reverse, linker, spacer and barcode. Ignoring " + oligo + "."); m->mothurOutEndLine(); m->control_pressed = true; } + else{ m->mothurOut(type + " is not recognized as a valid type. Choices are primer, forward, reverse, linker, spacer and barcode. Ignoring " + oligo + "."); m->mothurOutEndLine(); m->control_pressed = true; } } m->gobble(inOligos); } @@ -1254,7 +1275,7 @@ int PcrSeqsCommand::readCount(set badSeqNames){ //check for groups that have been eliminated CountTable ct; if (ct.testGroups(goodCountFile)) { - ct.readTable(goodCountFile, true); + ct.readTable(goodCountFile, true, false); ct.printTable(goodCountFile); }