def bin_aa_ct(seq):
    """
    Transform sequency in binary porfile
    :param seq: protein sequence
    :return: binary matrix of sequence
    """
    zz = seq
    A = '1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0'
    C = '0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0'
    D = '0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0'
    E = '0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0'
    F = '0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0'
    G = '0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0'
    H = '0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0'
    I = '0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0'
    K = '0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0'
    L = '0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0'
    M = '0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0'
    N = '0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0'
    P = '0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0'
    Q = '0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0'
    R = '0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0'
    S = '0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0'
    T = '0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0'
    V = '0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0'
    W = '0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0'
    Y = '0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1'
    Z = '0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0'
    matrix = []
    for i in seq:
        i.upper()
    for i in range(0, len(zz)):
        for j in zz[i]:
            if j == 'A':
                matrix.append(A)
            if j == 'C':
                matrix.append(C)
            if j == 'D':
                matrix.append(D)
            if j == 'E':
                matrix.append(E)
            if j == 'F':
                matrix.append(F)
            if j == 'G':
                matrix.append(G)
            if j == 'H':
                matrix.append(H)
            if j == 'I':
                matrix.append(I)
            if j == 'K':
                matrix.append(K)
            if j == 'L':
                matrix.append(L)
            if j == 'M':
                matrix.append(M)
            if j == 'N':
                matrix.append(N)
            if j == 'P':
                matrix.append(P)
            if j == 'Q':
                matrix.append(Q)
            if j == 'R':
                matrix.append(R)
            if j == 'S':
                matrix.append(S)
            if j == 'T':
                matrix.append(T)
            if j == 'V':
                matrix.append(V)
            if j == 'W':
                matrix.append(W)
            if j == 'Y':
                matrix.append(Y)
            if j == 'Z':
                matrix.append(Z)
    return matrix
