def generate_sub_codons_right(codons_dict):
    """Generate the sub_codons_right dictionary of codon suffixes.

    Parameters
    ----------
    codons_dict : dict
        Dictionary, keyed by the allowed 'amino acid' symbols with the values
        being lists of codons corresponding to the symbol.

    Returns
    -------
    sub_codons_right : dict
        Dictionary of the 1 and 2 nucleotide suffixes (read from 5') for
        each codon in an 'amino acid' grouping.

    """
    sub_codons_right = {}
    for aa in list(codons_dict.keys()):
        sub_codons_right[aa] = list(set([x[-1] for x in codons_dict[aa]] + [x[-2:] for x in codons_dict[aa]]))

    return sub_codons_right