Skip to content

Commit

Permalink
simulates sequences for a given tree under Jukes Cantor model
Browse files Browse the repository at this point in the history
  • Loading branch information
sun13005 committed Apr 22, 2017
1 parent f148e70 commit fe48c23
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions simSequences.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ def simulateSequences(self, num_sites):

return self.states


def __str__(self):
# __str__ is a built-in function that is used by print to show an object
descendants_as_string = ','.join(['%d' % d for d in self.descendants])
Expand All @@ -97,8 +96,6 @@ def __str__(self):
parstr = '%d' % self.par.number

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 simulate2(preorder, ntax, num_sites, out):
Expand All @@ -117,8 +114,6 @@ def simulate2(preorder, ntax, num_sites, out):
newf.write('end;')




def readnewick(tree):
total_length = len(tree)
internal_node_number = -1
Expand Down

0 comments on commit fe48c23

Please sign in to comment.