Skip to content

Commit 822cb73

Browse files
committed
update hotspot to NA
1 parent 1500a79 commit 822cb73

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

R/licd_boots.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -704,7 +704,7 @@ hotspot.licd <- function(obj, type="both", cutoff=0.05, p.adjust="none",
704704
pv <- obj$local_uni_sim[,4]
705705
pv <- p.adjust(pv, p.adjust)
706706
local_uni_sim <- rep(as.character(NA), length(pv))
707-
local_uni_sim[pv < cutoff] <- paste("Cluster:",
707+
local_uni_sim[pv <= cutoff] <- paste("Cluster:",
708708
obj$local_uni_sim$fx[pv < cutoff], ":",
709709
as.character(cutoff), sep="")
710710
local_uni_sim <- factor(local_uni_sim)

R/local-joincount-univariate.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,8 @@ hotspot.local_jc_uni <- function(obj, cutoff=0.05, p.adjust="none", ...) {
153153
pv <- obj[,2]
154154
pv <- p.adjust(pv, p.adjust)
155155
local_uni_sim <- rep(as.character(NA), length(pv))
156-
crit <- pv < cutoff
156+
crit <- pv <= cutoff
157+
local_uni_sim[is.na(crit)] <- paste0("Not ", attr(obj, "chosen"))
157158
crit[is.na(crit)] <- FALSE
158159
local_uni_sim[crit] <- paste0("Cluster:", attr(obj, "chosen"),
159160
":", as.character(cutoff))

0 commit comments

Comments
 (0)