Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make_brainGraphList error #32

Open
pinghongyeh opened this issue Feb 21, 2023 · 4 comments
Open

make_brainGraphList error #32

pinghongyeh opened this issue Feb 21, 2023 · 4 comments

Comments

@pinghongyeh
Copy link

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
Copy link

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
Copy link
Owner

cwatson commented Mar 24, 2023

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
Copy link
Author

pinghongyeh commented Mar 24, 2023 via email

@iPsych
Copy link

iPsych commented Dec 31, 2023

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants