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  

|
July 09, 2021 01:46PM
Howdy-

Let's say you have an ROI that you converted to a dset, such as following this example in the Bootcamp:
[www.youtube.com]
... by running the following:
ROI2dataset -prefix tuna.lh.niml.dset -input tuna.lh.niml.roi
Indeed, the tuna.lh.niml.dset dset does just contain the list of nodes in the ROI region. NB: if you wanted the above output as a *1D.dset, you could run the following with the "-of ..." option to specify "output format":
ROI2dataset -prefix tuna.lh -of 1D -input tuna.lh.niml.roi

You can use ConvertDset to make a "full" dset. You basically have to provide the max index that you want your dset to have, either as a number, an ld* value (related to MapIcosahedron), or by providing an example dset with appropriate size of mesh (probably what I would personally prefer):
ConvertDset -input tuna.lh.niml.dset -prefix full_tuna.lh -o_1D -pad_to_node d:std.141.lh.sulc.niml.dset 

# have 2 columns of data: one is value at each node, 2nd is list of node indices:
ConvertDset -input tuna.lh.niml.dset -prefix full_tuna.lh -o_niml_asc -pad_to_node d:std.141.lh.sulc.niml.dset -add_node_index

Does that do what you want?

--pt
Subject Author Posted

SurfaceROI transfer to 1D format with all nodes list

Aaron_Chang July 07, 2021 09:10AM

Re: SurfaceROI transfer to 1D format with all nodes list

ptaylor July 09, 2021 01:46PM

Re: SurfaceROI transfer to 1D format with all nodes list

ptaylor July 09, 2021 02:40PM