def transform_seq_to_Vmatrix(sequence):
    """
    To transform a sequence to binary matrix of Xx4
    :param sequence: sequence data
    :return: 2-dimensional numerical array representing sequences
    """
    m = []
    for x in sequence:
        if x == 'A':
            m.append([1, 0, 0, 0])
        if x == 'C':
            m.append([0, 1, 0, 0])
        if x == 'T':
            m.append([0, 0, 1, 0])
        if x == 'G':
            m.append([0, 0, 0, 1])
    return m