Skip to main content

Timeline for The Genetic Code

Current License: CC BY-SA 3.0

4 events
when toggle format what by license comment
May 13, 2016 at 8:13 comment added terdon I don't know ruby so I may be missing something here, but wouldn't it be better to have the codons as keys and the amino acids as values for the hash? Something like "AAG" => "K", "AAA" => "K" instead of "K" => ["AAA", "AAG"]. That way the lookup is direct and you don't need to scan an array each time.
May 12, 2016 at 20:42 comment added Mast Unless you actually wanted it to stop scanning on an invalid sequence like "UGA"? That's what the table implied, so I went with that. It also seemed to fit the idea of returning as soon as you know you're done. In hindsight I should probably return behind the switch anyway, at least that's what I'd do in other languages.
May 12, 2016 at 20:05 review First posts
May 13, 2016 at 10:40
May 12, 2016 at 19:58 history answered James Robey CC BY-SA 3.0