diff options
-rw-r--r-- | genome.mjs | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -43,6 +43,12 @@ class Genome { }, []) } + get length() { + return this.codons.reduce((acc, c) => { + return acc + c.bases.length + }, 0) + } + get onNucleotideSelectionChanged() { if (this._onNucleotideSelectionChanged !== undefined) { return this._onNucleotideSelectionChanged |