AFNI Message Board

Dear AFNI users-

We are very pleased to announce that the new AFNI Message Board framework is up! Please join us at:

https://discuss.afni.nimh.nih.gov

Existing user accounts have been migrated, so returning users can login by requesting a password reset. New users can create accounts, as well, through a standard account creation process. Please note that these setup emails might initially go to spam folders (esp. for NIH users!), so please check those locations in the beginning.

The current Message Board discussion threads have been migrated to the new framework. The current Message Board will remain visible, but read-only, for a little while.

Sincerely, AFNI HQ

History of AFNI updates  

|
April 10, 2023 12:53PM
Dear Paul,

thank you.
I read on Andy’s Brain Blog (https://www.andysbrainblog.com/andysbrainblog/tag/3dUndump) that AFNI’s xyz coordinates correspond to MNI152’s x -y z.
More precisely, the positive y value in AFNI’s xyz coordinates corresponds to a negative y value in MNI152 (and vice versa).

So I went back to my Python script that initially loads the output of 3dmaskdump. In Python, I multiplied the y coordinates (extracted from AFNI) with -1.
y = y * -1

Then, I ran 3dUndump again, but with the multiplied y-coordinate values.
Now, the code you provided me yields no mismatch:

3dinfo \
-same_all_grid \
-prefix Extracted_ACW_Awake.nii Resample_Yeo7N_1000ribbon.nii

prints

NO-DSET	NO-DSET	NO-DSET	NO-DSET	NO-DSET	NO-DSET
0	0	0	0	0	Resample_Yeo7N_1000ribbon.nii

The attached image below shows a visual comparison between both files. The visual inspection shows that there are still some slight mismatches.
The cortical grey matter looks more thick in the resampled atlas version than in the functional measurement-based result (of course, I used the same 1000 parcels ribbon version in both cases!).
Based on the information that I provided so far, do you have any idea where the slight mismatches can come from?

At least the data looks to be identically positioned in space, after multiplying the y-coordinates with -1.

Thanks so far.



Edited 1 time(s). Last edit at 04/10/2023 01:03PM by Philipp.
Attachments:
open | download - compare.png (529.3 KB)
Subject Author Posted

Extracting voxel-wise data with 3dmaskdump and recombing it with 3dUndump Attachments

Philipp April 10, 2023 07:59AM

Re: Extracting voxel-wise data with 3dmaskdump and recombing it with 3dUndump Attachments

Philipp April 10, 2023 08:13AM

Re: Extracting voxel-wise data with 3dmaskdump and recombing it with 3dUndump

ptaylor April 10, 2023 09:23AM

Re: Extracting voxel-wise data with 3dmaskdump and recombing it with 3dUndump Attachments

Philipp April 10, 2023 12:53PM

Re: Extracting voxel-wise data with 3dmaskdump and recombing it with 3dUndump

ptaylor April 10, 2023 03:18PM

Re: Extracting voxel-wise data with 3dmaskdump and recombing it with 3dUndump

Philipp April 10, 2023 03:20PM

Re: Extracting voxel-wise data with 3dmaskdump and recombing it with 3dUndump

Philipp April 10, 2023 03:31PM

Re: Extracting voxel-wise data with 3dmaskdump and recombing it with 3dUndump

ptaylor April 10, 2023 03:38PM

Re: Extracting voxel-wise data with 3dmaskdump and recombing it with 3dUndump

Philipp April 10, 2023 03:47PM

Re: Extracting voxel-wise data with 3dmaskdump and recombing it with 3dUndump

ptaylor April 10, 2023 04:56PM

Re: Extracting voxel-wise data with 3dmaskdump and recombing it with 3dUndump

Philipp April 10, 2023 05:11PM

Re: Extracting voxel-wise data with 3dmaskdump and recombing it with 3dUndump

ptaylor April 10, 2023 05:29PM

Re: Extracting voxel-wise data with 3dmaskdump and recombing it with 3dUndump

Philipp April 10, 2023 05:40PM

Re: Extracting voxel-wise data with 3dmaskdump and recombing it with 3dUndump

Philipp April 10, 2023 05:47PM

Re: Extracting voxel-wise data with 3dmaskdump and recombing it with 3dUndump

Philipp April 11, 2023 04:01AM

Re: Extracting voxel-wise data with 3dmaskdump and recombing it with 3dUndump

ptaylor April 11, 2023 09:54AM

Re: Extracting voxel-wise data with 3dmaskdump and recombing it with 3dUndump

Philipp April 11, 2023 02:14PM

Re: Extracting voxel-wise data with 3dmaskdump and recombing it with 3dUndump

rick reynolds April 18, 2023 04:12PM