Method: Bio::CodonTable.copy

Defined in:
lib/bio/data/codontable.rb

.copy(i) ⇒ Object

Similar to Bio::CodonTable but returns a copied codon table. You can modify the codon table without influencing hard coded tables.



67
68
69
70
# File 'lib/bio/data/codontable.rb', line 67

def self.copy(i)
  ct = self[i]
  return Marshal.load(Marshal.dump(ct))
end