Skip to content

Commit

Permalink
update multimodal reduced dims colnames, func documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
immanuelazn committed Jan 22, 2025
1 parent 76551ba commit 9c1476e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 21 deletions.
12 changes: 6 additions & 6 deletions R/HelperUtils.R
Original file line number Diff line number Diff line change
Expand Up @@ -208,12 +208,12 @@ mapLabels <- function(labels = NULL, newLabels = NULL, oldLabels = names(newLabe
#'
#' @param .expr Expression to be evaluated.
#' @param .f String or function. If a string (possibly representing a
#' regular expression), any warning message generated when \code{.expr} is
#' evaluated will be suppressed if \code{grepl{}} finds that the string
#' matches the warning message.\cr
#' \indent If a function, the warning message will be passed to the
#' function, and the function must return \code{TRUE} or \code{FALSE}. See
#' the examples for details.
#' regular expression), any warning message generated when \code{.expr} is
#' evaluated will be suppressed if \code{grepl{}} finds that the string
#' matches the warning message.
#' If a function, the warning message will be passed to the
#' function, and the function must return \code{TRUE} or \code{FALSE}. See
#' the examples for details.
.suppressSpecificWarnings <- function(.expr, .f, ...) {
eval.parent(
substitute(
Expand Down
16 changes: 1 addition & 15 deletions R/MultiModal.R
Original file line number Diff line number Diff line change
Expand Up @@ -406,25 +406,11 @@ addCombinedDims <- function(
normV <- 1 / sqrt(sum(cV))
rD * normV * dimWeights[x]
}) %>% Reduce("cbind", .)

colnames(combinedDims) <- paste0('LSI',1:length(colnames(combinedDims)))
ArchRProj@reducedDims[[name]] <- SimpleList(
matRD = combinedDims,
scaleDims = NA,
corToDepth = list(scaled = rep(0, ncol(combinedDims)), none = rep(0, ncol(combinedDims)))
)

ArchRProj

}












0 comments on commit 9c1476e

Please sign in to comment.