def make_mapped_matrix(map_dict, input_frame):

    frame_index = input_frame.index.tolist()
    nindex = len(frame_index)
    ncols = len(input_frame.columns)
    integer_matrix = np.ndarray((nindex, ncols),
                                dtype=np.int32)

    E.info("mapping cluster labels")
    matrix_idx = [h for h, g in enumerate(frame_index)]
    for idx in matrix_idx:
        for col in range(ncols):
            mod = input_frame.iloc[idx][col+1]
            integer_matrix[idx][col] = map_dict[mod]

    return integer_matrix
return a matrix with integer labels from mapping
dataset/ETHPy150Open CGATOxford/cgat/CGAT/Timeseries/__init__.py/make_mapped_matrix