Thread längste Kette von N's in String bestimmen
(2 answers)
Opened by ingobulla at 2013-03-07 15:02 Code (perl): (dl
)
1 2 3 4 5 6 $string='GAAGANNNNNNNNNNACGCATACTACCGGTGCCCAGCTGCCATNNNNNNNGAGAGAGATCNNNNNNGAGANNNNNNNATTCTCTNNNNCTCAGATCCNNNNNNNNNNNNNNNNNNNNNGAGA'; (@ns) = $string =~ /N+/g; print 'Länge der Ns',"\n"; for (sort @ns) { print length($_),"\n"; } |