-
Notifications
You must be signed in to change notification settings - Fork 57
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
Nulls with parcellated data error #93
Comments
I actually was able to resolve this issue, however i'm running into a new error: rotated = nulls.alexander_bloch(abagen_parc, atlas='fsaverage', density='10k', the command I used to generate abagen_pac was: chaefer = nntdata.fetch_schaefer2018('fsaverage')['200Parcels17Networks']
|
Hi Catherine, thanks for reaching out! Here's what you should do instead:
Hope that helps! Let me know if you have any other questions 🙂 Best, |
Hi Justine, Thanks a lot for prompt response! The issue is resolved now. ;) Thanks, |
Hi Catherine, Unfortunately neuromaps doesn't return the nulls but I completely agree that we should 😅 I also like to plot the null distributions and so far I always do it manually. For now, while it isn't yet implemented in neuromaps, here's how I do it in my own work:
I'll be implementing this in Let me know if you have any other questions! Justine |
Hi Justine, Thanks so much for these helpful code and information! Really appreciated! :) Best, |
Hi @rtang2100 just letting you know that I've just merged a PR that makes it possible to return the null distribution from Best, |
Description of issue
Hi Neuromaps Team,
Thanks for developing this wonderful tool! I have a question about spatial nulls significance testing with parcellated data. I have a self-generated array that basically includes a numerical value for each parcel (Schaefer 200), and would like to correlate it with other maps. I did not run into issue with correlations in neuromaps (my array and parcellated abagen map), but I ran into the following error when running spatial nulls:
rotated = nulls.alexander_bloch(abagen_parc, atlas='fsaverage', density='10k',
n_perm=100, seed=1234, parcellation=parc)
Traceback (most recent call last):
File "", line 1, in
File "/home/rtang/.local/lib/python3.8/site-packages/neuromaps/nulls/nulls.py", line 134, in alexander_bloch
coords, hemi = get_parcel_centroids(surfaces,
File "/home/rtang/.local/lib/python3.8/site-packages/neuromaps/nulls/spins.py", line 124, in get_parcel_centroids
for n, (parc, surf) in enumerate(zip(parcellation, surfaces)):
TypeError: 'Parcellater' object is not iterable
My 'parc' is generated with the following command:
schaefer = nntdata.fetch_schaefer2018('fsaverage')['200Parcels17Networks']
parc = Parcellater(annot_to_gifti(schaefer), 'fsaverage')
Thanks so much!
Catherine
Code of Conduct
neuromaps
Code of ConductThe text was updated successfully, but these errors were encountered: