def bootstrap_support(master_tree, trees):
 new_master = setup_master_tree(master_tree, trees)
 for sub_tree in trees:
  tree_support(new_master, sub_tree)
 num_trees = len(trees)
 bootstrap_supports = {}
 for node in new_master.iterNontips(include_self=True):
  node.bootstrap_support = (node.bootstrap_support / num_trees)
  bootstrap_supports[node.Name] = node.bootstrap_support
 return (new_master, bootstrap_supports)

def bootstrap_support ( master_tree , trees ) : new_master = setup_master_tree ( master_tree , trees ) for sub_tree in trees : tree_support ( new_master , sub_tree ) num_trees = len ( trees ) bootstrap_supports = { } for node in new_master . iterNontips ( include_self = True ) : node . bootstrap_support = ( node . bootstrap_support / num_trees ) bootstrap_supports [ node . Name ] = node . bootstrap_support return ( new_master , bootstrap_supports )
calculate bootstrap/jackknife support of master .