Options
All
  • Public
  • Public/Protected
  • All
Menu

A class that represents a codon object a codon must have 3 bases to be able to be converted into an aminoacid

see

https://en.wikipedia.org/wiki/Genetic_code#RNA_codon_table

Hierarchy

  • Codon

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

  • Codon constructor can optionaly accept it's RNA bases.

    Parameters

    • Optional fp: RNA

      First base of the codon

    • Optional sp: RNA

      Second base of the codon

    • Optional tp: RNA

      Third base of the codon

      var cod = new Codon(RNA.A, RNA.U, RNA.G);
      // OR
      var cod = new Codon();
      

    Returns Codon

Properties

Private _fp

_fp: RNA

Private _sp

_sp: RNA

Private _tp

_tp: RNA

Accessors

fp

  • get fp(): RNA
  • set fp(base: RNA): void

sp

  • get sp(): RNA
  • set sp(base: RNA): void

tp

  • get tp(): RNA
  • set tp(base: RNA): void

Methods

setCodon

Static getCodonChain

  • getCodonChain(codons: Codon[]): string
  • Returns a string made with the matches of a Codon array

    static

    Parameters

    Returns string

    var cod1 = new Codon(RNA.A,RNA.U,RNA.G);
    var cod2 = new Codon(RNA.U,RNA.G,RNA.A);
    var arr = [cod1,cod2];
    var aaSeq = Codon.getCodonChain(arr);
    console.log(aaSeq); // Met-STOP
    

Static matchCodon

  • matchCodon(codon: Codon): string

Generated using TypeDoc