Commits

Casey Dunn committed ee15315

calculates mean support for each tree

  • Participants
  • Parent commits bfbd14a
  • Branches issue-43

Comments (0)

Files changed (1)

File agalma/genetree.py

 import os
 
 from dendropy import Tree
+import numpy
 
 from Bio import AlignIO
 
 			if node.label:
 				support = float(node.label)
 				support_vals.append( support )
-		print "tree:" + basename
-		print support_vals
-
+		
+		mean_support = None
+		if len(support_vals) > 0:
+			mean_support = numpy.mean( support_vals )
+		print mean_support
 	# Need to ingest or finish trees here