Skip to content

Commit

Permalink
Set umap nthreads to nthreads of BPPARAM
Browse files Browse the repository at this point in the history
  • Loading branch information
alanocallaghan committed Mar 7, 2025
1 parent b54b746 commit 68425da
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ Authors@R: c(
person("Leo", "Lahti", role=c("ctb"), email="leo.lahti@utu.fi", comment = c(ORCID = "0000-0001-5537-637X")),
person("Tuomas", "Borman", role = c("ctb"), comment = c(ORCID = "0000-0002-8563-8884"))
)
Version: 1.35.3
Date: 2025-03-03
Version: 1.35.4
Date: 2025-03-07
License: GPL-3
Title: Single-Cell Analysis Toolkit for Gene Expression Data in R
Description: A collection of tools for doing various analyses of
Expand Down
4 changes: 2 additions & 2 deletions R/runUMAP.R
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@
NULL

#' @importFrom BiocNeighbors findKNN KmknnParam
#' @importFrom BiocParallel SerialParam
#' @importFrom BiocParallel SerialParam bpnworkers
.calculate_umap <- function(x, ncomponents = 2, ntop = 500,
subset_row = NULL, scale=FALSE, transposed=FALSE, pca=if (transposed) NULL else 50,
n_neighbors=15, n_threads=NULL, ...,
n_neighbors=15, n_threads=bpnworkers(BPPARAM), ...,
external_neighbors=FALSE, BNPARAM = KmknnParam(), BPPARAM = SerialParam(),
use_densvis=FALSE, dens_frac = 0.3, dens_lambda = 0.1)
{
Expand Down
2 changes: 1 addition & 1 deletion man/runUMAP.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 68425da

Please sign in to comment.