Skip to content

Commit 33108a4

Browse files
authored
Merge pull request #72 from NIDAP-Community/dev
Dev
2 parents 6873033 + 7b23f08 commit 33108a4

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

DESCRIPTION

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: DSPWorkflow
22
Title: A Workflow for Analyzing Digital Spatial Profiling RNA Data
3-
Version: 0.9.2.0
3+
Version: 0.9.4.0
44
Authors@R: c(person("Rui", "He", email = "[email protected]", role = "aut"),
55
person("Maggie", "Cam", email = "[email protected]", role = "aut", comment = c(ORCID = "0000-0001-8190-9766")),
66
person("Ned", "Cauley", email = "[email protected]", role = c("aut", "cre"), comment = c(ORCID = "0000-0002-8968-6621")),
@@ -45,7 +45,6 @@ Imports:
4545
tibble (>= 3.1.8),
4646
tidyr (>= 1.2.1),
4747
umap (>= 0.2.9.0),
48-
pheatmap (>= 1.0.12),
4948
magrittr (>= 2.0.3),
5049
ComplexHeatmap (>= 2.10.0)
5150
Config/testthat/edition: 3

R/heatmap.R

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,14 +95,12 @@ heatMap <- function(
9595
base = 2,
9696
elt = elt.value)
9797

98-
## MC: for cv function, use .calcCV - "." means it is a private function and use lowerCamelCase ====
99-
10098
# create CV function
101-
calc.cv <- function(x) {
99+
.calcCv <- function(x) {
102100
sd(x) / mean(x)
103101
}
104102
cv.dat <- assayDataApply(object,
105-
elt = "log_q", MARGIN = 1, calc.cv)
103+
elt = "log_q", MARGIN = 1, .calcCv)
106104
# show the highest CD genes and their CV values
107105
sort(cv.dat, decreasing = TRUE)[1:5]
108106

R/spatial_deconvolution.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
#' @importFrom SpatialDecon spatialdecon
3232
#' @importFrom SpatialDecon create_profile_matrix
3333
#' @importFrom reshape2 melt
34+
#' @importFrom ComplexHeatmap pheatmap
3435
#'
3536
#' @export
3637
#' @example Do not run: spatialDeconvolution(object = NanostringGeomx,

0 commit comments

Comments
 (0)