X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=chopseqscommand.cpp;h=4e06201cd352104b5ee9c9d1c41764d16473003e;hb=2c97dd48b8e27ee0a6a86c7a082f4c504c3357c6;hp=68576cdb521efc994bedf2d3b2d40cc98a740b9c;hpb=0ca63a8165baa0afa459e644ebe140ba496d5ba0;p=mothur.git diff --git a/chopseqscommand.cpp b/chopseqscommand.cpp index 68576cd..4e06201 100644 --- a/chopseqscommand.cpp +++ b/chopseqscommand.cpp @@ -233,7 +233,7 @@ string ChopSeqsCommand::getChopped(Sequence seq) { for (int i = 0; i < temp.length(); i++) { //eliminate N's - if (toupper(temp[i]) == 'N') { temp[i] == '.'; } + if (toupper(temp[i]) == 'N') { temp[i] = '.'; } numBasesCounted++; @@ -255,7 +255,7 @@ string ChopSeqsCommand::getChopped(Sequence seq) { for (int i = (temp.length()-1); i >= 0; i--) { //eliminate N's - if (toupper(temp[i]) == 'N') { temp[i] == '.'; } + if (toupper(temp[i]) == 'N') { temp[i] = '.'; } numBasesCounted++; @@ -283,7 +283,7 @@ string ChopSeqsCommand::getChopped(Sequence seq) { for (int i = 0; i < temp.length(); i++) { //eliminate N's if (toupper(temp[i]) == 'N') { - temp[i] == '.'; + temp[i] = '.'; tempLength--; if (tempLength < numbases) { stopSpot = 0; break; } } @@ -309,7 +309,7 @@ string ChopSeqsCommand::getChopped(Sequence seq) { for (int i = (temp.length()-1); i >= 0; i--) { //eliminate N's if (toupper(temp[i]) == 'N') { - temp[i] == '.'; + temp[i] = '.'; tempLength--; if (tempLength < numbases) { stopSpot = 0; break; } }