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

BUG: problem plotting some parcel atlas with single hemisphere #52

Open
wiheto opened this issue Sep 23, 2022 · 0 comments
Open

BUG: problem plotting some parcel atlas with single hemisphere #52

wiheto opened this issue Sep 23, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@wiheto
Copy link
Owner

wiheto commented Sep 23, 2022

Following code

import netplotbrain 
# Get 100 node atlas from templateflow
node_dict = {'atlas':       'Schaefer2018', 
             'desc':        '100Parcels7Networks',
             'extension':   '.nii.gz',
             'resolution':  1}
netplotbrain.plot(template = 'MNI152NLin2009cAsym',
                  nodes =     node_dict,
                  nodetype = 'parcels',
                  view =      'S',
                  hemisphere = 'L')

Leads to

RuntimeError: No surface found at the given iso value.

Problem seems to be that some voxels that some voxels for R hemisphere nodes are still included and too small to plot as parcel surfaces.

Solution: Need to add checks about parcel center's hemisphere when getting single hemisphere. OR different non-surface method to plot parcels (just voxels takes too long)

Difficulty to solve: medium to hard

@wiheto wiheto added the bug Something isn't working label Sep 23, 2022
@wiheto wiheto mentioned this issue Mar 2, 2023
19 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant