What codon optimisation does
Sixty-one codons encode twenty amino acids, and a given organism does not use them equally: the codons that match its most abundant tRNAs are used more often, especially in highly expressed genes. When you express a gene in an unfamiliar host — a human enzyme in E. coli, a bacterial protein in yeast — the original codon choices can slow translation at exactly the positions where the host has little of the matching tRNA.
This tool takes a protein sequence (or a coding DNA sequence, which it translates first) and rebuilds it as DNA using your host’s codon habits. Only the third, silent position changes, so the amino-acid sequence you started with is exactly what comes back out of the ribosome.
Highest CAI versus harmonised choice
The codon adaptation index is the geometric mean of the relative adaptiveness of the codons you chose: for each residue, how close its codon is to the most-used synonymous one. CAI = 1 means every residue got the host favourite, and a gene whose synonymous codons were picked at random scores around 0.35.
Max CAI is the aggressive option, and it is not always the best one. In an AT-rich host such as yeast, pushing every residue to its favourite codon also drags GC content up and can create long runs and repeats that make the construct hard to synthesise or unstable. Harmonised choice instead draws each codon in proportion to how often the host actually uses it — seeded, so the same input and seed give the same sequence — which keeps the host’s overall codon and GC profile while still removing the worst codons. For stable-cell-line and mammalian expression work, harmonised is usually the safer starting point.
Keeping unwanted motifs out
List the sequences you do not want in the construct: restriction or assembly sites (GAATTC for EcoRI, GTCGAC for SalI), homopolymer runs that a synthesis provider flags, or a motif that would create an internal splice site or a promoter.
Motif avoidance is checked across codon junctions rather than codon by codon, because a site is often formed by the last bases of one codon plus the first of the next — a run of lysines becomes AAAAAA whichever individual codon you look at. When every synonymous choice, or its junction, recreates a motif it cannot be removed, so the tool keeps the preferred codon and tells you the motif is still present and how many times. Add the site to a flanking region or change your cloning strategy in that case.