Skip to content

Commit 9f15aed

Browse files
authored
Lower number of genes to test (#128)
* Lower number of genes to test * Increaase number of genes
1 parent a133555 commit 9f15aed

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

R/parse_config.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,8 @@ loadModels <- function(models_file,
377377
delim <- ifelse(fext == "csv", ",", "\t")
378378
models_table <- data.table::fread(file_path(data_folder, models_file),
379379
sep = delim,
380-
data.table = FALSE
380+
data.table = FALSE,
381+
nThread = nthreads
381382
)
382383
}
383384
if (ncol(models_table) < 2) {

tests/testthat/helper-workflow.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@ measures_data <- data.frame(
1414
var_b = c("a", "a", "b", "b")
1515
)
1616

17-
m <- 1000
17+
m <- 250
1818
preffix <- do.call(paste0, replicate(4, sample(LETTERS, m, TRUE), FALSE))
1919
suffix <- do.call(paste0, replicate(3, sample(1:9, m, TRUE), FALSE))
2020
gene_names <- paste0(preffix, suffix)
2121
exp_matrix <- matrix(
22-
round(stats::rnorm(m * 4)+rpois(m*4, 4), 2),
22+
round(stats::rnorm(m * 4)+stats::rpois(m*4, 3), 2),
2323
nrow = m,
2424
ncol = 4,
2525
dimnames = list(gene_names, c("P1", "P2", "P3", "P4"))

0 commit comments

Comments
 (0)