-
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
Concatenate two nii.gz and correlate with shape.gii? #94
Comments
Hi Catherine, It does seem like the concatenation of Best, |
Hi Vincent, Thanks for getting back! Yes, the LH and RH images are nii.gz images in fsaverage space, one for each hemisphere. Do you happen to know any functions within or outside of neuromaps that could convert nii.gz to gii? I grabbed these surface-based atlases from https://xtra.nru.dk/FS5ht-atlas/, as I want to avoid transforming PET images from volumetric space to surface space giving the PVE (based on a prior thread - #81). I assume if these nii.gz files are already in fsaverage surface space, they should work with neuromaps..? Thanks! |
When your source/target maps are By converting the
For this specific case, however, it is worth noting that the receptor maps in fsaverage space that you downloaded from https://xtra.nru.dk/FS5ht-atlas/ are already available, as gifti images, in neuromaps. So you could simply fetch your maps from neuromaps. You can look at the annotation_info sheet, available in the repo's wiki, to know which tracer is associated to which receptor. For instance, to get the 5HT1a density map, in fsaverage space, you could do:
It's important to note that for these maps, the left- and right-hemisphere files were originally inverted (the first one was the right-hemisphere, and the second one was the left-hemisphere). We fixed this bug in a recent pull request. So you might want to use the current version of neuromaps for this, which you'll have to download directly from github. Let me know if you have any question! Best, |
Hi Vincent, Thanks a lot for these great info! I will re-download neuromaps for this. Best, |
Description of issue
This is probably a very simple question but I can't seem to find the appropriate commands.
I have two nii.gz files both in fsaverage space (left hemi and right hemi). I have a shape. gii file created from an array that's in the same fsaverage space.
I used the following command:
LH=file path
RH file path
gaba=LH,RH
corr = compare_images(gaba, test, metric='pearsonr')
Traceback (most recent call last):
File "", line 1, in
File "/home/rtang/.local/lib/python3.8/site-packages/neuromaps/stats.py", line 68, in compare_images
mask = np.logical_or(np.isclose(srcdata, 0), np.isclose(trgdata, 0))
ValueError: operands could not be broadcast together with shapes (163842,2) (327684,)
Based on the error, my concatenation probably failed. I was wondering if there's a way to fix this!
Thanks!
Catherine
Code of Conduct
neuromaps
Code of ConductThe text was updated successfully, but these errors were encountered: