X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;ds=inline;f=chopseqscommand.cpp;fp=chopseqscommand.cpp;h=abfd8dc239b185a69e86e7641a8505761ff9766e;hb=7f0cae4f4853cc3f12bc751ee06ea31c7c97496e;hp=e2b0fa46fc28bb6fd6be1af8a085e409a9a8b4df;hpb=113672689e4c84383a0304bfd21fb9574a77866c;p=mothur.git diff --git a/chopseqscommand.cpp b/chopseqscommand.cpp index e2b0fa4..abfd8dc 100644 --- a/chopseqscommand.cpp +++ b/chopseqscommand.cpp @@ -241,7 +241,7 @@ string ChopSeqsCommand::getChopped(Sequence seq) { } if (stopSpot == 0) { temp = ""; } - else { temp = temp.substr(0, stopSpot); } + else { temp = temp.substr(0, stopSpot+1); } }else { if (!Short) { temp = ""; } //sequence too short @@ -294,7 +294,7 @@ string ChopSeqsCommand::getChopped(Sequence seq) { } if (stopSpot == 0) { temp = ""; } - else { temp = temp.substr(0, stopSpot); } + else { temp = temp.substr(0, stopSpot+1); } }else { if (!Short) { temp = ""; } //sequence too short @@ -320,7 +320,7 @@ string ChopSeqsCommand::getChopped(Sequence seq) { } if (stopSpot == 0) { temp = ""; } - else { temp = temp.substr(stopSpot+1); } + else { temp = temp.substr(stopSpot); } }else { if (!Short) { temp = ""; } //sequence too short }