X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=makecontigscommand.cpp;h=9eb4b80a4d890d972c8085255bdb8300a0429c67;hb=ad4f75fd7c938090d3b1ce4cfefcc21edf1869eb;hp=c8f20f10eed04c59df0aa27c136029e43713579e;hpb=67ea6ccd74dbd64828d31b952808255f206364ff;p=mothur.git diff --git a/makecontigscommand.cpp b/makecontigscommand.cpp index c8f20f1..9eb4b80 100644 --- a/makecontigscommand.cpp +++ b/makecontigscommand.cpp @@ -1676,17 +1676,21 @@ bool MakeContigsCommand::getOligos(vector >& fastaFileNames, stri } //roligo = reverseOligo(roligo); + if (m->debug) { m->mothurOut("[DEBUG]: reading - " + roligo + ".\n"); } + group = ""; // get rest of line in case there is a primer name while (!in.eof()) { char c = in.get(); - if (c == 10 || c == 13){ break; } + if (c == 10 || c == 13 || c == -1){ break; } else if (c == 32 || c == 9){;} //space or tab else { group += c; } } oligosPair newPrimer(foligo, roligo); + + if (m->debug) { m->mothurOut("[DEBUG]: primer pair " + newPrimer.forward + " " + newPrimer.reverse + ", and group = " + group + ".\n"); } //check for repeat barcodes string tempPair = foligo+roligo; @@ -1713,7 +1717,7 @@ bool MakeContigsCommand::getOligos(vector >& fastaFileNames, stri group = ""; while (!in.eof()) { char c = in.get(); - if (c == 10 || c == 13){ break; } + if (c == 10 || c == 13 || c == -1){ break; } else if (c == 32 || c == 9){;} //space or tab else { group += c; } }