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 04:56PM
Hi, Philipp-

The output:
1	1	1	1	1	         ACW_Awake_Global.nii
1	1	1	1	1	Resample_Yeo7N_1000ribbon.nii
... suggests that these two files are on the same grid.

I wouldn't do any ad hoc coordinate adjustments in Python. That would mean that header information could easily become incorrect, and that is possibly happening here? I am not sure---but I don't see any reason to introduce a coordinate change within Python.

As far as I see it, you have file of xyz coords and N values per line that you read into Python:
x0 y0 y0 vala valb valc vald ....
x1 y1 y1 vala valb valc vald ....
x2 y2 y2 vala valb valc vald ....
...
so you should just be able to output then output a file that has the exact same coords in each row and the new quantity for each row:
x0 y0 y0 py_out0
x1 y1 y1 py_out1
x2 y2 y2 py_out2
...
Then use 3dUndump on this new dataset; I don't think you should even need to use a mask in that command, since you only have values within the original mask, anyways.

-----------------------------------------------

However, I am a little confused about your analysis here. Do you have 2 different "input" files on which you are running 3dmaskdump---one being a 4D dataset, and one being a template or atlas, from which you want coordinates? I don't see why you would want coordinates from a separate dataset.

So, perhaps could you first explain what your starting point information is (one 4D dataset of time series that is in standard space, and then a template or atlas in the same standard space?), and what you want to do with each piece of information? That will help.

thanks,
pt
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