// NewCodonSequence is a constructor that creates a new CodonSequence where
// prot and codons field values are automatically computed from the provided
// nucleotide sequence.
NewCodonSequence is a constructor that creates a new CodonSequence where
prot and codons field values are automatically computed from the provided
nucleotide sequence.
// NewCodonSequence is a constructor that creates a new CodonSequence where // prot and codons field values are automatically computed from the provided // nucleotide sequence .
func NewCodonSequence(name, description, sequence string) *CodonSequence {
	if len(sequence)%3 != 0 {
		panic(fmt.Sprintf("Given seq's length (%d) not divisible by 3", len(sequence)))
	}
	s := new(CodonSequence)
	s.name = name
	s.description = description
	s.SetSequence(sequence)
	return s
}
func NewCodonSequence ( name , description , sequence string ) * CodonSequence { if len ( sequence ) % 3 != 0 { panic ( fmt . Sprintf ( " " , len ( sequence ) ) ) } s := new ( CodonSequence ) s . name = name s . description = description s . SetSequence ( sequence ) return s }
NewCodonSequence is a constructor that creates a new CodonSequence where
prot and codons field values are automatically computed from the provided
nucleotide sequence.
NewCodonSequence is a constructor that creates a new CodonSequence where prot and codons field values are automatically computed from the provided nucleotide sequence .