We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ce2b18f commit 4ef1b1dCopy full SHA for 4ef1b1d
src/translator.cpp
@@ -177,7 +177,7 @@ bool translator::isBase(char &base) {
177
178
string translator::translate(string &line) {
179
string translated;
180
- for (auto pos = 0; pos+3 < line.length(); pos = pos +3) {
+ for (auto pos = 0; pos+3 <= line.length(); pos = pos +3) {
181
string unit = line.substr(pos, 3);
182
translated+= translator::getTranslatedAminoAcid(unit);
183
}
0 commit comments