#!/usr/bin/env python3 import sys from Bio import Phylo from Bio import AlignIO from Bio.Phylo import TreeConstruction from Bio.Phylo.TreeConstruction import DistanceCalculator from Bio.Phylo.TreeConstruction import DistanceTreeConstructor from Bio.Phylo.Consensus import * def bootstrap_align_trees(fichier, style, matrice): msa = AlignIO.read(fichier, style) msas = bootstrap(msa, 100) calculator = DistanceCalculator(matrice) constructor = DistanceTreeConstructor(calculator) trees = bootstrap_trees(msa, 100, constructor) for tree in trees: print(tree) Phylo.draw_ascii(tree) fichier = sys.argv[1] style = sys.argv[2] matrice = sys.argv[3] bootstrap_align_trees(fichier, style, matrice)