def codon2aa(codon, trans_table):
    """
    convert codon to amino acid
    """
    return Seq(''.join(codon), IUPAC.ambiguous_dna).translate(table = trans_table)[0]
def codon2aa ( codon , trans_table ) : return Seq ( '' . join ( codon ) , IUPAC . ambiguous_dna ) . translate ( table = trans_table ) [ 0 ]
convert codon to amino acid