diff --git a/gneiss/tests/test_util.py b/gneiss/tests/test_util.py index 542805b..4db5eba 100644 --- a/gneiss/tests/test_util.py +++ b/gneiss/tests/test_util.py @@ -91,18 +91,6 @@ def test_match_mismatch(self): ['b', 'control']], index=['s1', 's3', 's2'], columns=['Barcode', 'Treatment']) - - exp_table = pd.DataFrame([[0, 0, 1, 1], - [2, 2, 4, 4], - [5, 5, 3, 3]], - index=['s1', 's2', 's3'], - columns=['o1', 'o2', 'o3', 'o4']) - - exp_metadata = pd.DataFrame([['a', 'control'], - ['b', 'control'], - ['c', 'diseased']], - index=['s1', 's2', 's3'], - columns=['Barcode', 'Treatment']) with self.assertRaises(ValueError): match(table, metadata) diff --git a/gneiss/util.py b/gneiss/util.py index c9ee63f..bda70d5 100644 --- a/gneiss/util.py +++ b/gneiss/util.py @@ -1,7 +1,3 @@ -import pandas as pd -import numpy as np - - def match(x, y, intersect=False): """ Sorts samples in metadata and contingency table in the same order.