#NEWLINE# def test_unweighted_unifrac( self ) : #NEWLINE# #INDENT# actual = unweighted_unifrac ( self . b1 [ 0 ] , self . b1 [ 1 ] , self . oids1 , self . t1 ) #NEWLINE# expected = 0.238095238095 #NEWLINE# self . assertAlmostEqual ( actual , expected ) #NEWLINE# actual = unweighted_unifrac ( self . b1 [ 0 ] , self . b1 [ 2 ] , self . oids1 , self . t1 ) #NEWLINE# expected = 0.52 #NEWLINE# self . assertAlmostEqual ( actual , expected ) #NEWLINE# actual = unweighted_unifrac ( self . b1 [ 0 ] , self . b1 [ 3 ] , self . oids1 , self . t1 ) #NEWLINE# expected = 0.52 #NEWLINE# self . assertAlmostEqual ( actual , expected ) #NEWLINE# actual = unweighted_unifrac ( self . b1 [ 0 ] , self . b1 [ 4 ] , self . oids1 , self . t1 ) #NEWLINE# expected = 0.545454545455 #NEWLINE# self . assertAlmostEqual ( actual , expected ) #NEWLINE# actual = unweighted_unifrac ( self . b1 [ 0 ] , self . b1 [ 5 ] , self . oids1 , self . t1 ) #NEWLINE# expected = 0.619047619048 #NEWLINE# self . assertAlmostEqual ( actual , expected ) #NEWLINE# actual = unweighted_unifrac ( self . b1 [ 1 ] , self . b1 [ 2 ] , self . oids1 , self . t1 ) #NEWLINE# expected = 0.347826086957 #NEWLINE# self . assertAlmostEqual ( actual , expected ) #NEWLINE# actual = unweighted_unifrac ( self . b1 [ 1 ] , self . b1 [ 3 ] , self . oids1 , self . t1 ) #NEWLINE# expected = 0.347826086957 #NEWLINE# self . assertAlmostEqual ( actual , expected ) #NEWLINE# actual = unweighted_unifrac ( self . b1 [ 1 ] , self . b1 [ 4 ] , self . oids1 , self . t1 ) #NEWLINE# expected = 0.68 #NEWLINE# self . assertAlmostEqual ( actual , expected ) #NEWLINE# actual = unweighted_unifrac ( self . b1 [ 1 ] , self . b1 [ 5 ] , self . oids1 , self . t1 ) #NEWLINE# expected = 0.421052631579 #NEWLINE# self . assertAlmostEqual ( actual , expected ) #NEWLINE# actual = unweighted_unifrac ( self . b1 [ 2 ] , self . b1 [ 3 ] , self . oids1 , self . t1 ) #NEWLINE# expected = 0.0 #NEWLINE# self . assertAlmostEqual ( actual , expected ) #NEWLINE# actual = unweighted_unifrac ( self . b1 [ 2 ] , self . b1 [ 4 ] , self . oids1 , self . t1 ) #NEWLINE# expected = 0.68 #NEWLINE# self . assertAlmostEqual ( actual , expected ) #NEWLINE# actual = unweighted_unifrac ( self . b1 [ 2 ] , self . b1 [ 5 ] , self . oids1 , self . t1 ) #NEWLINE# expected = 0.421052631579 #NEWLINE# self . assertAlmostEqual ( actual , expected ) #NEWLINE# actual = unweighted_unifrac ( self . b1 [ 3 ] , self . b1 [ 4 ] , self . oids1 , self . t1 ) #NEWLINE# expected = 0.68 #NEWLINE# self . assertAlmostEqual ( actual , expected ) #NEWLINE# actual = unweighted_unifrac ( self . b1 [ 3 ] , self . b1 [ 5 ] , self . oids1 , self . t1 ) #NEWLINE# expected = 0.421052631579 #NEWLINE# self . assertAlmostEqual ( actual , expected ) #NEWLINE# actual = unweighted_unifrac ( self . b1 [ 4 ] , self . b1 [ 5 ] , self . oids1 , self . t1 ) #NEWLINE# expected = 1.0 #NEWLINE# self . assertAlmostEqual ( actual , expected )