X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=sequence.cpp;h=a359607a3ea11fa118efed129407ee608d4903e5;hb=e8e13c129ba8184ec5932a090773f353f3ae3406;hp=d877f4b93f33d8123ff6a1a9f7f839dc680fcf61;hpb=91a27e0483827c06c21c4fe89558923bbfe86573;p=mothur.git diff --git a/sequence.cpp b/sequence.cpp index d877f4b..a359607 100644 --- a/sequence.cpp +++ b/sequence.cpp @@ -603,7 +603,7 @@ int Sequence::getLongHomoPolymer(){ int Sequence::getStartPos(){ if(startPos == -1){ for(int j = 0; j < alignmentLength; j++) { - if(aligned[j] != '.'){ + if((aligned[j] != '.')&&(aligned[j] != '-')){ startPos = j + 1; break; } @@ -668,7 +668,7 @@ int Sequence::filterFromPos(int end){ int Sequence::getEndPos(){ if(endPos == -1){ for(int j=alignmentLength-1;j>=0;j--){ - if(aligned[j] != '.'){ + if((aligned[j] != '.')&&(aligned[j] != '-')){ endPos = j + 1; break; } @@ -682,7 +682,7 @@ int Sequence::getEndPos(){ //******************************************************************************************************************** void Sequence::padFromPos(int end){ - cout << end << '\t' << endPos << endl; + //cout << end << '\t' << endPos << endl; for(int j = end; j < endPos; j++) { aligned[j] = '.'; }