Skip to content

Commit

Permalink
start test_fix arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
lassedochreden committed Oct 7, 2024
1 parent e4af279 commit b71d2f0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions tests/testthat/test_countInteractions.R
Original file line number Diff line number Diff line change
Expand Up @@ -386,14 +386,14 @@ test_that("countInteractions function works", {
patch_size = 4,
colPairName = "knn_interaction_graph"))

expect_true(all(cur_out$ct[!is.na(cur_out$ct)] == 0))
expect_equal(cur_out$ct[!is.na(cur_out$ct)], rep(0, 22))

expect_silent(cur_out <- countInteractions(pancreasSCE, group_by = "ImageNb",
label = "CellType", method = "patch",
patch_size = 0,
colPairName = "knn_interaction_graph"))

expect_true(all(cur_out$ct[!is.na(cur_out$ct)] == 1))
expect_equal(cur_out$ct[!is.na(cur_out$ct)], rep(1, 22))

expect_silent(cur_out <- countInteractions(pancreasSCE, group_by = "ImageNb",
label = "CellType", method = "patch",
Expand Down
12 changes: 6 additions & 6 deletions tests/testthat/test_integration_interactions.R
Original file line number Diff line number Diff line change
Expand Up @@ -348,12 +348,12 @@ test_that("testInteractions gives same results as neighbouRhood", {
expect_equal(dat_p$group, imcRtools_classic_perm$group_by)
expect_equal(as.character(dat_p$FirstLabel), imcRtools_classic_perm$from_label)
expect_equal(as.character(dat_p$SecondLabel), imcRtools_classic_perm$to_label)
expect_equal(dat_p$p_gt[!is.na(imcRtools_classic$ct)], imcRtools_classic_perm$p_gt[!is.na(imcRtools_classic$ct)])
expect_equal(dat_p$p_lt[!is.na(imcRtools_classic$ct)], imcRtools_classic_perm$p_lt[!is.na(imcRtools_classic$ct)])
expect_equal(dat_p$direction[!is.na(imcRtools_classic$ct)], imcRtools_classic_perm$interaction[!is.na(imcRtools_classic$ct)])
expect_equal(dat_p$p[!is.na(imcRtools_classic$ct)], imcRtools_classic_perm$p[!is.na(imcRtools_classic$ct)])
expect_equal(dat_p$sig[!is.na(imcRtools_classic$ct)], imcRtools_classic_perm$sig[!is.na(imcRtools_classic$ct)])
expect_equal(dat_p$sigval[!is.na(imcRtools_classic$ct)], imcRtools_classic_perm$sigval[!is.na(imcRtools_classic$ct)])
expect_equal(dat_p$p_gt[!is.na(imcRtools_classic$ct)], imcRtools_classic_perm$p_gt[!is.na(imcRtools_classic_perm$ct)])
expect_equal(dat_p$p_lt[!is.na(imcRtools_classic$ct)], imcRtools_classic_perm$p_lt[!is.na(imcRtools_classic_perm$ct)])
expect_equal(dat_p$direction[!is.na(imcRtools_classic$ct)], imcRtools_classic_perm$interaction[!is.na(imcRtools_classic_perm$ct)])
expect_equal(dat_p$p[!is.na(imcRtools_classic$ct)], imcRtools_classic_perm$p[!is.na(imcRtools_classic_perm$ct)])
expect_equal(dat_p$sig[!is.na(imcRtools_classic$ct)], imcRtools_classic_perm$sig[!is.na(imcRtools_classic_perm$ct)])
expect_equal(dat_p$sigval[!is.na(imcRtools_classic$ct)], imcRtools_classic_perm$sigval[!is.na(imcRtools_classic_perm$ct)])

###################################### histocat #############################
d <- prepare_tables(dat_cells, dat_relation)
Expand Down

0 comments on commit b71d2f0

Please sign in to comment.