def translate_ambiguous(seq):
    """Translate ambiguous characters from curly bracket format
    to single letter format and remove spaces from sequences.
    """
    seq = seq.replace('{GT}', 'K')
    seq = seq.replace('{AC}', 'M')
    seq = seq.replace('{AG}', 'R')
    seq = seq.replace('{CT}', 'Y')
    seq = seq.replace('{CG}', 'S')
    seq = seq.replace('{AT}', 'W')
    seq = seq.replace('{CGT}', 'B')
    seq = seq.replace('{ACG}', 'V')
    seq = seq.replace('{ACT}', 'H')
    seq = seq.replace('{AGT}', 'D')
    seq = seq.replace('{GATC}', 'N')
    seq = seq.replace(' ', '')
    return seq
