help > RE: Custom List of MNI coordinates - size of ROIs
Oct 9, 2015  07:10 PM | Alfonso Nieto-Castanon - Boston University
RE: Custom List of MNI coordinates - size of ROIs
Hi Nicola,

Yes, exactly, if the values in the .nii file range from 1 to N, then your .txt file can simply contain N lines listing the ROI label associated with each value / line-number (all voxels with value 3 in your .nii file form an individual ROI named/labeled by the third line in your .txt file). 

note: .csv file format is slightly different. That is used when the values in your .nii file are not sequential so you can pair each specific value with the associated label without having to create a huge .txt file (e.g. a line like "this region, 1000" in your .csv file associates those voxels with value 1000 in your .nii file with an ROI labeled "this region")

Best
Alfonso

Originally posted by Nicola Toschi:
Hi Alfonso,

thanks a lot for your reply. One followup question:

I created a 3D .nii file (with FSL) which contains several spherical ROIs with increasing intensities (all integers from 1 to 20). I then have a .txt and a .csv file (same basename as the .nii file) which lists the labels of the ROIs in the same order as the intensities in the 3D .nii file.

Can I assume that, in the conn interface, the order of the labels is matched to the order of the intensities in the 3D .nii file (e.g. the ROI with intensity 3 will be matched to the label listed in the 3rd row of the .txt file?)

Thanks again!

Nicola

Threaded View

TitleAuthorDate
Nicola Toschi Oct 6, 2015
Alfonso Nieto-Castanon Oct 8, 2015
Nicola Toschi Oct 8, 2015
RE: Custom List of MNI coordinates - size of ROIs
Alfonso Nieto-Castanon Oct 9, 2015
Nicola Toschi Oct 9, 2015