]> git.donarmstrong.com Git - mothur.git/blobdiff - sequence.cpp
added debug output classify.seqs. worked on make.contigs command. added large paramet...
[mothur.git] / sequence.cpp
index d877f4b93f33d8123ff6a1a9f7f839dc680fcf61..a1e787bab8cd24ebb352593055e7d2fc10b406de 100644 (file)
@@ -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;
                        }