Skip to content

Commit

Permalink
Merge pull request #1260 from mortonjt/ancom_update
Browse files Browse the repository at this point in the history
Addresses #1259
  • Loading branch information
jairideout committed Feb 3, 2016
2 parents 04dff68 + 87a8bee commit cbde7d8
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions skbio/stats/tests/test_composition.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
import numpy as np
import numpy.testing as npt
import pandas.util.testing as pdt

from numpy.random import normal
import pandas as pd
import scipy
Expand Down Expand Up @@ -336,7 +335,6 @@ def setUp(self):
[10, 11, 10, 10, 10, 11],
[10, 13, 10, 10, 10, 12]]).T
self.cats1 = pd.Series([0, 0, 0, 1, 1, 1])

# Real valued data with 2 groupings
D, L = 40, 80
np.random.seed(0)
Expand Down Expand Up @@ -634,8 +632,8 @@ def test_ancom_alternative_test(self):
result = ancom(self.table1,
self.cats1,
multiple_comparisons_correction=None,
significance_test=scipy.stats.mannwhitneyu)
exp = pd.DataFrame({'W': np.array([6, 6, 2, 2, 2, 2, 2]),
significance_test=scipy.stats.ttest_ind)
exp = pd.DataFrame({'W': np.array([5, 5, 2, 2, 2, 2, 2]),
'reject': np.array([True, True, False, False,
False, False, False],
dtype=bool)})
Expand All @@ -645,7 +643,7 @@ def test_ancom_normal_data(self):
result = ancom(self.table2,
self.cats2,
multiple_comparisons_correction=None,
significance_test=scipy.stats.mannwhitneyu)
significance_test=scipy.stats.ttest_ind)
exp = pd.DataFrame({'W': np.array([8, 8, 3, 3,
8, 3, 3, 3, 3]),
'reject': np.array([True, True, False, False,
Expand Down

0 comments on commit cbde7d8

Please sign in to comment.