Hi Chris,
I would like to follow up on this topic and the error I got after applying the abs() approach on my negative correlation matrices for `brainGraph`.
There are 2 main issues I'd like to report:
1. As the nature of these negative correlation matrices are sparser than the positive ones, I've notice `set_brainGraph_attr` will crash if certain threshold levels have all zero matrices within the `A.norm.sub` variable.
2. After removing the all zero matrices for the specific threshold levels, I've encountered an error below at line 135,
` V(g)$GC.wt <- gateway_coeff(g, V(g)$comm.wt)` within the `set_brainGraph_attr` function.
The error is:
Error in colSums(Kis[which(memb == x), 1:M]) :
'x' must be an array of at least two dimensions
I'm trying to trace the function `gateway_coeff` but the source code is not in your Github repo. Can you briefly explain what that function is doing and if sparse matrix will cause it to collapse?
Let me know if you need me to upload my `A.norm.sub` variable to help reproduce this error.