Return a new pattern from a genome that returns a stream of aminoacid triplets (codons).
The genome data, a string containing the characters representing the four nucleic acids: $a, $g, $t, $c.( b = CodonPattern("atatatac", inf); t = b.asStream.nextN(18); ) // load from a file ( x = CodonPattern.new.loadData("data/escherichia-coli".resolveRelative); x.genome.postln; // the nucleic acids x.asStream.all.postcs; // the aminoacids )
$a, $g, $t, $c