Skip to content

Commit 9c1476e

Browse files
committed
update multimodal reduced dims colnames, func documentation
1 parent 76551ba commit 9c1476e

File tree

2 files changed

+7
-21
lines changed

2 files changed

+7
-21
lines changed

R/HelperUtils.R

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -208,12 +208,12 @@ mapLabels <- function(labels = NULL, newLabels = NULL, oldLabels = names(newLabe
208208
#'
209209
#' @param .expr Expression to be evaluated.
210210
#' @param .f String or function. If a string (possibly representing a
211-
#' regular expression), any warning message generated when \code{.expr} is
212-
#' evaluated will be suppressed if \code{grepl{}} finds that the string
213-
#' matches the warning message.\cr
214-
#' \indent If a function, the warning message will be passed to the
215-
#' function, and the function must return \code{TRUE} or \code{FALSE}. See
216-
#' the examples for details.
211+
#' regular expression), any warning message generated when \code{.expr} is
212+
#' evaluated will be suppressed if \code{grepl{}} finds that the string
213+
#' matches the warning message.
214+
#' If a function, the warning message will be passed to the
215+
#' function, and the function must return \code{TRUE} or \code{FALSE}. See
216+
#' the examples for details.
217217
.suppressSpecificWarnings <- function(.expr, .f, ...) {
218218
eval.parent(
219219
substitute(

R/MultiModal.R

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -406,25 +406,11 @@ addCombinedDims <- function(
406406
normV <- 1 / sqrt(sum(cV))
407407
rD * normV * dimWeights[x]
408408
}) %>% Reduce("cbind", .)
409-
409+
colnames(combinedDims) <- paste0('LSI',1:length(colnames(combinedDims)))
410410
ArchRProj@reducedDims[[name]] <- SimpleList(
411411
matRD = combinedDims,
412412
scaleDims = NA,
413413
corToDepth = list(scaled = rep(0, ncol(combinedDims)), none = rep(0, ncol(combinedDims)))
414414
)
415-
416415
ArchRProj
417-
418416
}
419-
420-
421-
422-
423-
424-
425-
426-
427-
428-
429-
430-

0 commit comments

Comments
 (0)