X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=onegapignore.h;h=af284fcc6857a3c5a42545ca6c78c22cded9424d;hb=b8f3e71c8a0310e25261464d27e6fcfe891483b0;hp=6421741c0d4c153794ab40efc9318af6d64349a4;hpb=cdcf99b7760701e6869ca8e4e6e91c8e8c4ae186;p=mothur.git diff --git a/onegapignore.h b/onegapignore.h index 6421741..af284fc 100644 --- a/onegapignore.h +++ b/onegapignore.h @@ -9,6 +9,7 @@ * */ + #include "dist.h" /**************************************************************************************************/ @@ -28,17 +29,19 @@ public: string seqA = A.getAligned(); string seqB = B.getAligned(); int alignLength = seqA.length(); - + // this assumes that sequences start and end with '.'s instead of'-'s. for(int i=0;i=0;i--){ - if(seqA[i] != '.' && seqB[i] != '.'){ + if(seqA[i] != '.' && seqB[i] != '.' && seqA[i] != '-' && seqB[i] != '-' ){ end = i; + cout << "end: " << end << endl; break; } }