Skip to content

Commit

Permalink
simulate sequences under JK model
Browse files Browse the repository at this point in the history
  • Loading branch information
sun13005 committed Apr 22, 2017
1 parent 20b581b commit 60a48bf
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 379 deletions.
2 changes: 0 additions & 2 deletions simSequences.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ def __str__(self):

return 'node: number=%d edgelen=%g lchild=%s rsib=%s parent=%s descendants=[%s]' % (self.number, self.edgelen, lchildstr, rsibstr, parstr, descendants_as_string)


def simulate(preorder, ntax, num_sites, out):
newf = open(out, 'w')
newf.write('#nexus\n\n')
Expand All @@ -104,7 +103,6 @@ def simulate(preorder, ntax, num_sites, out):
newf.write('%s %s\n' % (nd.number, ''.join(nd.simulateSequences(num_sites))))
newf.write(';\n')
newf.write('end;')

def readnewick(tree):
total_length = len(tree)
internal_node_number = -1
Expand Down
377 changes: 0 additions & 377 deletions tree_test.py

This file was deleted.

0 comments on commit 60a48bf

Please sign in to comment.