|
7 | 7 | import os
|
8 | 8 |
|
9 | 9 | NODATA = int(os.getenv('NODATA', '1'))
|
10 |
| -print(NODATA) |
11 | 10 |
|
12 | 11 | class PostProcessorTestNoData(TestSetup):
|
13 | 12 | def setUp(self):
|
@@ -98,19 +97,6 @@ def test_random_overlap_fast_faster_than_descriptive(self):
|
98 | 97 | descriptive = timeit.timeit(lambda: pp.get_random_overlap(eligible_genes, kept_genes, algorithm="descriptive"), number=3)
|
99 | 98 | self.assertLess(fast, descriptive)
|
100 | 99 |
|
101 |
| - def test_dge_missing_phenotype(self): |
102 |
| - |
103 |
| - config = self.config.copy() |
104 |
| - config.input.tag = "autism" |
105 |
| - |
106 |
| - pp = PostProcessor(config, translation_table=self.translation_table_path) |
107 |
| - |
108 |
| - with open(self.test_outer_results, "r") as file: |
109 |
| - outer_results = json.load(file) |
110 |
| - |
111 |
| - pp.outer_result = outer_results |
112 |
| - |
113 |
| - self.assertIsNone(pp.dge(self.results_file)) |
114 | 100 |
|
115 | 101 | def test_contingency_table(self):
|
116 | 102 | import numpy as np
|
@@ -214,6 +200,21 @@ def test_goea(self):
|
214 | 200 |
|
215 | 201 | self.pp.go_enrichment(self.results_file)
|
216 | 202 |
|
| 203 | + |
| 204 | + def test_dge_missing_phenotype(self): |
| 205 | + |
| 206 | + config = self.config.copy() |
| 207 | + config.input.tag = "autism" |
| 208 | + |
| 209 | + pp = PostProcessor(config, translation_table=self.translation_table_path) |
| 210 | + |
| 211 | + with open(self.test_outer_results, "r") as file: |
| 212 | + outer_results = json.load(file) |
| 213 | + |
| 214 | + pp.outer_result = outer_results |
| 215 | + |
| 216 | + self.assertIsNone(pp.dge(self.results_file)) |
| 217 | + |
217 | 218 |
|
218 | 219 |
|
219 | 220 |
|
|
0 commit comments