示例#1
0
def main():
    gmat = load_groups("data/manual_classification_result/166.tab")

    mat_ids = ["CEpiMatch", "MATT", "Multiprot", "SPa", "SPb", "SPe", "TMa", "TMb", "TMc", "RMSD"]
    mats = map(lambda mat_id: load_mat("clustering/data/%s.csv" % mat_id), mat_ids)

    mats[-1] = 1 - mats[-1] / mats[-1].max(1)

    print_overall_yards(gmat, mats, mat_ids)
示例#2
0
def single_yard():
    import sys

    mat_path, method = sys.argv[1:]

    gmat = load_groups("data/manual_classification_result/166.tab")
    mat = load_mat(mat_path)

    if "RMSD" in mat_path:
        mat = 1 - mat / mat.max(1)

    print_yard_file(gmat, mat, method)