Skip to content

Commit

Permalink
Merge pull request #19 from BiomedSciAI/f-utro-patch-6
Browse files Browse the repository at this point in the history
Update test_ReVeaL.py
  • Loading branch information
f-utro authored Nov 15, 2023
2 parents 0ea5847 + c766b8b commit 21160b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_ReVeaL.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def test_compute_mutational_load():
expected_df['count'] = [2, 0, 1, 0, 0, 1]
expected_df['samples'] = ['s1', 's1', 's2', 's2', 's4', 's4']

assert_frame_equal(expected_df.pivot('samples', 'window', 'count').fillna(0), returned_df)
assert_frame_equal(expected_df.pivot(index='samples', columns='window', values='count').fillna(0), returned_df)

returned_df = ReVeaL.compute_mutational_load(sample_data, samples.tolist(), regions_size, 'C', window_size=2)

Expand All @@ -69,7 +69,7 @@ def test_compute_mutational_load():
expected_df['count'] = [1, 0, 0, 1, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0]
expected_df['samples'] = ['s1','s2','s4', 's1','s2','s4', 's1','s2','s4', 's1','s2','s4', 's1','s2','s4']

assert_frame_equal(expected_df.pivot(index='samples', columns='window', value='count').fillna(0), returned_df)
assert_frame_equal(expected_df.pivot(index='samples', columns='window', values='count').fillna(0), returned_df)



Expand Down

0 comments on commit 21160b8

Please sign in to comment.