Skip to content

Commit

Permalink
use correct function in test
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Dietrich committed Dec 14, 2023
1 parent 702c873 commit f6de93e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: SimBu
Title: Simulate Bulk RNA-seq Datasets from Single-Cell Datasets
Version: 1.5.3
Version: 1.5.4
Authors@R:
person(given = "Alexander",
family = "Dietrich",
Expand Down
4 changes: 2 additions & 2 deletions tests/testthat/test_simulator.R
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ test_that("test RNG", {
seed <- 123
sim1 <- SimBu::simulate_bulk(data = dataset, scenario = "even", scaling_factor = "NONE", balance_even_mirror_scenario = 0, nsamples = 10, ncells = 100, run_parallel = FALSE, seed = seed)
sim2 <- SimBu::simulate_bulk(data = dataset, scenario = "even", scaling_factor = "NONE", balance_even_mirror_scenario = 0, nsamples = 10, ncells = 100, run_parallel = FALSE, seed = seed)
x1 <- rowSums(assays(sim1$bulk)[['bulk_counts']])
x2 <- rowSums(assays(sim2$bulk)[['bulk_counts']])
x1 <- Matrix::rowSums(assays(sim1$bulk)[['bulk_counts']])
x2 <- Matrix::rowSums(assays(sim2$bulk)[['bulk_counts']])
testthat::expect_equal(x1,x2)

# test that samples inside one simulation still are different
Expand Down

0 comments on commit f6de93e

Please sign in to comment.