cwatson / brainGraph

Graph theory analysis of brain MRI data
166 stars 48 forks source link

make_brainGraphList error #32

Open pinghongyeh opened 1 year ago

pinghongyeh commented 1 year ago

Hi,

I am new to the brainGraph. I've gotten stuck at "make_brainGraphList", and hope you could give me some suggestions. The error reads "r in { : task 1 failed - "Length of new attribute value must be 1 or 84, the number of target vertices, not 0"

The input matrices are symmetric with 0 in the diagonal, each one is 84 by 84, totally 210. I am using a custom atlas (modified from dk atlas). Attached are the scripts, one of the the connectivity matrices, and the atlas rda file.

Thank you.

Ping brainGraph_files.zip

Clancy-wu commented 1 year ago

I got the same question. When I used the default atlas (eg. dk, destrieux), it was ok. But when I used self-difined atlas (4oo ROIs), the same error appeared "Length of ... must be 1 or 400, the number..., not 26". I'm much ensure that my atlas is correct with 400, and my matrix is also [400, 400].

So, I think this is a common issue. Maybe it is a question caused by 'igraph' package or the misunderstanding that the author forgot to write some important steps for creating self atlas.

cwatson commented 1 year ago

In the past, I had seen this as an issue of using the "local variable" referring to the custom atlas, probably within code using parallelization. It's a somewhat common error so I will have to figure out a workaround. It will take some time.

pinghongyeh commented 1 year ago

Hi Chris, Kang,

Thank you both for the reply. I am looking forward hearing from you. Best, Ping

On Fri, Mar 24, 2023 at 7:57 AM Chris Watson @.***> wrote:

In the past, I had seen this as an issue of using the "local variable" referring to the custom atlas, probably within code using parallelization. It's a somewhat common error so I will have to figure out a workaround. It will take some time.

— Reply to this email directly, view it on GitHub https://github.com/cwatson/brainGraph/issues/32#issuecomment-1482686267, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA43XNRKGR7DB6S4JLDKKGLW5WD2VANCNFSM6AAAAAAVDPORWA . You are receiving this because you authored the thread.Message ID: @.***>

iPsych commented 6 months ago

@pinghongyeh @Clancy-wu Hi, Any advance on this issue? I am facing same problem. I also could find similar issue in google group too. https://groups.google.com/g/braingraph-help/c/J9JH6glDv5A/m/HwilWlA0AgAJ