Entering edit mode
10.6 years ago
a1ultima
▴
850
After loading a tree (e.g. in Newick format) with LoadTree module in PyCogent Python Package:
from cogent import LoadTree
tree = LoadTree('exampleTree.tre')
I can scale branch lengths of the tree in place PyCogent Cookbook:
tree.scaleBranchLengths()
Is there a method for applying a more general transformation (e.g. Log-transform) in place? For example:
tree.transformBranchLengths(log())