trisicell.ul.to_mtree

trisicell.ul.to_mtree(tree)[source]

Convert the phylogenetic tree to mutation tree.

Parameters

tree (networkx.DiGraph) – The phylogenetic tree in which cells are in nodes and mutations are at edges.

Returns

The mutation tree in which mutations are in nodes.

Return type

networkx.DiGraph