Pycogent:Loadtree: Transform Tree Branch Lengths In Place?
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())
• 1,988 views
•
link
0 answers
No answers yet.
Log in to answer this question.