Ejemplo n.º 1
0
	def set_initial_tree(self):
		cm = self.cm
		first_tree = list_tree.list_tree(taxa=cm.taxon_set(), outgroup=cm.get_outgroup())
		first_len = first_tree.length(cm)
		self.good_trees.append(first_tree)
		self.good_len = first_len
		print "Initial tree length: %d" % first_len
Ejemplo n.º 2
0
	def set_trees(self, trees):
		'''Set the tree list on the basis of a list of tree objects'''
		print "Current good length: %d" % self.good_len
		self.good_trees = map(lambda t: list_tree.list_tree(tree=t), trees)
		self.good_len = trees[0].length(self.cm)
		print "New good length: %d" % self.good_len