Commit a168c06f authored by Carine Rey's avatar Carine Rey
Browse files

update the C4AmaranthaceaePolyroot tree

parent ede49dcc
from ete3 import Tree
import sys
f_l=["./C4AmaranthaceaePolyroot.nhx","./cyp_coding.Chrysithr_root.nhx"]
def m_bl(t_n, m):
t=Tree(t_n)
nb_root_children = len(t.get_children())
if nb_root_children > 2:
print("Unrooted tree")
sys.exit(1)
for n in t.traverse():
n.dist = n.dist * m
out_n = t_n.replace(".nhx",".bl_%.2f.nhx" %(m))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment