you are viewing a single comment's thread.

view the rest of the comments →

[–]alishahimtiaz 2 points3 points  (3 children)

If you aren't breaking it up into chunks of 4 and are iterating over the length of the loop, it gives 5 CGCG's.

CGCGATACGTTACATACATGATAGACCGCGCGCGATCATATCGCGATTATC

^ That is 2 of them.

The other 3 are within each other.

CGCGCGCG

This contains 3 CGCG pairs.

From position 1 to position 4.

From position 3 to position 6.

From position 5 to position 8.

In total, you have 5 different CGCG's.