Skip to content

Commit

Permalink
Update hscn test to choose cells correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
marcjwilliams1 committed Jan 6, 2025
1 parent bd82719 commit 544e415
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/testthat/test-hscn.R
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@ test_that("Test rephasing by minimizing number of events", {
expect_true(isTRUE(all.equal(trueA$x, newA)) | isTRUE(all.equal(trueB$x, newA)))
})

df <- sim_data_bb$CNbins %>%
df <- sim_data_bb$ascn %>%
group_by(cell_id, chr) %>%
summarize(x = sum(state != 2) / n()) %>%
summarize(x = sum(A != B) / n()) %>%
arrange(desc(x)) %>%
group_by(chr) %>%
filter(row_number() < 5)
Expand Down

0 comments on commit 544e415

Please sign in to comment.