thanks for following. This is the new error w/brainGraph latest version:
> g <- lapply(seq_along(densities), function(x)
make_brainGraphList(corrs[x], modality = 'thickness'))
[1] "Start time: 2021-11-29 19:56:25"
| | 0%
Error in { : task 1 failed - "object 'NA' not found"
> traceback()
9: stop(simpleError(msg, call = expr))
8: e$fun(obj, substitute(ex), parent.frame(), e$data)
7: foreach(i = seq_len(kNumGraphs)) %dopar% {
res <- loopfun(x[, , i], atlas, type, level, set.attrs, modality,
weighting, threshold[i], name = gnames[i], Group = grpNames[i],
subnet = subnet, mode = mode, diag = diag, weighted = weighted,
use.parallel = FALSE, ...)
}
6: make_brainGraphList.array(A, atlas = atlas, type = type, level = level,
set.attrs = set.attrs, modality = modality, weighting = weighting,
threshold = threshold, mode = mode, weighted = weighted,
diag = diag, gnames = gnames, grpNames = grpNames, .progress = .progress,
...)
5: make_brainGraphList(A, atlas = atlas, type = type, level = level,
set.attrs = set.attrs, modality = modality, weighting = weighting,
threshold = threshold, mode = mode, weighted = weighted,
diag = diag, gnames = gnames, grpNames = grpNames, .progress = .progress,
...)
4: make_brainGraphList.corr_mats(corrs[x], modality = "thickness")
3: make_brainGraphList(corrs[x], modality = "thickness") at #1
2: FUN(X[[i]], ...)
1: lapply(seq_along(densities), function(x) make_brainGraphList(corrs[x],
modality = "thickness"))