[1] "Random graphs for threshold #1; 13:33:12"
|========================================================================================================| 100%
[1] "Random graphs for threshold #2; 13:33:19" |========================================================================================================| 100%
Etc etc (…)
[1] "Random graphs for threshold #46; 13:42:17"
|========================================================================================================| 100%
Error in vapply(rand, function(x) graph_attr(x[[1L]], "density"), numeric(1L)) : values must be length 1, but the result FUN(X[[2]]) is length 0
It seems that the problem is about "density". How can I solve this error?
Thank you in advance,
Alice
--
You received this message because you are subscribed to the Google Groups "brainGraph-help" group.
To unsubscribe from this group and stop receiving emails from it, send an email to brainGraph-he...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/brainGraph-help/3f94205e-444f-4e0a-a721-99e32d3e4873n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/brainGraph-help/78f72682-e33c-42ec-a4fe-ceca7ace3c41n%40googlegroups.com.
g <- lapply(seq_along(densities), function(x) make_brainGraphList(corrs[x], atlas='dk.scgm', modality= 'thickness', .progress=F, set.attrs = TRUE))
Error in { : task 1 failed - "'x' must be an array of at least two dimensions"
Called from: e$fun(obj, substitute(ex), parent.frame(), e$data)
Browse[1]>
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, ...
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], atlas = "dk.scgm", modality = "thickness", .progress = F, set.attrs = TRUE)
3. make_brainGraphList(corrs[x], atlas = "dk.scgm", modality = "thickness", .progress = F, set.attrs = TRUE)
2. FUN(X[[i]], ...)
1. lapply(seq_along(densities), function(x) make_brainGraphList(corrs[x], atlas = "dk.scgm", modality = "thickness", .progress = F, set.attrs = TRUE))
To view this discussion on the web visit https://groups.google.com/d/msgid/brainGraph-help/0531946c-2ec1-4c01-9dc4-1ee6e21ce23fn%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/brainGraph-help/e52aaa5a-6d83-491b-9e98-964cc44cfdban%40googlegroups.com.