@@ -0,0 +1,888 @@
+'''%0A    Process PipelinePilot cluster output file%0A'''%0Afrom csv import DictReader%0A%0Adef GetCenterList(infile):%0A    # get the list of ligand name which are the center and the cluster size%0A    lig_name_col = %22Column1%22%0A    center_list  = %5B%5D%0A    ig_count     = 0%0A    for line in DictReader(open(infile), delimiter = %22%5Ct%22):%0A        if ig_count != 0:%0A            ig_count = ig_count - 1%0A            continue%0A        print line%0A        if float(line%5B%22DistanceToClosest%22%5D) == 0:%0A            cluster_size= int(line%5B%22ClusterSize%22%5D)%0A            center_list.append(%5Bline%5Blig_name_col%5D, cluster_size%5D)%0A            ig_count = cluster_size - 1%0A    print center_list%0A%0A%0Aif __name__ == %22__main__%22:%0A    import  argparse%0A    parser = argparse.ArgumentParser(description='Build tree for vis.')%0A    parser.add_argument('--infile')%0A%0A    arg = parser.parse_args()%0A    infile = arg.infile%0A    GetCenterList(infile)%0A

process the output from pilot pilot