X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=maligner.cpp;h=1d5258964650cad8c2e90d39414022e7dc2f0455;hp=5da4b9f9cece7a9e64dd4a5dd621477fc365e94e;hb=2a7d1455e8cfe4f67a7173f3a7249762c5436217;hpb=4d7ffb38e091e9e7425d94e112551a3f90cacb0f diff --git a/maligner.cpp b/maligner.cpp index 5da4b9f..1d52589 100644 --- a/maligner.cpp +++ b/maligner.cpp @@ -502,13 +502,13 @@ vector Maligner::getBlastSeqs(Sequence* q, int num) { string leftQuery = queryUnAligned.substr(0, int(queryUnAligned.length() * 0.33)); //first 1/3 of the sequence string rightQuery = queryUnAligned.substr(int(queryUnAligned.length() * 0.66)); //last 1/3 of the sequence - Sequence* queryLeft = new Sequence(q->getName(), leftQuery); - Sequence* queryRight = new Sequence(q->getName(), rightQuery); + Sequence* queryLeft = new Sequence(q->getName()+"left", leftQuery); + Sequence* queryRight = new Sequence(q->getName()+"right", rightQuery); vector tempIndexesRight = databaseLeft->findClosestMegaBlast(queryRight, num+1); vector tempIndexesLeft = databaseLeft->findClosestMegaBlast(queryLeft, num+1); - - //if ((tempIndexesRight.size() != (num+1)) || (tempIndexesLeft.size() != (num+1))) { m->mothurOut("megablast returned " + toString(tempIndexesRight.size()) + " results for the right end, and " + toString(tempIndexesLeft.size()) + " for the left end. Needed " + toString(num+1) + ". Unable to porcess sequence " + q->getName()); m->mothurOutEndLine(); return refResults; } + + //if ((tempIndexesRight.size() == 0) && (tempIndexesLeft.size() == 0)) { m->mothurOut("megablast returned " + toString(tempIndexesRight.size()) + " results for the right end, and " + toString(tempIndexesLeft.size()) + " for the left end. Needed " + toString(num+1) + ". Unable to process sequence " + q->getName()); m->mothurOutEndLine(); return refResults; } vector smaller; vector larger;