// SetCodons assigns a nucleotide sequence delimited by codon to the codons
// field of CodonSequence. It also automatically fills the seq and prot
// fields by joining the codons into a single continuous string and
// translating each codon into its corresponding amino acid using the
// standard genetic code respectively.
SetCodons assigns a nucleotide sequence delimited by codon to the codons
field of CodonSequence. It also automatically fills the seq and prot
fields by joining the codons into a single continuous string and
translating each codon into its corresponding amino acid using the
standard genetic code respectively.
// SetCodons assigns a nucleotide sequence delimited by codon to the codons // field of CodonSequence . It also automatically fills the seq and prot // fields by joining the codons into a single continuous string and // translating each codon into its corresponding amino acid using the // standard genetic code respectively .
func (s *CodonSequence) SetCodons(seq []string) {
	s.codons = seq
	s.sequence = strings.Join(seq, "")
	s.prot = Translate(s.sequence)
}
func ( s * CodonSequence ) SetCodons ( seq [ ] string ) { s . codons = seq s . sequence = strings . Join ( seq , " " ) s . prot = Translate ( s . sequence ) }
SetCodons assigns a nucleotide sequence delimited by codon to the codons
field of CodonSequence.
SetCodons assigns a nucleotide sequence delimited by codon to the codons field of CodonSequence .
// Overwrites value of .codons // Overwrite value of .sequence // Overwrites the value of .prot