def main(matrix, genomes): transpose_matrix(matrix) names = [] for line in open(genomes, "rU"): newline = line.strip() fields = newline.split() names.append(fields) reorder_matrix("tmp.matrix", names) os.system("rm tmp.matrix")
def main(matrix, genomes): transpose_matrix(matrix) names = [] with open(genomes) as my_genomes: for line in my_genomes: newline = line.strip() fields = newline.split() names.append(fields) reorder_matrix("tmp.matrix",names) os.system("rm tmp.matrix")
def main(matrix, tree): transpose_matrix(matrix) names = parse_tree(tree) reorder_matrix("tmp.matrix", names) os.system("rm tmp.matrix")
def main(matrix, genomes): transpose_matrix(matrix) reorder_matrix("tmp.matrix", genomes)