DNAChisel provides several classes to implement different codon optimization strategies found in literature. You can choose a specific class or use the generic CodonOptimize class with a mode parameter to select one of the following behaviors:
MaximizeCAI: Attempts to replace every codon with the "best synonymous codon" (the most frequent codon in the target species).MatchTargetCodonUsage: Optimizes the sequence so its codon usage frequency profile matches that of the target species.HarmonizeRCA: Ensures that codons that were rare in the original sequence's species remain rare in the final sequence for the target species (codon usage harmonization).
CRITICAL USAGE NOTE: When using these specifications, you must always use them in conjunction with an EnforceTranslation constraint defined over the same location. This ensures that the optimization process preserves the original amino acid sequence.