X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=prcseqscommand.cpp;h=8a8db37612937ee86d7d11adf1b9973d8cba634d;hb=a0f1fca79d2ddfa7ad36b4485039c68b5704fe8d;hp=d31d687c0af871ed4d5bbbde157c671900aa67d2;hpb=1a968f34ae2d2680eaf189a197d1a21b8dfd6c03;p=mothur.git diff --git a/prcseqscommand.cpp b/prcseqscommand.cpp index d31d687..8a8db37 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); }