Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: mulea
Type: Package
Title: Enrichment Analysis Using Multiple Ontologies and False Discovery Rate
Version: 1.1.1
Version: 1.1.2
Authors@R: c(
person("Cezary", "Turek", role = "aut",
comment = c(ORCID = "0000-0002-1445-5378")),
Expand Down
10 changes: 10 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
# mulea 1.1.2

## Bug Fixes

- The resampling eFDR's parallel backend now propagates the host's library paths to
the PSOCK worker processes before loading the package. This fixes vignette
re-building under `R CMD check` on Windows, which failed with "there is no package
called 'mulea'" because the workers could not locate the package in the temporary
`*.Rcheck` library.

# mulea 1.1.1

- Updated citation to the BMC Bioinformatics article.
Expand Down
12 changes: 10 additions & 2 deletions R/set-based-enrichment-test.r
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,17 @@ do_the_simulation <- function(list_of_all_genes, pool, select,DB, steps,
sep = "\\")
cl <- makeCluster(spec=nthread, type="PSOCK", outfile=cl_outfile)
} else { cl <- makeCluster(spec = nthread, type = "PSOCK")}
# Propagate the host's library paths to the PSOCK workers before loading
# the package. PSOCK workers are fresh R sessions that do not inherit the
# parent's .libPaths(); without this, library("mulea") fails on them when
# the package lives outside the default library tree -- e.g. the temporary
# *.Rcheck library during R CMD check (notably on Windows), which aborts
# vignette re-building with "there is no package called 'mulea'".
worker_libpaths <- .libPaths()
clusterExport(cl, c("DB","list_of_all_genes", "pool", "select",
"seeds_per_thread", "steps_per_thread"), envir = environment())
clusterEvalQ(cl, library("mulea"))
"seeds_per_thread", "steps_per_thread", "worker_libpaths"),
envir = environment())
clusterEvalQ(cl, { .libPaths(worker_libpaths); library("mulea") })
result_of_paralel <- clusterApplyLB(cl = cl, seq_len(nthread),
function(idx) {simulation_result_tbl <- tryCatch(
enrichment_test_simulation(DB, list_of_all_genes, pool,
Expand Down