X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=eachgapignore.h;h=8e027b7d72e33cb27599268f6c779c369ea8bdd6;hb=e4ca037c5e637e3d34e64cb5e8ab11b03220188d;hp=9763a6d1af138dc7ebeffe66a94cf0b3c4eb5a9c;hpb=cdcf99b7760701e6869ca8e4e6e91c8e8c4ae186;p=mothur.git diff --git a/eachgapignore.h b/eachgapignore.h index 9763a6d..8e027b7 100644 --- a/eachgapignore.h +++ b/eachgapignore.h @@ -22,19 +22,28 @@ public: int diff = 0; int length = 0; int start = 0; + int end = 0; string seqA = A.getAligned(); string seqB = B.getAligned(); int alignLength = seqA.length(); - for(int i=0; i=0;i--){ + if(seqA[i] != '.' && seqB[i] != '.' && seqA[i] != '-' && seqB[i] != '-' ){ + end = i; + cout << "end: " << end << endl; break; } } - for(int i=start;i