Skip to content

Commit 20d3be2

Browse files
committed
0.8.4: fixed model files containing thr30
1 parent a11e1ee commit 20d3be2

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

NEWS.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# QDECR 0.8.3
22

3+
## Bug fixes
4+
* Fixed that the model output files (p.mgh, t.mgh, etc) also contained the mcz threshold (e.g. cache.th30).
5+
6+
7+
# QDECR 0.8.3
8+
39
## Minor tweaks
410
* The `mcz_thr` argument (for `qdecr` and `qdecr_fastlm`) now accepts: 13/1.3/0.05, 20/2.0/0.01, 23/2.3/0.005, 30/3.0/0.001, 33/3.3/0.0005, 40/4.0/0.0001.
511
* A new function `qdecr_mcz_thr` makes sure that the value is converted to 13/20/23/30/33/40.

R/qdecr_make_stack.R

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@ qdecr_make_stack <- function(vw, stats, mcz_thr, clusterfiles = c("cluster.mgh",
22

33
stack <- list()
44
stack$names <- attr(vw$model$mm[[1]], "dimnames")[[2]]
5-
65
nn1 <- c(stats, clusterfiles)
7-
nn2 <- c(paste0(stats, ".mgh"), clusterfiles)
6+
stats2 <- paste0(stats, ".mgh")
7+
clusterfiles2 <- paste0("cache.th", mcz_thr, ".abs.sig.", clusterfiles)
8+
nn2 <- c(stats2, clusterfiles2)
89
for (n in nn1) stack[[n]] <- list()
910

1011
for(i in seq_along(stack$names)){
1112
for (j in seq_along(nn1)){
12-
stack[[nn1[j]]][[stack$names[i]]] <- paste0(vw$paths$final_path, ".stack", i, ".cache.th", mcz_thr, ".abs.sig.", nn2[j])
13+
stack[[nn1[j]]][[stack$names[i]]] <- paste0(vw$paths$final_path, ".stack", i, ".", nn2[j])
1314
}
1415
}
1516
stack

0 commit comments

Comments
 (0)