Skip to content

Commit

Permalink
Added test for ignore_group_order
Browse files Browse the repository at this point in the history
  • Loading branch information
efriman committed Jul 10, 2023
1 parent e3ff249 commit 0b25252
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/test_coolpup.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,14 @@ def test_bystrand_pileups_with_expected(request):
)
pup = pu.pileupsByStrandWithControl()
assert np.all(pup.sort_values("orientation")["n"] == [1, 3, 1, 1, 6])
# Test ignore_group_order
pu = PileUpper(
clr, cc, expected=False, ooe=False, control=False
)
pup = pu.pileupsByStrandWithControl(ignore_group_order=True)
assert not pup[pup["orientation"] == "+-"].empty
assert pup[pup["orientation"] == "-+"].empty
assert np.all(pup.sort_values("orientation")["n"] == [1, 4, 1, 6])


def test_bystrand_pileups_with_controls(request):
Expand Down

0 comments on commit 0b25252

Please sign in to comment.