I would like to randomly cleave sequences of length (Ln) until the average length of the resulting framents is 50 nt (+/- 2 nt)
I started it with perl , but i've some problems with the average length constraint ...
I wanted to select a random position in [0 ... sequence length] and calculate the length of created segments. But i think it's not the right way to do.
Any suggestions ?