Hello everyone, my problem is that I have a chain of this style. Every time I run my program the chain changes because it is random.
CGGACCCGTGGTCCGAGGTCTAAAGTGATTAGAAGCCGGT
The question is that I must read character by character back and forth but at the moment of reading 4 characters store them and then work with the stored chains. The problem is that when reading 4 characters for example CGGA I do not jump directly to the other 4 but I read the following 4 GGAC to store them and so on. To later order them by number of repetitions.
My iterator should be moved 1 by 1 when reading 4 characters store that string, so along the entire chain. For example, having ACGTAGTCATGC. The first chain that would store would be ACGT, the second CGTA, the third GTAG, the fourth TAGT, the fifth AGTC, as well as the entire chain.
I hope someone gives me a clue. I would appreciate it.