[BUG]: Cannot register parcellation with non-continuous values #257
No reviewers
Labels
No labels
CRITICAL
Stale
WIP
bug
concept
coordinate
dataset
dependencies
documentation
duplicate
enhancement
github_actions
good first issue
help wanted
invalid
maintenance
maps
marker
mask
on hold
parcellation
preprocess
question
ready
storage
template-space
triage
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
juaml/junifer!257
Loading…
Reference in a new issue
No description provided.
Delete branch "update/non-cont-parcel-support"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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:
github.com/juaml/junifer@3fd1877dda/junifer/data/parcellations.py (L1362-L1364)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
CI passing on juseless.