Pycogent:Loadtree: Transform Tree Branch Lengths In Place?
0
0
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())
tree • 1.7k views
ADD COMMENT

Login before adding your answer.

Traffic: 1602 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6