

def setUp(self):
    dm_ids = ['s1', 's2', 's3', 's4']
    self.grouping_equal = ['Control', 'Control', 'Fast', 'Fast']
    self.df = pd.read_csv(io.StringIO('ID,Group\ns2,Control\ns3,Fast\ns4,Fast\ns5,Control\ns1,Control'), index_col=0)
    self.dm_ties = DistanceMatrix([[0, 1, 1, 4], [1, 0, 3, 2], [1, 3, 0, 3], [4, 2, 3, 0]], dm_ids)
    self.dm_no_ties = DistanceMatrix([[0, 1, 5, 4], [1, 0, 3, 2], [5, 3, 0, 3], [4, 2, 3, 0]], dm_ids)
    self.grouping_unequal = ['Control', 'Treatment1', 'Treatment2', 'Treatment1', 'Control', 'Control']
    self.grouping_unequal_relabeled = ['z', 42, 'abc', 42, 'z', 'z']
    self.dm_unequal = DistanceMatrix([[0.0, 1.0, 0.1, 0.5678, 1.0, 1.0], [1.0, 0.0, 0.002, 0.42, 0.998, 0.0], [0.1, 0.002, 0.0, 1.0, 0.123, 1.0], [0.5678, 0.42, 1.0, 0.0, 0.123, 0.43], [1.0, 0.998, 0.123, 0.123, 0.0, 0.5], [1.0, 0.0, 1.0, 0.43, 0.5, 0.0]], ['s1', 's2', 's3', 's4', 's5', 's6'])
    self.exp_index = ['method name', 'test statistic name', 'sample size', 'number of groups', 'test statistic', 'p-value', 'number of permutations']
    self.assert_series_equal = partial(assert_series_equal, check_index_type=True, check_series_type=True)

dataset/ETHPy150Open biocore/scikit-bio/skbio/stats/distance/tests/test_anosim.py TestANOSIM.setUp/original