Translate nucleotide sequence to amino acids to match a given aa sequence

With this Dialog one or more nucleotide sequences can be translated to amino acids according to the such that they are most similar to a given reference amino acid sequence. The resulting amino acid sequence depends on