Skip to content

Commit 08ae63b

Browse files
committed
0.8.1: added significant_clusters.txt and stack_names.txt
1 parent 4f024f3 commit 08ae63b

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

NEWS.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44
* If the estimated smoothness is below 1, we now increase it to 1 to avoid problems down the line.
55
* Fixed a bug in qdecr_clusters where it assumes that there is always at least 1 cluster significant.
66
* "w-g.pct" files can now be used as a measure by specifying "qdecr_w_g.pct" (underscore instead of hyphen).
7-
* Added `fwhm` argument to `qdecr_fastlm`.
7+
* Added `fwhm` argument to `qdecr_fastlm`, which was missing before.
8+
9+
## New features
10+
* Added `cwp_thr` argument to `qdecr_fastlm` and `qdecr` to set the further cluster-wise p-value adjustment (default is 0.025 due to having 2 hemispheres, thus 0.05 / 2).
11+
* Automatically output two extra files: "significant_clusters.txt" (the output of `summary(vw, annot = TRUE)`) and "stack_names.txt" (the output of `stacks(vw)` and the corresponding stack numbers)
812

913
# QDECR 0.8.0: Momo
1014

R/qdecr_fastlm.R

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,12 @@ vw <- qdecr(id = id,
112112

113113
vw$describe$call <- rbind(vw$describe$call, c("call", "qdecr_fastlm call", paste(trimws(deparse(match.call())), collapse = "")))
114114

115+
stacks_df <- data.frame(stack_number = seq_along(stacks(vw)), stack_name = stacks(vw))
116+
write.table(stacks_df, file.path(vw$paths$dir_out, "stack_names.txt"), quote = FALSE, row.names = FALSE, sep = "\t")
117+
118+
summary_df <- summary(vw, annot = TRUE)
119+
write.table(summary_df, file.path(vw$paths$dir_out, "significant_clusters.txt"), quote = FALSE, row.names = FALSE, sep = "\t")
120+
115121
if (save) qdecr_save(vw, save_data = save_data)
116122
vw
117123
}

0 commit comments

Comments
 (0)