open-discussion > Divide file in NII with different clusters
Showing 1-3 of 3 posts
Display:
Results per page:
Mar 16, 2020  11:03 AM | Sara Romanella
Divide file in NII with different clusters
Hi all, 
I hope someone can help me with a doubt I have. I have a NII file from a GingerALE meta-analysis I conducted. The resulting map shows different clusters of activation and I wanted to divide it and create different single NII files for every activation clusters I found (one file with cluster 1, one with cluster 2.. etc). 
I know that there is probably a very easy way to do it but as for now I couldn't find it (I just started studying these tools). Thank you so much for everyone that could give me an answer or a place where to look!
Sara
Mar 16, 2020  09:03 PM | Paul Camacho - University of Illinois at Urbana-Champaign
RE: Divide file in NII with different clusters
Hi Sara,

I'm not familiar with GingerALE, but if the clusters do not spatially overlap, you can mask the areas that are not significantly activating during each cluster's activation time and save the resulting Nifti files. Otherwise, if the clusters are only temporally separated and have differences in activation level, you can threshold to change values below that of the strongest activating cluster to 0 and save that Nifti for that cluster. You would then go down the line and threshold so that all values not within the activation range of each following clustering are set to 0 and save the respective files. Masks and thresholding can be done in FSL:

https://fsl.fmrib.ox.ac.uk/fslcourse/lec...

I hope this is helpful!

Cheers,
Paul
Mar 17, 2020  11:03 AM | Raquel Guiomar
RE: Divide file in NII withdifferent clusters
Dear Sara,

There is a very easy toolbox for SPM that you can use to divide the nii:
xjview (https://www.alivelearn.net/xjview/).
You can load your nifti file, select each cluster and save it in a new .nii
file.

Hope it is helpful.
Best,
Raquel