Re: finding homopolymers in both directions

2010-08-03 Thread Peter Otten
Lee Sander wrote: > Hi, > Suppose I have a string such as this > 'aabccefghiiijkr' > > I would like to print out all the positions that are flanked by a run > of symbols. > So for example, I would like to the output for the above input as > follows: > > 2 b 1 aa > 2 b -1 cc > 10

finding homopolymers in both directions

2010-08-03 Thread Lee Sander
Hi, Suppose I have a string such as this 'aabccefghiiijkr' I would like to print out all the positions that are flanked by a run of symbols. So for example, I would like to the output for the above input as follows: 2 b 1 aa 2 b -1 cc 10 e -1 cc 11 f 1 g 17 h 1 iii 17