Exemplo n.º 1
0
 def test_mds_02(self):
     # handle all zero distances
     df = outliers.mds(np.zeros(shape=self.mat.shape), self.taxa)
     self.assertEqual(df.shape[0], self.mat.shape[0])
     self.assertTrue((df['seqname'] == self.taxa).all())
     self.assertTrue((df['x'] == 0).all())
     self.assertTrue((df['y'] == 0).all())
Exemplo n.º 2
0
 def test_mds_02(self):
     # handle all zero distances
     df = outliers.mds(np.zeros(shape=self.mat.shape), self.taxa)
     self.assertEqual(df.shape[0], self.mat.shape[0])
     self.assertTrue((df["seqname"] == self.taxa).all())
     self.assertTrue((df["x"] == 0).all())
     self.assertTrue((df["y"] == 0).all())
Exemplo n.º 3
0
 def test_mds_01(self):
     df = outliers.mds(self.mat, self.taxa)
     self.assertEqual(df.shape[0], self.mat.shape[0])
     self.assertTrue((df['seqname'] == self.taxa).all())
Exemplo n.º 4
0
 def test_mds_01(self):
     df = outliers.mds(self.mat, self.taxa)
     self.assertEqual(df.shape[0], self.mat.shape[0])
     self.assertTrue((df["seqname"] == self.taxa).all())