summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--genome.mjs4
1 files changed, 4 insertions, 0 deletions
diff --git a/genome.mjs b/genome.mjs
index 7303b40..49cae0f 100644
--- a/genome.mjs
+++ b/genome.mjs
@@ -37,6 +37,10 @@ class Genome {
return this._elt
}
+ get nucleotides() {
+ return this.codons.flatMap(c => c.bases)
+ }
+
get onNucleotideSelectionChanged() {
if (this._onNucleotideSelectionChanged !== undefined) {
return this._onNucleotideSelectionChanged