Skip to content

Commit eada5eb

Browse files
committed
Converted PANDA test object to matrix
1 parent 16ad1d4 commit eada5eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/testthat/test-panda.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ test_that("panda function works", {
2828
# i.e computing = "cpu", save_memory =T , precision="single", save_memory = T, save_tmp=F, keep_expression_matrix = T, modeProcess = 'intersection'
2929
test2Panda <- pandaPy(T4_expression_file_path, motif_file_path,ppi_file_path,precision = "single", save_memory = T, save_tmp = F,keep_expression_matrix = TRUE, modeProcess = "intersection" )$WAMpanda
3030
test2Panda_mat <- as.matrix(test2Panda)
31-
expect_equal(test2Panda[1,1],2.229422, tolerance=1e-5)
31+
expect_equal(test2Panda_mat[1,1],2.229422, tolerance=1e-5)
3232

3333
# test 6: when processMode = legacy, remove_missing=FALSE
3434
test3Panda <- pandaPy(T4_expression_file_path, motif_file_path,ppi_file_path, modeProcess = "legacy", remove_missing = FALSE)$panda

0 commit comments

Comments
 (0)