Return the string representation of this sequence. */
| 71 | |
| 72 | /** Return the string representation of this sequence. */ |
| 73 | Sequence Kmer::str() const |
| 74 | { |
| 75 | Sequence s; |
| 76 | s.reserve(s_length); |
| 77 | for (unsigned i = 0; i < s_length; i++) |
| 78 | s.push_back(codeToBase(at(i))); |
| 79 | return s; |
| 80 | } |
| 81 | |
| 82 | /** Swap the positions of four bases. */ |
| 83 | static const uint8_t swapBases[256] = { |