Skip to content

Commit 3567eae

Browse files
committed
Default to lgx redux
1 parent 35e8f3e commit 3567eae

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

pyard/ard.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ def _sorted_unique_gl(self, gls: List[str], delim: str) -> str:
363363
)
364364

365365
@functools.lru_cache(maxsize=DEFAULT_CACHE_SIZE)
366-
def redux(self, glstring: str, redux_type: VALID_REDUCTION_TYPES) -> str:
366+
def redux(self, glstring: str, redux_type: VALID_REDUCTION_TYPES = "lgx") -> str:
367367
"""
368368
Does ARD reduction with gl string and reduction type
369369

tests/test_pyard.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,3 +205,9 @@ def test_is_null(self):
205205
self.assertFalse(
206206
self.ard.is_null(allele), msg="MACs shouldn't be called as Nulls"
207207
)
208+
209+
def test_default_redux_is_lgx(self):
210+
allele = "HLA-C*04:DTZDE"
211+
lgx_redux = self.ard.redux(allele, "lgx")
212+
default_redux = self.ard.redux(allele)
213+
self.assertEqual(lgx_redux, default_redux, msg="Default redux should be lgx")

0 commit comments

Comments
 (0)