This is a test version of Biostars. For the public version, visit https://www.biostars.org.
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())
tree

0 answers

No answers yet.

Log in to answer this question.