You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File "/home/fraimondo/dev/tbox/junifer/junifer/data/parcellations.py", line 269, in load_parcellation
raise_error(
File "/home/fraimondo/dev/tbox/junifer/junifer/utils/logging.py", line 289, in raise_error
raise klass(msg)
ValueError: Parcellation Glasser must have all the values in the range [0, 361].
This is because so far, junifer expects that parcellation values are continuous. Some parcellations are not, like this one. The values are 1-180 for one hemisphere, and 1001-1180 for the other.
This was a restriction added when merging parcellations, as we have to "shift" the values to merge them, and this is done by adding the number of labels:
Is there an existing issue for this?
Current Behavior
I want to register the Glasser parcellation: https://afni.nimh.nih.gov/pub/dist/atlases/MNI_HCP/MNI_Glasser_HCP_2021_v1.0a/
However, I get this error:
This is because so far, junifer expects that parcellation values are continuous. Some parcellations are not, like this one. The values are 1-180 for one hemisphere, and 1001-1180 for the other.
This was a restriction added when merging parcellations, as we have to "shift" the values to merge them, and this is done by adding the number of labels:
junifer/junifer/data/parcellations.py
Lines 1362 to 1364 in 3fd1877
Expected Behavior
Parcellations without continuous numbering should be able to be included in junifer (and merged)
Steps To Reproduce
load_parcellation
)Environment
Relevant log output
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: