CodonTable

data class CodonTable(val id: Int, val name: List<String>, val start_codons: List<Codon>, val stop_codons: List<Codon>, val codonToAA: Map<Codon, AminoAcid>, val ambiguous: Boolean = false)

The genetic code or codon table for a clade of life

Both DNA and RNA are represented in a single table (this differs from BioPython). Codon are mapped to AminoAcid with codonToAA map and vice versa with aaToCodon multimap. stop_codons are not included in the codonToAA map unless used for both stop and encoding (a few clades), and will return a null. ambiguous codons are not implemented.

Constructors

Link copied to clipboard
constructor(id: Int, name: List<String>, start_codons: List<Codon>, stop_codons: List<Codon>, codonToAA: Map<Codon, AminoAcid>, ambiguous: Boolean = false)

Properties

Link copied to clipboard

multimap to AminoAcid to list of Codon

Link copied to clipboard
val ambiguous: Boolean = false

whether ambiguous codons are used (currently not implemented)

Link copied to clipboard

map of Codon to AminoAcid - is null for stop codons

Link copied to clipboard
val id: Int

NCBI id number

Link copied to clipboard

a list of all NCBI names in preferred order

Link copied to clipboard

a list of start codons, which are also in the codonToAA map

Link copied to clipboard

a list of stop codons (generally not in codonToAA map)

Functions

Link copied to clipboard
open override fun toString(): String

fun toString(codonSet: CodonSet): String

Return a text representation of the codon table.