summaryrefslogtreecommitdiffstats
path: root/genome.mjs
diff options
context:
space:
mode:
authorBrian Cully <bjc@kublai.com>2021-02-19 12:42:11 -0500
committerBrian Cully <bjc@kublai.com>2021-02-19 12:42:11 -0500
commit0a703e8f463dfadcf102e0b553d798b8046b03ee (patch)
tree791775233693855907d6bbc79c5c0846426c6611 /genome.mjs
parent555e3faea8d3cc8ae5764876fe957039cdc0d431 (diff)
downloadmolsim2-0a703e8f463dfadcf102e0b553d798b8046b03ee.tar.gz
molsim2-0a703e8f463dfadcf102e0b553d798b8046b03ee.zip
Add amino acid selection after mutation.
Diffstat (limited to 'genome.mjs')
-rw-r--r--genome.mjs1
1 files changed, 1 insertions, 0 deletions
diff --git a/genome.mjs b/genome.mjs
index 49cae0f..432a59b 100644
--- a/genome.mjs
+++ b/genome.mjs
@@ -81,6 +81,7 @@ class Genome {
for (const c of this.codons) {
for (const b of c.bases) {
if (b === this._selectedNucleotide) {
+ this.selectedCodon = c
this.onNucleotideSelectionChanged(this._selectedNucleotide, i)
return
}