Skip to content

Commit

Permalink
final script to compute log-likelihood of a topology under Jukes Cant…
Browse files Browse the repository at this point in the history
…or model
  • Loading branch information
sun13005 committed Apr 22, 2017
1 parent a6626b4 commit 36ffbc9
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions tree_like.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,23 +205,6 @@ def calcActualHeight(root):
h += nd.edgelen
return h

def getPostorder(nd, start = True): # how to travel across tree
global _postorder
if start:
_postorder = [] # start with an empty list


if nd.lchild:
getPostorder(nd.lchild, False) # recursive function to
_postorder.append(nd)

if nd.rsib:
getPostorder(nd.rsib, False)



return _postorder


def readnewick(tree):
total_length = len(tree)
Expand Down

0 comments on commit 36ffbc9

Please sign in to comment.